> ## Documentation Index > Fetch the complete documentation index at: https://docs.graphiant.com/llms.txt > Use this file to discover all available pages before exploring further. # /v1/devices/oauth > Process OAuth client credentials for device onboarding ## OpenAPI ````json POST /v1/devices/oauth { "openapi": "3.0.0", "info": { "title": "Graphiant APIs", "version": "1.0.0", "description": "Graphiant API documentation." }, "servers": [ { "url": "https://api.graphiant.com" } ], "security": [ { "jwtAuth": [] } ], "tags": [], "paths": { "/v1/devices/oauth": { "post": { "description": "Process OAuth client credentials for device onboarding", "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v1DevicesOauthPostRequest" } } } }, "responses": { "200": { "description": "OAuth token generated successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v1DevicesOauthPostResponse" } } } }, "400": { "description": "Bad request - Invalid input" }, "500": { "description": "Internal server error" } } } } }, "components": { "schemas": { "v1DevicesOauthPostRequest": { "type": "object", "properties": { "grant_type": { "type": "string", "enum": [ "client_credentials" ], "example": "client_credentials", "description": "OAuth grant type" }, "scope": { "type": "string", "example": "type=zt-cpe uuid=device-uuid-123 hostname=device.example.com", "description": "OAuth scope containing device type, UUID, and hostname" }, "state": { "type": "string", "example": "state-12345", "description": "OAuth state parameter" }, "code_verify": { "type": "string", "example": "code-verify-12345", "description": "OAuth code verifier" }, "pt": { "type": "string", "example": "hardware", "description": "Platform type" }, "bm": { "type": "string", "example": "p", "description": "Boot mode" } }, "required": [ "grant_type", "scope" ] }, "v1DevicesOauthPostResponse": { "type": "object", "properties": { "access_token": { "type": "string", "example": "access-token-12345", "description": "OAuth access token" }, "expires_in": { "type": "integer", "example": 3600, "description": "Token expiration time in seconds" }, "token_type": { "type": "string", "example": "Bearer", "description": "Token type" } } } }, "securitySchemes": { "jwtAuth": { "type": "apiKey", "in": "header", "name": "authorization", "description": "Use `Bearer `" } } } } ````