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

# Get User Access Token

> Get the access token of a user



## OpenAPI

````yaml /openapi/platform.json post /platform/api/v1/users/{id}/token
openapi: 3.1.0
info:
  title: WiseApp API — Plataforma
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /platform/api/v1/users/{id}/token:
    parameters:
      - $ref: '#/components/parameters/platform_user_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Users
      summary: Get User Access Token
      description: Get the access token of a user
      operationId: post-user-token
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                  expiry:
                    type:
                      - integer
                      - 'null'
                  user:
                    type: object
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      display_name:
                        type: string
                      email:
                        type: string
                      pubsub_token:
                        type: string
              example:
                access_token: Sample text
                expiry: 1
                user:
                  id: 1
                  name: Sample resource
                  display_name: Sample resource
                  email: agent@example.com
                  pubsub_token: Sample text
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Unauthorized
        '404':
          description: The given user does not exist
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                error: Resource not found
      security:
        - platformAppApiKey: []
components:
  parameters:
    platform_user_id:
      in: path
      name: id
      schema:
        type: integer
      required: true
      description: The numeric ID of the user on the platform
  securitySchemes:
    platformAppApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de um Platform App, gerado pelo super admin. Usado para
        provisionar contas, usuários, papéis e bots.

````

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