Documentation Index
Fetch the complete documentation index at: https://docs.trypost.it/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
The TryPost API is available at:APP_URL followed by /api (e.g., https://trypost.yourdomain.com/api).
Authentication
All API requests require a Bearer token in theAuthorization header. You can create API keys (Personal Access Tokens) from the TryPost dashboard or via the POST /api-keys endpoint.
Workspace scoping
Every API key is bound to a specific workspace at creation time. All requests act on that workspace — you cannot list or modify resources from other workspaces with the same key. To work with multiple workspaces, create one API key per workspace. The same key works for the REST API and the MCP server.Rate limiting
API requests are throttled to prevent abuse. When you exceed the limit, the API returns a429 status code with a Retry-After header indicating how many seconds to wait.
Errors
The API uses conventional HTTP status codes. All error responses include amessage field.
| Status | Description |
|---|---|
200 | Success |
201 | Created |
204 | No content (successful deletion) |
401 | Missing or invalid API key |
402 | Active subscription required (Cloud only — self-hosted instances skip this check) |
404 | Resource not found, or resource not in the key’s workspace |
422 | Validation error |
429 | Rate limit exceeded |
Response shape
Resources are returned unwrapped — nodata: envelope. A single resource looks like:
data: is GET /posts, because it’s paginated.
Pagination
TheGET /posts endpoint returns 15 posts per page. The response uses Laravel’s standard pagination envelope:
page query parameter to navigate. Other list endpoints (signatures, labels, social accounts, API keys) return all items without pagination, as a plain array.
Quick reference
| Resource | Endpoints |
|---|---|
| Posts | GET /posts, POST /posts, GET /posts/{id}, PUT /posts/{id}, DELETE /posts/{id}, POST /posts/{id}/media, POST /posts/{id}/media/from-url, GET /posts/{id}/metrics, GET /posts/{id}/preview |
| Platforms | GET /content-types |
| Workspace | GET /workspace |
| Signatures | GET /signatures, POST /signatures, PUT /signatures/{id}, DELETE /signatures/{id} |
| Labels | GET /labels, POST /labels, PUT /labels/{id}, DELETE /labels/{id} |
| Social accounts | GET /social-accounts, PUT /social-accounts/{id}/toggle |
| API keys | GET /api-keys, POST /api-keys, DELETE /api-keys/{id} |

