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

# Create application token

> Create a personal access token for the caller. The plaintext token is returned exactly once and can never be retrieved again.



## OpenAPI

````yaml https://api.voxo.co/v2/docs/openapi.json post /v2/application-tokens/
openapi: 3.1.0
info:
  title: VOXO API
  description: VOXO Communication Platform API
  version: 2.0.0
servers:
  - url: https://api.voxo.co
security:
  - bearerAuth: []
paths:
  /v2/application-tokens/:
    post:
      tags:
        - Application Tokens
      summary: Create application token
      description: >-
        Create a personal access token for the caller. The plaintext token is
        returned exactly once and can never be retrieved again.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: Human-readable label for the token
                expiresAt:
                  description: Optional ISO 8601 expiry; omit for a non-expiring token
                  type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
              required:
                - name
              additionalProperties: false
      responses:
        '200':
          description: Newly created token, including its one-time plaintext secret
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                    description: Application token ID
                  name:
                    type: string
                    description: Human-readable label
                  tokenPreview:
                    type: string
                    description: Non-secret display stub, e.g. voxo_pat_ab12…
                  expiresAt:
                    description: ISO 8601 expiry, or null
                    type:
                      - string
                      - 'null'
                  lastUsedAt:
                    description: ISO 8601 of last successful use, or null
                    type:
                      - string
                      - 'null'
                  revokedAt:
                    description: ISO 8601 revocation time, or null
                    type:
                      - string
                      - 'null'
                  createdAt:
                    type: string
                    description: ISO 8601 creation time
                  token:
                    type: string
                    description: >-
                      The plaintext token — shown once and never retrievable
                      again
                required:
                  - id
                  - name
                  - tokenPreview
                  - expiresAt
                  - lastUsedAt
                  - revokedAt
                  - createdAt
                  - token
                additionalProperties: false
        '400':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  message:
                    type: string
                  code:
                    type: number
                  validationErrors:
                    type: array
                    items:
                      type: string
                required:
                  - name
                  - message
                  - code
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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