> ## 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 > Redirect to OAuth authorization page for device onboarding ## OpenAPI ````json GET /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": { "get": { "description": "Redirect to OAuth authorization page for device onboarding", "parameters": [ { "in": "query", "name": "scope", "required": true, "schema": { "type": "string", "example": "type=zt-cpe uuid=device-uuid-123 hostname=device.example.com" }, "description": "OAuth scope containing device type, UUID, and hostname" }, { "in": "query", "name": "state", "schema": { "type": "string", "example": "state-12345" }, "description": "OAuth state parameter" }, { "in": "query", "name": "code_challenge", "schema": { "type": "string", "example": "code-challenge-12345" }, "description": "PKCE code challenge" }, { "in": "query", "name": "code_challenge_method", "schema": { "type": "string", "example": "S256" }, "description": "PKCE code challenge method" }, { "in": "query", "name": "pt", "schema": { "type": "string", "example": "hardware" }, "description": "Platform type" }, { "in": "query", "name": "bm", "schema": { "type": "string", "example": "p" }, "description": "Boot mode" } ], "responses": { "302": { "description": "Redirect to OAuth authorization page" }, "400": { "description": "Bad request - Invalid parameters" }, "500": { "description": "Internal server error" } } } } }, "components": { "securitySchemes": { "jwtAuth": { "type": "apiKey", "in": "header", "name": "authorization", "description": "Use `Bearer `" } } } } ````