---
title: "Obtain an authentication token."
url: "https://developers.vzconnect.com/apis/token-authorization-api-1/versions/b7ac2167-5a75-4f11-bc7d-50e4727a4233/operations/getToken"
---

> Full API specification: https://developers.vzconnect.com/apis/token-authorization-api-1/versions/b7ac2167-5a75-4f11-bc7d-50e4727a4233.md

# Obtain an authentication token.

`GET` `/token/`

Operation ID: `getToken`

Retrieves a unique authorization token which will be submitted as part of the request header for authentication on all subsequent API calls. Tokens are only valid for 20 minutes. Authentication is performed using HTTP Basic authentication: a Base64-encoded value of the integration credentials (username and password combined into one field without any spaces), prefixed with the word 'Basic'. Note: The returned response is restricted to the Reveal account's data plan; if the information being queried is outside of the data plan, a 400 Bad Request response is returned.

## Responses

- `200` - Successfully generated authentication token.
- `400` - Bad Request. Returned when the information being queried is outside of the account's data plan.
- `401` - Unauthorized. Integration credentials are missing or invalid.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Token Authorization API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /token/:
    get:
      summary: Obtain an authentication token.
      description: "Retrieves a unique authorization token which will be submitted as
        part of the request header for authentication on all subsequent API
        calls. Tokens are only valid for 20 minutes. Authentication is performed
        using HTTP Basic authentication: a Base64-encoded value of the
        integration credentials (username and password combined into one field
        without any spaces), prefixed with the word 'Basic'. Note: The returned
        response is restricted to the Reveal account's data plan; if the
        information being queried is outside of the data plan, a 400 Bad Request
        response is returned."
      operationId: getToken
      responses:
        "200":
          description: Successfully generated authentication token.
          content:
            application/json: {}
        "400":
          description: Bad Request. Returned when the information being queried is outside
            of the account's data plan.
        "401":
          description: Unauthorized. Integration credentials are missing or invalid.
          content:
            application/json: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
      x-kong-route-defaults:
        strip_path: false
      tags:
        - Token Authorization API
```
