Upwork · JSON Structure

Graphql O Auth Token Structure

OAuth2 access token response

Type: object Properties: 4
FreelancingJobsTalentMarketplaceContractsHiring

OAuthToken is a JSON Structure definition published by Upwork, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

access_token token_type refresh_token expires_in

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/upwork/refs/heads/main/json-structure/graphql-o-auth-token-structure.json",
  "name": "OAuthToken",
  "description": "OAuth2 access token response",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The access token for API requests",
      "example": "eyJhbGciOiJSUzI1NiJ9.example.token"
    },
    "token_type": {
      "type": "string",
      "description": "Token type (always bearer)",
      "example": "bearer"
    },
    "refresh_token": {
      "type": "string",
      "description": "Token for obtaining new access tokens",
      "example": "refresh-token-xyz789"
    },
    "expires_in": {
      "type": "int32",
      "description": "Token lifetime in seconds",
      "example": 86400
    }
  }
}