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

# Get the connection's decrypted Meta access token

> Return the Meta access token stored for a cloud_api connection, DECRYPTED, plus what kind of token it is. `id` accepts the connection id or the session id (`cloud-<uuid>`).

`data.accessToken` is the raw Graph token — treat it as a secret (it can send messages and manage the WABA). `data.kind` is `permanent` (never expires, e.g. System User), `long_lived` (the ~60-day Embedded Signup token), `short_lived` (~1h code-exchange token) or `unknown` (Meta's /debug_token could not be reached). `data.expiresAt` (ISO-8601, null when permanent), `data.expiresInDays`, `data.isValid`, `data.scopes`, `data.type` (Meta's own USER/SYSTEM_USER label) and `data.label` (pt-BR summary) describe it further. Rotate a token with PATCH /connections/cloud-api/:id.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/connections/cloud-api/{id}/access-token
openapi: 3.1.0
info:
  title: D-API - Infraestrutura WhatsApp Completa
  description: >-
    Solução escalável e robusta para gestores de automação, SaaS e usuários
    finais que precisam de uma integração WhatsApp confiável. Oferece múltiplas
    instâncias simultâneas, webhooks em tempo real, dashboard intuitivo e API
    REST documentada com 99.9% de uptime e latência inferior a 30ms.
  version: 1.2.1
  contact:
    name: Suporte D-API
    email: suporte@d-api.cloud
    url: https://d-api.cloud
servers:
  - url: https://api.d-api.cloud
    description: Produção
security:
  - ApiKeyAuth: []
tags:
  - name: Início
    description: Endpoints base
  - name: Sessões
    description: Endpoints para gerenciamento de sessões
  - name: Mensagens
    description: Endpoints para envio de mensagens
  - name: Cloud API
    description: >-
      WhatsApp API Oficial (Meta Cloud API): conexão manual, gestão de templates
      (listar/criar/excluir) e envio de templates.
  - name: Ligações URA
    description: >-
      Disparo de ligações de voz (URA): individual ou em massa, com áudio ou
      fluxo IVR.
  - name: SMS
    description: 'Envio de SMS: individual ou em massa.'
paths:
  /api/v1/connections/cloud-api/{id}/access-token:
    get:
      tags:
        - Cloud API
      summary: Get the connection's decrypted Meta access token
      description: >-
        Return the Meta access token stored for a cloud_api connection,
        DECRYPTED, plus what kind of token it is. `id` accepts the connection id
        or the session id (`cloud-<uuid>`).


        `data.accessToken` is the raw Graph token — treat it as a secret (it can
        send messages and manage the WABA). `data.kind` is `permanent` (never
        expires, e.g. System User), `long_lived` (the ~60-day Embedded Signup
        token), `short_lived` (~1h code-exchange token) or `unknown` (Meta's
        /debug_token could not be reached). `data.expiresAt` (ISO-8601, null
        when permanent), `data.expiresInDays`, `data.isValid`, `data.scopes`,
        `data.type` (Meta's own USER/SYSTEM_USER label) and `data.label` (pt-BR
        summary) describe it further. Rotate a token with PATCH
        /connections/cloud-api/:id.
      operationId: getApiV1ConnectionsCloud-apiByIdAccessToken
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data: {}
                  error:
                    type: string
                  code:
                    type: string
                required:
                  - success
            multipart/form-data:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data: {}
                  error:
                    type: string
                  code:
                    type: string
                required:
                  - success
            text/plain:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data: {}
                  error:
                    type: string
                  code:
                    type: string
                required:
                  - success
          description: Resposta bem-sucedida
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'API Key para autenticação. Formato: <API_KEY>'

````