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

# List API tokens



## OpenAPI

````yaml /openapi/v1.json get /api/v1/crm/tokens
openapi: 3.1.0
info:
  title: Oktivo CRM API v1
  version: 1.0.0
  description: >-
    The /api/v1/crm API. Every JSON object body now also carries `requestId`;
    success bodies add `timestamp` and (for paged lists) `meta`; error bodies
    add `code` and `errorInfo: { code, message, details? }`. Every field the
    routes returned before is unchanged. v1 `errorInfo` maps to v2 `error`.
    Legacy fields (`logs`, `log`, `endpoint`, `endpoints`, the string `error`,
    duplicated `message`) are frozen: never extended, removed only in a future
    major version with a Sunset date announced at least 6 months ahead. `GET
    /api/v1/crm/track.js` (the tracking script) is not listed.
servers:
  - url: https://client-backend.oktivo.com
security: []
tags:
  - name: Calls
  - name: Events
  - name: Webhooks
  - name: Agents
  - name: Leads
  - name: Tickets
  - name: Tracking
  - name: Shopify
  - name: Tokens
paths:
  /api/v1/crm/tokens:
    get:
      tags:
        - Tokens
      summary: List API tokens
      operationId: listTokens
      parameters:
        - $ref: '#/components/parameters/RequestId'
      responses:
        '200':
          description: >-
            Success. The body has `success: true`, the route's legacy fields,
            and the additive `requestId`, `timestamp` and `meta`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenListResponse'
        '400':
          description: Validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorResponse'
        '401':
          description: Missing or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorResponse'
        '429':
          description: Rate limit exceeded; see Retry-After
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorResponse'
        '500':
          description: Unexpected server error; quote `requestId` when contacting support
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1ErrorResponse'
      security:
        - jwtAuth: []
components:
  parameters:
    RequestId:
      name: X-Request-ID
      in: header
      required: false
      description: >-
        Correlation id, echoed in the response header and in `requestId`;
        generated when absent or unsafe.
      schema:
        type: string
        pattern: ^[\w.-]{1,128}$
  schemas:
    TokenListResponse:
      allOf:
        - $ref: '#/components/schemas/V1SuccessEnvelope'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/Token'
          required:
            - success
            - data
          additionalProperties: true
    V1ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        message:
          type: string
          description: Legacy summary. Same text as `errorInfo.message`.
        code:
          type: string
          description: Stable machine-readable code. Same value as `errorInfo.code`.
        requestId:
          type: string
          description: Same value as the `X-Request-ID` response header.
        errorInfo:
          $ref: '#/components/schemas/V1ErrorInfo'
        errors:
          type: array
          description: Field-level validation errors (400 `VALIDATION_ERROR`).
          items:
            type: object
            properties:
              field:
                type: string
              message:
                type: string
            additionalProperties: true
        error:
          type: string
          description: >-
            Legacy error text returned by webhook, campaign-webhook and log
            routes. The tracking route returns an object here. Frozen legacy
            field: kept in v1 exactly as is, never extended; removal only in a
            future major version with a Sunset date announced at least 6 months
            ahead.
          x-frozen: true
        available:
          type: number
          description: '402 only: credits available.'
        required:
          type: number
          description: '402 only: credits required.'
        reason:
          type: string
          description: Extra reason such as `dnd`.
      required:
        - success
        - message
        - code
        - requestId
        - errorInfo
      additionalProperties: true
      examples:
        - success: false
          message: Validation failed
          errors:
            - field: phone
              message: phone is required
          code: VALIDATION_ERROR
          requestId: 3f1c2c0e-6a41-4e0b-9f0e-1f2d6f1b8a77
          errorInfo:
            code: VALIDATION_ERROR
            message: Validation failed
            details:
              - field: phone
                message: phone is required
    V1SuccessEnvelope:
      type: object
      properties:
        success:
          type: boolean
          description: >-
            `true` on success. The webhook test delivery returns `200` with
            `success: false` when the receiver failed.
        requestId:
          type: string
          description: >-
            Same value as the `X-Request-ID` response header. Added to every
            JSON object success body.
        timestamp:
          type: string
          format: date-time
          description: Server time when the response was produced.
        meta:
          $ref: '#/components/schemas/V1Meta'
      required:
        - success
      description: >-
        Additive envelope fields present on every migrated v1 success body. All
        fields the route returned before are still returned unchanged.
      additionalProperties: true
    Token:
      type: object
      properties:
        tokenId:
          type: string
        name:
          type: string
        token:
          type: string
          description: Plain token, returned only when created or rotated.
        prefix:
          type: string
          description: Listing only.
        expiresAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
        - tokenId
        - name
      additionalProperties: true
    V1ErrorInfo:
      type: object
      properties:
        code:
          type: string
          description: Stable machine-readable code. See the error code table.
        message:
          type: string
          description: Human-readable summary. Do not parse it.
        details:
          description: >-
            Field errors (the legacy `errors` array), or the extra context of
            the error such as `available` and `required`.
      required:
        - code
        - message
      description: >-
        v1 spelling of the standard error object. v2 returns the same three keys
        under `error`.
      additionalProperties: true
    V1Meta:
      type: object
      properties:
        page:
          type: integer
        pageSize:
          type: integer
        total:
          type: integer
        totalPages:
          type: integer
        hasMore:
          type: boolean
        limit:
          type: integer
        nextCursor:
          type: string
      description: >-
        Additive mirror of the legacy `pagination` object. Only the keys that
        the legacy object has are present. Responses without `pagination` have
        no `meta`.
      additionalProperties: true
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Dashboard JWT only; API tokens are rejected

````

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