> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsmartalex.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Export calls with their charges.

> Needs the `calls:export` scope (export calls with their charges).



## OpenAPI

````yaml /api-reference/openapi.json post /calls/export
openapi: 3.1.0
info:
  title: SmartAlex API
  version: 1.0.0
  description: >-
    The SmartAlex REST API. Send your API key as a bearer token: `Authorization:
    Bearer sa_live_...`.


    Workspace owners and admins create keys in SmartAlex under Settings →
    Webhooks & API, on the API keys tab.

    The page needs the Power Tools add-on. Owners and admins can give a key most
    read scopes themselves, and an owner can

    also add the gate scopes. Support adds any other scope on request.


    Each key may make 60 requests a minute. List endpoints take `page` and
    `per_page` (default 25).

    Any other query parameter, such as `updated_since` on contacts, is passed to
    the endpoint as a filter.
servers:
  - url: https://api.getsmartalex.com/functions/v1/rest-api
security:
  - apiKey: []
tags:
  - name: Contacts
  - name: Deals
  - name: Calls
  - name: Campaigns
  - name: Callbacks
  - name: Agents
  - name: Knowledge
  - name: Custom API tools
  - name: Phone numbers
  - name: Analytics
  - name: Account
  - name: Webhooks
  - name: Gates
  - name: Team
  - name: Settings
paths:
  /calls/export:
    post:
      tags:
        - Calls
      summary: Export calls with their charges.
      description: Needs the `calls:export` scope (export calls with their charges).
      operationId: postCallsExport
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          $ref: '#/components/responses/Ok'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    Ok:
      description: Success.
      content:
        application/json:
          schema:
            type: object
            additionalProperties: true
    Unauthorized:
      description: The API key is missing, wrong or revoked.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
            additionalProperties: true
    Forbidden:
      description: >-
        The key does not hold the scope this endpoint needs, or the workspace
        has no Power Tools add-on.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
            additionalProperties: true
    RateLimited:
      description: >-
        More than 60 requests in a minute. Wait for the number of seconds in
        Retry-After.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
            additionalProperties: true
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your SmartAlex API key, starting sa_live_.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.