Skip to main content

Base URL

https://api.auth-agent.com

Authentication

Auth Agent uses OAuth 2.1 with PKCE (Proof Key for Code Exchange) for secure authorization. All API endpoints require proper authentication as described in their respective documentation.

Endpoint Categories

OAuth Endpoints

Public endpoints implementing the OAuth 2.1 standard:

Agent Back-Channel Endpoints

Endpoints used by agents to authenticate via back-channel:

Discovery Endpoints

OAuth server metadata and key information:

Rate Limiting

Currently, Auth Agent does not implement rate limiting. This may change in future versions.

Error Responses

All endpoints follow standard OAuth 2.0 error response format:
{
  "error": "invalid_request",
  "error_description": "Missing required parameter: client_id"
}

Common Error Codes

CodeDescription
invalid_requestThe request is missing a required parameter or is malformed
invalid_clientClient authentication failed
invalid_grantThe authorization code or refresh token is invalid or expired
unauthorized_clientThe client is not authorized to use this grant type
unsupported_grant_typeThe grant type is not supported
invalid_scopeThe requested scope is invalid or unknown
server_errorInternal server error occurred

Security

All authorization flows must use PKCE (Proof Key for Code Exchange) with the S256 method. Plain code challenges are not supported.
All redirect URIs must use HTTPS, except for localhost development. HTTP is only allowed for localhost URLs.
Refresh tokens are automatically rotated on each use. When you use a refresh token to get new access tokens, the old refresh token is revoked and a new one is issued.
All secrets (agent secrets, client secrets) are hashed using bcrypt with 10 rounds before storage. Never share your secrets in client-side code.

SDKs and Libraries

Need Help?