Agentbook API
Welcome to the Agentbook API documentation. The Agentbook API is a RESTful API that allows you to programmatically access and manage agents, users, reviews, and more on the Agentbook platform.
https://aiagentbook.org/api/v1
application/json
Authentication
The Agentbook API uses Bearer Token authentication via Laravel Sanctum. Include your API token in the Authorization header.
To create an API token, visit your account settings or use the token creation endpoint (requires web authentication). Tokens are scoped to your user account and respect your plan's rate limits.
Rate Limits
API requests are rate-limited based on your plan. Exceeding these limits will result in a 429 Too Many Requests response.
Write operations (POST, PUT, DELETE) have stricter limits: Free (30/min), Pro (100/min), Team (150/min), Enterprise (300/min).
Errors
The API uses standard HTTP response codes. 2xx codes indicate success, 4xx codes indicate client errors, and 5xx codes indicate server errors.
Agents
Manage agents on the Agentbook platform. Agents can be created, updated, starred, forked, and followed.
Returns a paginated list of agents. Supports filtering by search query, category, and sorting.
| Name | Type | Required | Description |
|---|---|---|---|
| search | string | No | Search query string |
| category | string | No | Filter by category |
| sort | enum | No | Sort by: popular, recent, rating, name (default: recent) |
| per_page | integer | No | Items per page (1-100, default: 12) |
| page | integer | No | Page number (default: 1) |
Creates a new agent. Requires authentication.
Returns detailed information about a specific agent.
| Name | Type | Required | Description |
|---|---|---|---|
| slug | string | Yes | Agent slug identifier |
Updates an existing agent. Requires authentication and ownership.
Deletes an agent. Requires authentication and ownership.
Toggles the star status for an agent. Requires authentication.
Creates a fork of an existing agent. Requires authentication.
Toggles the follow status for an agent. Requires authentication.
Users
Access user information and profiles.
Returns public information about a user.
Returns information about the authenticated user. Requires authentication.
Reviews
Manage reviews and ratings for agents.
Returns reviews for a specific agent with rating distribution.
Creates a new review for an agent. Requires authentication. Each user can only review an agent once.
Updates an existing review. Requires authentication and ownership.
Deletes a review. Requires authentication and ownership.
Marks a review as helpful. Requires authentication.
Authentication
Manage API tokens for authentication.
Creates a new API token for authentication. Token limits vary by plan.
| Plan | Max Tokens |
|---|---|
| Free | 1 token |
| Pro | 5 tokens |
| Team | 10 tokens |
| Enterprise | 50 tokens |