Authentication
OAuth2 Token Endpoint
Obtain an OAuth2 access token using client credentials grant. The client_id is the agent's DID and client_secret is obtained from oauth_credentials.json.
Credentials location: .bindu/oauth_credentials.json
Grant type: client_credentials
Scopes:
- openid: OpenID Connect scope
- offline: Offline access
- agent:read: Read agent data
- agent:write: Write agent data
post/oauth2/token
Response
Access token granted
Example response
{
"token_type": "bearer",
"expires_in": 3599,
"scope": "openid offline agent:read agent:write"
}