# Retrieve an auth token

`GET /auth_tokens/{id}`

> This is a subset of the full specification, limited to the `GET /auth_tokens/{id}` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.18/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.18'
  description: This is a subset of the full specification, limited to the `GET /auth_tokens/{id}` operation.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Auth Tokens
    description: |
      Read and write the third-party credentials stored in your workspace, so you can find the
      id of the credential a data connector should authenticate with, and store a new one
      without leaving your integration.
      Reading requires an OAuth token with the `read_auth_tokens` scope; creating and updating
      require the `write_auth_tokens` scope and an access token associated with a teammate.
      You can create a `text` credential to send yourself, or an `oauth` credential whose
      access token Intercom obtains and refreshes automatically via the client-credentials
      grant. Only credentials with a `token_type` of `text` can be updated. No endpoint ever
      returns a credential value, client secret, refresh configuration, or OAuth configuration.
paths:
  /auth_tokens/{id}:
    get:
      summary: Retrieve an auth token
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
        - name: id
          in: path
          required: true
          description: The unique identifier for the auth token.
          example: '12345'
          schema:
            type: string
      tags:
        - Auth Tokens
      operationId: retrieveAuthToken
      description: |
        Returns the metadata for a single stored third-party credential. A credential that the list endpoint does not return is also not retrievable here, and responds with 404.
      responses:
        '200':
          description: successful
          content:
            application/json:
              examples:
                successful:
                  value:
                    type: auth_token
                    id: '12345'
                    name: Fulfilment API key
                    description: Used by the order status connector
                    token_type: text
                    request_header_key: Authorization
                    token_prefix: Bearer
                    domain: api.fulfilment.example.com
                    created_at: 1763199000
                    updated_at: 1768918935
              schema:
                $ref: '#/components/schemas/auth_token'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    type: error.list
                    request_id: test-uuid-replacement
                    errors:
                      - code: unauthorized
                        message: Access Token Invalid
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Not Found
          content:
            application/json:
              examples:
                Auth token not found:
                  value:
                    type: error.list
                    request_id: test-uuid-replacement
                    errors:
                      - code: not_found
                        message: Resource Not Found
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    auth_token:
      title: Auth Token
      type: object
      x-tags:
        - Auth Tokens
      description: |
        Metadata for a stored third-party credential that data connectors use to authenticate outbound requests. Only metadata is returned — the credential value itself, and its refresh and OAuth configuration, are never exposed.
      properties:
        type:
          type: string
          description: The type of object - `auth_token`.
          enum:
            - auth_token
          example: auth_token
        id:
          type: string
          description: The unique identifier for the auth token.
          example: '12345'
        name:
          type: string
          description: The name given to the credential when it was created.
          example: Fulfilment API key
          nullable: true
        description:
          type: string
          description: An optional description of what the credential is used for.
          example: Used by the order status connector
          nullable: true
        token_type:
          type: string
          description: How the credential is presented to the external API, for example as a header value or an HMAC signature.
          example: text
          nullable: true
        request_header_key:
          type: string
          description: The request header the credential is sent in.
          example: Authorization
          nullable: true
        token_prefix:
          type: string
          description: The prefix placed before the credential value in the header, for example `Bearer`.
          example: Bearer
          nullable: true
        domain:
          type: string
          description: The domain the credential is scoped to, if one was set.
          example: api.fulfilment.example.com
          nullable: true
        created_at:
          type: integer
          description: The time the credential was created as a Unix timestamp.
          example: 1763199000
          nullable: true
        updated_at:
          type: integer
          description: The time the credential was last updated as a Unix timestamp.
          example: 1768918935
          nullable: true
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code.
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              data:
                type: object
                nullable: true
                additionalProperties: true
                description: Optional. Extra detail about the error, for example `required_permissions` on a 403 `action_forbidden` error.
                example:
                  required_permissions:
                    - read_conversations
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.
      type: string
      example: '2.18'
      enum:
        - '1.0'
        - '1.1'
        - '1.2'
        - '1.3'
        - '1.4'
        - '2.0'
        - '2.1'
        - '2.2'
        - '2.3'
        - '2.4'
        - '2.5'
        - '2.6'
        - '2.7'
        - '2.8'
        - '2.9'
        - '2.10'
        - '2.11'
        - '2.12'
        - '2.13'
        - '2.14'
        - '2.15'
        - '2.16'
        - '2.17'
        - '2.18'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
