---
title: "Mint an export activation token"
method: POST
path: "/accounts/export-activation"
tags: ["Account Management"]
---

# Mint an export activation token

`POST /accounts/export-activation`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/export-activation`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/export-activation/post.ts> (a function with typed inputs; its response is checked against the schema)

Mints the activation token that lets one named account import a token-required export of the caller's account. Admin or root only. The response carries the fields the importing side must echo back on its import.

## Request body

- object
  - `account_id` string, required: Account that will import the export
  - `export_name` string, required: Name of a token-required export
  - `expires_in_seconds` integer: Optional token lifetime

## Response `200`

Success

- object
  - `data` object
    - `token` string: Activation token
    - `export_name` string: Export name
    - `subject` string: Subject to echo on import
    - `import_type` string: Import type to echo on import
    - `account` string: Issuing account
    - `target_account` string: Importing account
    - `expires_at` integer: Unix expiry

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Caller is not an admin or root

## Changes

- **2026-11-12** `700eb1ace61a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/export-activation/post.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
