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

# Create integration token

> Generates a new access token for the web integration. Tokens are used to authenticate
external systems accessing the integration.



## OpenAPI

````yaml https://blackbox.dasha.ai/swagger/v1/swagger.json post /api/v1/web-integrations/{integrationId}/tokens
openapi: 3.0.4
info:
  title: Dasha BlackBox Agent API
  description: API for managing AI agents and calls
  contact:
    name: DashaAI Team
    email: support@dasha.ai
  version: v1
servers:
  - url: https://blackbox.dasha.ai
    description: Dasha BlackBox Agent API
security:
  - ApiKey: []
  - OAuth: []
tags:
  - name: ActivityLogs
  - name: Agents
  - name: AgentTestCases
  - name: CallResults
  - name: Calls
  - name: Chats
  - name: Copilot
  - name: CustomerData
  - name: Mcp
  - name: Media
  - name: Misc
  - name: PronunciationDictionaries
  - name: Providers
  - name: SipAliases
  - name: SipCredentials
  - name: SipPhoneNumbers
  - name: TextChat
  - name: TwilioProvider
  - name: Voice
  - name: WebhookTest
  - name: WebIntegrations
  - name: WebSocket
    description: WebSocket endpoints for real-time communication
paths:
  /api/v1/web-integrations/{integrationId}/tokens:
    post:
      tags:
        - WebIntegrations
      summary: Create integration token
      description: >-
        Generates a new access token for the web integration. Tokens are used to
        authenticate

        external systems accessing the integration.
      parameters:
        - name: integrationId
          in: path
          description: Integration identifier
          required: true
          schema:
            type: string
      requestBody:
        description: Token configuration
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/TokenCreationRequestDto'
              description: Request to create a new web integration access token
          text/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/TokenCreationRequestDto'
              description: Request to create a new web integration access token
          application/*+json:
            schema:
              allOf:
                - $ref: '#/components/schemas/TokenCreationRequestDto'
              description: Request to create a new web integration access token
      responses:
        '201':
          description: Integration token created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenCreationResponseDto'
        '400':
          description: Invalid configuration or validation errors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Authentication failed or API key is missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Access denied or insufficient permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Web integration with specified ID does not exist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '409':
          description: Token name already exists in integration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Server error occurred during token creation
components:
  schemas:
    TokenCreationRequestDto:
      required:
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
          description: Token name for identification purposes
        expiresAt:
          type: string
          description: >-
            Token expiration timestamp. If not specified, the token never
            expires.
          format: date-time
          nullable: true
      additionalProperties: false
      description: Request to create a new web integration access token
    TokenCreationResponseDto:
      required:
        - createdAt
        - name
        - token
        - tokenId
      type: object
      properties:
        tokenId:
          minLength: 1
          type: string
          description: Unique token identifier
        token:
          minLength: 1
          type: string
          description: >-
            Access token value. Store this securely as it cannot be retrieved
            later.
        name:
          minLength: 1
          type: string
          description: Token name for identification purposes
        createdAt:
          type: string
          description: Token creation timestamp
          format: date-time
        expiresAt:
          type: string
          description: Token expiration timestamp. If null, the token never expires.
          format: date-time
          nullable: true
      additionalProperties: false
      description: Response containing newly created access token
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
  securitySchemes:
    ApiKey:
      type: http
      description: API Key Authentication (Bearer {key})
      scheme: Bearer
    OAuth:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://auth.dasha.ai/connect/authorize
          scopes:
            platform_api: Platform API

````