Create Agent
POST/api/v1/agents
Create an agent in the key's workspace and return the full record, prompts included.
Requires Idempotency-Key: a retried request with the same key returns the agent created the first time instead of a second one.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
Successful Response
Idempotency-Key header missing, or the request was rejected before any work started.
X-API-Key missing, invalid or revoked.
The key has no access to this workspace, or the workspace has the feature disabled.
No such resource in the key's workspace.
This Idempotency-Key was already used with a different body, or the same request is still in progress.
Response Headers
Retry-After
Seconds to wait before retrying.
Validation Error
Per-key rate limit exceeded.
Response Headers
Retry-After
Seconds to wait before retrying.