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

# Get Token

> Obtain a security token for the GNet Platform API

<Note>
  Pass the returned token value in the `token` header on every subsequent request, e.g. `token: d2cfa643-1de0-42ba-b376-bfd3520b750c`. A token stays active until it is [released](/platform-api/authentication/release-token).
</Note>


## OpenAPI

````yaml platform-api/openapi.json POST /getToken2
openapi: 3.1.0
info:
  title: GNet Platform API
  description: >-
    RESTful API for exchanging ground transportation reservations over the GNet
    Platform (Platform.svc). Requesters send (farm-out) reservations; providers
    receive (farm-in) reservations and push status updates back.
  version: V1
  contact:
    name: GRiDD Support
    email: support@grdd.net
servers:
  - url: https://api.grdd.net/Platform.svc
    description: Production
security:
  - tokenAuth: []
tags:
  - name: Authentication
    description: Obtain and release security tokens
  - name: Reservations
    description: Submit, retrieve, cancel, and retry reservations
  - name: Provider Updates
    description: Provider systems push status changes to GNet
  - name: Tracking
    description: Real-time chauffeur/vehicle location
paths:
  /getToken2:
    post:
      tags:
        - Authentication
      summary: Get token
      description: >-
        Obtain a security token. Pass the returned token value in the `token`
        header on all subsequent GNet Platform API calls. A token stays active
        until it is released.
      operationId: getToken2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - uid
                - pw
              properties:
                uid:
                  type: string
                  description: API Gateway user ID
                pw:
                  type: string
                  description: API Gateway password
      responses:
        '200':
          description: Security token
          content:
            application/json:
              schema:
                type: string
              example: d2cfa643-1de0-42ba-b376-bfd3520b750c
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security: []
components:
  responses:
    BadRequest:
      description: Bad Request
    Unauthorized:
      description: Unauthorized — missing or invalid `token` header
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: token
      description: Security token obtained from `getToken2`.

````