{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/suitecrm/main/json-schema/suitecrm-post-api-access-token-request-schema.json",
  "title": "PostApiAccessTokenRequest",
  "x-generated": "2026-09-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/suitecrm-openapi-generated.yml#/components/schemas/PostApiAccessTokenRequest",
  "type": "object",
  "properties": {
    "grant_type": {
      "type": "string",
      "description": "One of \"client_credentials\", \"password\", \"authorization_code\", or \"refresh_token\""
    },
    "client_id": {
      "type": "string",
      "description": "The client UUID"
    },
    "client_secret": {
      "type": "string",
      "description": "The client secret"
    },
    "username": {
      "type": "string",
      "description": "CRM username (required for password grant)"
    },
    "password": {
      "type": "string",
      "description": "CRM password (required for password grant)"
    },
    "code": {
      "type": "string",
      "description": "Authorization code (required for authorization_code grant)"
    },
    "redirect_uri": {
      "type": "string",
      "description": "Redirect URI (required for authorization_code grant)"
    },
    "refresh_token": {
      "type": "string",
      "description": "Refresh token (required for refresh_token grant)"
    }
  },
  "required": [
    "grant_type",
    "client_id",
    "client_secret"
  ]
}