AT&T · JSON Structure

Sms Api Token Request Structure

TokenRequest schema from AT&T API

Type: object Properties: 6 Required: 4
Fortune 100TelecommunicationsWirelessWirelineMessagingSpeechMobileBroadbandEnterprise

TokenRequest is a JSON Structure definition published by AT&T, describing 6 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

client_id client_secret grant_type scope code refresh_token

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/at-and-t/refs/heads/main/json-structure/sms-api-token-request-structure.json",
  "description": "TokenRequest schema from AT&T API",
  "type": "object",
  "required": [
    "client_id",
    "client_secret",
    "grant_type",
    "scope"
  ],
  "properties": {
    "client_id": {
      "type": "string",
      "description": "The App Key from your AT&T developer account",
      "example": "your_app_key"
    },
    "client_secret": {
      "type": "string",
      "description": "The App Secret from your AT&T developer account",
      "example": "your_app_secret"
    },
    "grant_type": {
      "type": "string",
      "description": "OAuth grant type",
      "enum": [
        "client_credentials",
        "authorization_code",
        "refresh_token"
      ],
      "example": "client_credentials"
    },
    "scope": {
      "type": "string",
      "description": "Space-separated list of API scopes (e.g. SMS, MMS, SPEECH)",
      "example": "SMS"
    },
    "code": {
      "type": "string",
      "description": "Authorization code (required for authorization_code grant type)",
      "example": "auth_code_abc123"
    },
    "refresh_token": {
      "type": "string",
      "description": "Refresh token (required for refresh_token grant type)",
      "example": "f6e5d4c3b2a1f6e5d4c3b2a1f6e5d4c3"
    }
  },
  "name": "TokenRequest"
}