API Reference
The Bedrock API is a REST API for building and managing autonomous AI agents.Base URL
Authentication
All requests require an API key in theAuthorization header:
Request Format
Headers
Request Body
Send JSON forPOST, PUT, and PATCH requests:
Response Format
Success Response
List Response (Paginated)
Error Response
HTTP Status Codes
| Code | Description |
|---|---|
200 OK | Request succeeded |
201 Created | Resource created |
204 No Content | Deleted successfully |
400 Bad Request | Invalid request or validation error |
401 Unauthorized | Missing or invalid API key |
403 Forbidden | Valid key but insufficient permissions |
404 Not Found | Resource not found |
Products
Base path:/api/products/
Products
| Method | Endpoint | Description |
|---|---|---|
GET | /products/ | List products |
POST | /products/ | Create product |
GET | /products/{id}/ | Get product |
PATCH | /products/{id}/ | Update product |
DELETE | /products/{id}/ | Delete product |
POST | /products/{id}/assign_default_adapters/ | Assign default adapters |
GET | /products/{id}/usage/ | Get usage stats |
API Keys
| Method | Endpoint | Description |
|---|---|---|
GET | /api-keys/ | List API keys |
POST | /api-keys/ | Create API key |
DELETE | /api-keys/{id}/ | Delete API key |
Agents
Base path:/api/cloud/
| Method | Endpoint | Description |
|---|---|---|
GET | /agents/ | List agents |
POST | /agents/ | Create agent |
GET | /agents/{id}/ | Get agent |
PATCH | /agents/{id}/ | Update agent |
DELETE | /agents/{id}/ | Delete agent |
POST | /agents/{id}/run/ | Wake/run agent |
POST | /agents/{id}/stop/ | Stop running agent |
POST | /agents/{id}/reset-memory/ | Clear agent memory |
GET | /agents/{id}/usage/ | Get agent usage stats |
Usage Records
| Method | Endpoint | Description |
|---|---|---|
GET | /usage/ | List usage records |
GET | /usage/summary/ | Aggregated usage summary |
Adapters & Tools
Base path:/api/toolbox/
Adapters
| Method | Endpoint | Description |
|---|---|---|
GET | /adapters/ | List adapters |
POST | /adapters/ | Create adapter |
GET | /adapters/{id}/ | Get adapter |
PATCH | /adapters/{id}/ | Update adapter |
DELETE | /adapters/{id}/ | Delete adapter |
Adapter Configs
| Method | Endpoint | Description |
|---|---|---|
GET | /adapter-configs/ | List configs |
POST | /adapter-configs/ | Create config |
GET | /adapter-configs/{id}/ | Get config |
PATCH | /adapter-configs/{id}/ | Update config |
DELETE | /adapter-configs/{id}/ | Delete config |
Tools
| Method | Endpoint | Description |
|---|---|---|
GET | /tools/ | List tools |
POST | /tools/ | Create tool |
GET | /tools/{id}/ | Get tool |
PATCH | /tools/{id}/ | Update tool |
DELETE | /tools/{id}/ | Delete tool |
Memory
Base path:/api/memory/
| Method | Endpoint | Description |
|---|---|---|
POST | /agents/{id}/log-messages/ | Log messages to memory |
GET | /agents/{id}/memory-context/ | Get formatted memory context |
GET | /agents/{id}/messages/ | Get recent raw messages |
Tracing
Base path:/api/tracing/
Traces
| Method | Endpoint | Description |
|---|---|---|
GET | /traces/list/ | List traces (paginated) |
POST | /traces/ | Create trace |
GET | /traces/{id}/ | Get trace with spans |
POST | /traces/{id}/end/ | End trace |
Spans
| Method | Endpoint | Description |
|---|---|---|
GET | /spans/ | List spans |
POST | /spans/ | Create span |
GET | /spans/{id}/ | Get span |
PATCH | /spans/{id}/ | Update span |
POST | /spans/{id}/end/ | End span |
POST | /spans/{id}/flag/ | Flag span for review |
Evals
| Method | Endpoint | Description |
|---|---|---|
GET | /evals/ | List eval test cases |
POST | /evals/ | Create eval test case |
Default State (Built-in Adapters)
Base path:/api/defaults/
Contacts
| Method | Endpoint | Description |
|---|---|---|
GET | /contacts/ | List contacts |
POST | /contacts/ | Create contact |
GET | /contacts/{id}/ | Get contact |
PATCH | /contacts/{id}/ | Update contact |
DELETE | /contacts/{id}/ | Delete contact |
Documents
| Method | Endpoint | Description |
|---|---|---|
GET | /documents/ | List documents |
POST | /documents/ | Create document |
GET | /documents/{id}/ | Get document |
PATCH | /documents/{id}/ | Update document |
DELETE | /documents/{id}/ | Delete document |
Projects
| Method | Endpoint | Description |
|---|---|---|
GET | /calendars/projects/ | List projects |
POST | /calendars/projects/ | Create project |
GET | /calendars/projects/{id}/ | Get project |
PATCH | /calendars/projects/{id}/ | Update project |
DELETE | /calendars/projects/{id}/ | Delete project |
SMS Messages
| Method | Endpoint | Description |
|---|---|---|
GET | /sms/messages/ | List SMS messages (read-only) |
OpenAPI Specification
The complete OpenAPI 3.0 spec is available at:- Interactive Docs:
https://api.bedrock.orinlabs.org/api/docs/ - ReDoc:
https://api.bedrock.orinlabs.org/api/redoc/ - Raw Schema:
https://api.bedrock.orinlabs.org/api/schema/