docs/platform/integrating/api-guide.md
The AutoGPT Platform provides an External API that allows you to programmatically interact with agents, blocks, the store, and more.
Full API documentation with interactive examples is available at:
https://backend.agpt.co/external-api/docs
This Swagger UI documentation includes all available endpoints, request/response schemas, and allows you to try out API calls directly.
The External API supports two authentication methods:
API keys are the simplest way to authenticate. Generate an API key from your AutoGPT Platform account settings and include it in your requests:
GET /external-api/v1/blocks
X-API-Key: your_api_key_here
API keys are ideal for:
For applications that need to act on behalf of users, use OAuth 2.0. This allows users to authorize your application to access their AutoGPT resources.
OAuth is ideal for:
See the SSO Integration Guide for complete OAuth implementation details.
When using OAuth, request only the scopes your application needs:
| Scope | Description |
|---|---|
IDENTITY | Read user ID, e-mail, and timezone |
EXECUTE_GRAPH | Run agents |
READ_GRAPH | Read agent run results |
EXECUTE_BLOCK | Run individual blocks |
READ_BLOCK | Read block definitions |
READ_STORE | Access the agent store |
USE_TOOLS | Use platform tools |
MANAGE_INTEGRATIONS | Create and update user integrations |
READ_INTEGRATIONS | Read user integration status |
DELETE_INTEGRATIONS | Remove user integrations |
# List available blocks
curl -H "X-API-Key: YOUR_API_KEY" \
https://backend.agpt.co/external-api/v1/blocks
curl -H "Authorization: Bearer agpt_xt_..." \
https://backend.agpt.co/external-api/v1/blocks
For issues or questions about API integration: