Workspace
List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
Base URL: https://api.reqlo.io/v1. Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
| Endpoint | Method and path |
|---|---|
| List organizations | GET /organizations |
| List projects | GET /projects |
| List environments | GET /environments |
| List agents | GET /agents |
| Create an agent | POST /agents |
| Replace an agent's tags | POST /agents/{id}/tags |
| Disable an agent | POST /agents/{id}/disable |
| Enable an agent | POST /agents/{id}/enable |
| Delete an agent | POST /agents/{id}/delete |
| Register a resource type | POST /resource-types |
| Register an action | POST /actions |
| Update an action | POST /actions/{name}/update |
| List API keys | GET /api-keys |
| Revoke an API key | POST /api-keys/{id}/revoke |
List organizations
/v1/organizationsPurpose and when to use
Organizations you belong to, with your role in each.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/organizations.
Request contract
This endpoint has no request body. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Response 200
Your organizations.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
data | array of object | No | No | Not specified | None specified | See the description above. |
data[].id | string (uuid) | No | No | Not specified | format uuid | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
data[].name | string | No | No | Not specified | None specified | Display name for this object. |
data[].role | string enum | No | No | Not specified | one of owner, admin, developer, viewer | Role assigned within the applicable organization. |
data[].created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
{
"data": [
{
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"name": "Acme",
"role": "owner",
"created_at": "2026-11-09T10:42:07Z"
}
]
}Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 "https://api.reqlo.io/v1/organizations" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN"Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. This read is safe to retry. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
List projects
/v1/projectsPurpose and when to use
Projects in one of your organizations.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/projects.
Request contract
This endpoint has no request body. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
organization_id | query | string (uuid) | Yes | format uuid | Organization ID from List organizations. |
Response 200
Projects.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
data | array of object | No | No | Not specified | None specified | See the description above. |
data[].id | string (uuid) | No | No | Not specified | format uuid | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
data[].public_id | string | No | No | Not specified | None specified | See the description above. |
data[].name | string | No | No | Not specified | None specified | Display name for this object. |
data[].created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
{
"data": [
{
"id": "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091",
"public_id": "PROJ_7Hq2mK9xR4vTq8Lp",
"name": "Support app",
"created_at": "2026-11-09T10:42:07Z"
}
]
}Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 "https://api.reqlo.io/v1/projects?organization_id=9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN"Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. This read is safe to retry. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
List environments
/v1/environmentsPurpose and when to use
A project's environments and their IDs. Put the ID in reqlo.config.yaml.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/environments.
Request contract
This endpoint has no request body. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
project_id | query | string (uuid) | Yes | format uuid | Project ID (the UUID) from List projects. |
Response 200
Environments.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
data | array of object | No | No | Not specified | None specified | See the description above. |
data[].id | string (uuid) | No | No | Not specified | format uuid | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
data[].kind | string enum | No | No | Not specified | one of sandbox, production | See the description above. |
data[].project_id | string (uuid) | No | No | Not specified | format uuid | Identifier of the project containing this object. |
{
"data": [
{
"id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10",
"kind": "sandbox",
"project_id": "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091"
}
]
}Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 "https://api.reqlo.io/v1/environments?project_id=2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN"Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. This read is safe to retry. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
List agents
/v1/agentsPurpose and when to use
Agents in the environment, newest first.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/agents.
Request contract
This endpoint has no request body. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
environment_id | query | string (uuid) | Yes | format uuid | Environment to act in. Copy it from the API keys page in the dashboard. |
Response 200
Agents.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
data | array of object | No | No | Not specified | None specified | See the description above. |
data[].id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
data[].name | string | No | No | Not specified | None specified | Display name for this object. |
data[].status | string enum | No | No | Not specified | one of active, disabled | Current lifecycle status. The allowed enum values are listed in validation. |
data[].tags | array of string | No | No | Not specified | None specified | Labels attached to this object; use values consistent with the matching policy rules. |
data[].provider | string, nullable | No | Yes | Not specified | None specified | See the description above. |
data[].created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
{
"data": [
{
"id": "agt_7Hq2mK9xR4vTq8Lp",
"name": "Document assistant",
"status": "active",
"tags": [
"assistant"
],
"provider": null,
"created_at": "2026-11-09T10:42:07Z"
}
]
}Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 "https://api.reqlo.io/v1/agents?environment_id=6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN"Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. This read is safe to retry. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Create an agent
/v1/agentsPurpose and when to use
Registers an agent. Use its public_id as agent.id when authorizing. Developers, admins and owners.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/agents.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
name | string | Yes | No | Not specified | max 120 chars | Display name for this object. |
tags | array of string | No | No | Not specified | max 20 items; each item: pattern ^[a-z][a-z0-9_-]{0,31}$ | Labels attached to this object; use values consistent with the matching policy rules. |
Response 201
The agent.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
public_id | string | No | No | Not specified | None specified | See the description above. |
name | string | No | No | Not specified | None specified | Display name for this object. |
status | string | No | No | Not specified | None specified | Current lifecycle status. The allowed enum values are listed in validation. |
tags | array of string | No | No | Not specified | None specified | Labels attached to this object; use values consistent with the matching policy rules. |
{
"public_id": "agt_7Hq2mK9xR4vTq8Lp",
"name": "Support reply agent",
"status": "active",
"tags": [
"support"
]
}Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/agents" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10",
"name": "Support reply agent",
"tags": [
"support"
]
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Replace an agent's tags
/v1/agents/{id}/tagsPurpose and when to use
Replaces the agent's tags. Tag rules use them on the next request.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/agents/{id}/tags.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
id | path | string | Yes | pattern ^agt_[0-9A-Za-z]{16}$ | Agent ID. |
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
Response 200
The agent.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/agents/agt_7Hq2mK9xR4vTq8Lp/tags" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10"
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
resource_missing | 404 | No, fix it first | The object doesn't exist in this environment. Check the ID and that you are using the right key or environment. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Disable an agent
/v1/agents/{id}/disablePurpose and when to use
Stops the agent. Its requests are denied with agent_revoked until it is enabled.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/agents/{id}/disable.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
id | path | string | Yes | pattern ^agt_[0-9A-Za-z]{16}$ | Agent ID. |
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
Response 200
The agent.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/agents/agt_7Hq2mK9xR4vTq8Lp/disable" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10"
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
resource_missing | 404 | No, fix it first | The object doesn't exist in this environment. Check the ID and that you are using the right key or environment. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Enable an agent
/v1/agents/{id}/enablePurpose and when to use
Lets a disabled agent's requests be evaluated again.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/agents/{id}/enable.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
id | path | string | Yes | pattern ^agt_[0-9A-Za-z]{16}$ | Agent ID. |
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
Response 200
The agent.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/agents/agt_7Hq2mK9xR4vTq8Lp/enable" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10"
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
resource_missing | 404 | No, fix it first | The object doesn't exist in this environment. Check the ID and that you are using the right key or environment. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Delete an agent
/v1/agents/{id}/deletePurpose and when to use
Deletes the agent permanently. Its requests are denied from then on.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/agents/{id}/delete.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
id | path | string | Yes | pattern ^agt_[0-9A-Za-z]{16}$ | Agent ID. |
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
Response 200
The agent.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/agents/agt_7Hq2mK9xR4vTq8Lp/delete" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10"
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
resource_missing | 404 | No, fix it first | The object doesn't exist in this environment. Check the ID and that you are using the right key or environment. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Register a resource type
/v1/resource-typesPurpose and when to use
Registers a resource type and its attribute schema. Registered attributes can't be changed later. Developers, admins and owners.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/resource-types.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
name | string | Yes | No | Not specified | pattern ^[a-z][a-z0-9_]{0,63}$ | Display name for this object. |
description | string | No | No | Not specified | None specified | Human-readable description of this object. |
attributes | object | No | No | Not specified | None specified | Attribute schema. See Custom attributes. |
Response 201
The resource type.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/resource-types" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10",
"name": "document",
"description": "A workspace document.",
"attributes": {
"owner_id": {
"type": "id",
"required": true
}
}
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
catalog_conflict | 409 | No, fix it first | That name is already registered or archived in this environment. Choose another name. Archived names can't be reused. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Register an action
/v1/actionsPurpose and when to use
Registers an action on a resource type, with its context schema. Developers, admins and owners.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/actions.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
name | string | Yes | No | Not specified | None specified | Display name for this object. |
resource_type | string | Yes | No | Not specified | None specified | Registered resource type to which this action or rule applies. |
description | string | No | No | Not specified | None specified | Human-readable description of this object. |
context_schema | object | No | No | Not specified | None specified | See the description above. |
Response 201
The action.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/actions" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10",
"name": "documents.read",
"resource_type": "document",
"description": "Read a document.",
"context_schema": {
"document_classification": {
"type": "enum",
"values": [
"public",
"internal",
"confidential"
],
"required": true
}
}
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
catalog_conflict | 409 | No, fix it first | That name is already registered or archived in this environment. Choose another name. Archived names can't be reused. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Update an action
/v1/actions/{name}/updatePurpose and when to use
Changes an action's description or context schema. Its resource type can't change.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/actions/{name}/update.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
name | path | string | Yes | None | Action name. |
Every request field
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
environment_id | string (uuid) | Yes | No | Not specified | format uuid | Environment identifier. Requests are still scoped by their authenticated API key. |
description | string | No | No | Not specified | None specified | Human-readable description of this object. |
context_schema | object | No | No | Not specified | None specified | See the description above. |
Response 200
The updated action.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/actions/documents.read/update" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10",
"context_schema": {
"document_classification": {
"type": "enum",
"values": [
"public",
"internal",
"confidential"
],
"required": true
}
}
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
resource_missing | 404 | No, fix it first | The object doesn't exist in this environment. Check the ID and that you are using the right key or environment. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
List API keys
/v1/api-keysPurpose and when to use
Key metadata for the environment. Secrets are never returned. Create and roll keys in the dashboard.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/api-keys.
Request contract
This endpoint has no request body. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
environment_id | query | string (uuid) | Yes | format uuid | Environment to act in. Copy it from the API keys page in the dashboard. |
Response 200
Keys.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
data | array of object | No | No | Not specified | None specified | See the description above. |
{
"data": []
}Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 "https://api.reqlo.io/v1/api-keys?environment_id=6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN"Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. This read is safe to retry. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Revoke an API key
/v1/api-keys/{id}/revokePurpose and when to use
Revokes a key immediately. Send an empty JSON object.
Authentication and environment
Send Authorization: Bearer <CLI token>. The token comes from reqlo login (or REQLO_ACCESS_TOKEN) and acts as that person, with their role in the environment. Project API keys are refused.
Full URL: https://api.reqlo.io/v1/api-keys/{id}/revoke.
Request contract
Send a JSON body with Content-Type: application/json. Unknown fields and query parameters are rejected with 422 parameter_invalid.
Path, query and header parameters
| Name | In | Type | Required | Validation | Description |
|---|---|---|---|---|---|
id | path | string (uuid) | Yes | format uuid | Key ID from List API keys. |
Response 200
The revoked key's metadata.
Response headers
| Header | Meaning |
|---|---|
Reqlo-Request-Id | Correlation ID for support. Also in every error body as request_id. |
Sample requests
IDs are placeholders. Export REQLO_ACCESS_TOKEN in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 -X POST "https://api.reqlo.io/v1/api-keys/0c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f/revoke" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
access_denied | 403 | No, fix it first | Your role doesn't allow this operation in that environment. Ask an owner or admin. Publishing and rollback need owner or admin. |
resource_missing | 404 | No, fix it first | The object doesn't exist in this environment. Check the ID and that you are using the right key or environment. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
authentication_required | 401 | No, fix it first | No Bearer credential was sent. Send Authorization: Bearer with a project key or CLI token. |
rate_limited | 429 | Yes, with backoff | More than 120 requests in a minute for this key, token or address. Back off and retry. |
service_unavailable | 503 | Yes, with backoff | A required service is unavailable. This is never a decision. Do not run the action. Retry with backoff. |
Errors use one envelope:
{
"error": {
"code": "parameter_invalid",
"message": "Request fields are invalid or unsupported.",
"request_id": "3b2f1c9e-0d4a-4c51-9b8e-6a7d2f0e1c44"
}
}Rate limits, retries and uncertain outcomes
Each key, token and IP address can make 120 requests per minute; more return 429 rate_limited. Use a bounded timeout (the samples use 3 seconds) and retry only 429 and 5xx, with exponential backoff. Don't automatically replay this change after a timeout: read the current state first. Validation errors and denials are not transient.
Security, identity and failure behavior
CLI tokens act as their person: keep them out of logs, URLs and shared machines, and revoke them under Account → CLI tokens when they're no longer needed.
Related endpoints and integration examples
- Policies — Read, save, publish and roll back policies as a signed-in person. These routes power
reqlo policies. - Workspace — List organizations, projects and environments, and manage agents, the catalog and API keys as a signed-in person. These routes power the CLI.
- Credentials — Check which environment a project key belongs to, who a CLI token acts as, and revoke a CLI token.
- Guides: CLI commands, identities and agents and actions and resources.
Something wrong or unclear? Report an issue with this page.