---
title: "Add export"
method: POST
path: "/accounts/export"
tags: ["Account Management"]
---

# Add export

`POST /accounts/export`

## Request

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

Adds a new export to the account.
 - Enables an account to make its internal resources (such as data streams or services) available to other accounts.

## Request body

- ExportRequest
  - `export` object, required
    - `name` string, required: Unique name for the export within the account
    - `subject` string, required: Subject pattern defining what is being exported
    - `token_position` integer: Optional parameter that determines how authentication is handled
    - `type` 'stream' | 'service', required: Type of resource being exported

## Response `200`

Export added successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[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)
