---
title: "Obtain an authentication token."
url: "https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken"
---

> Full API specification: https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2.md

# Obtain an authentication token.

`GET` `/token/`

Operation ID: `getToken`

## Purpose 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.3
info:
  title: Verizon Connect API
  version: 1.0.0
servers:
  - url: https://api.us.vzconnect.com
paths:
  /token/:
    get:
      summary: Obtain an authentication token.
      description: >-
        ## Purpose


        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
```
