{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seven-io/json-schema/seven-io-post-token-request-schema.json",
  "title": "PostTokenRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seven-io-token-api-openapi.yml#/components/schemas/PostTokenRequest",
  "type": "object",
  "properties": {
    "grant_type": {
      "type": "string",
      "description": "Either 'authorization_code' or 'refresh_token'"
    },
    "code": {
      "type": "string",
      "description": "The authorization code from step 3 (required when grant_type is authorization_code)"
    },
    "refresh_token": {
      "type": "string",
      "description": "The refresh token (required when grant_type is refresh_token)"
    }
  },
  "required": [
    "grant_type"
  ]
}