Delegations
Record, list and revoke a person's grant letting one agent act for them.
Base URL: https://api.reqlo.io/v1. Send Authorization: Bearer <project API key> from your server. The key (rq_test_…, from API keys in the dashboard) selects the organization and environment; nothing in the request can change them.
| Endpoint | Method and path |
|---|---|
| List delegations | GET /delegations |
| Create a delegation | POST /delegations |
| Retrieve a delegation | GET /delegations/{id} |
| Revoke a delegation | POST /delegations/{id}/revoke |
List delegations
/v1/delegationsPurpose and when to use
Lists delegations in the key's environment, newest first, optionally for one agent or subject.
Authentication and environment
Send Authorization: Bearer <project API key> from your server. The key (rq_test_…, from API keys in the dashboard) selects the organization and environment; nothing in the request can change them.
Full URL: https://api.reqlo.io/v1/delegations.
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 |
|---|---|---|---|---|---|
agent_id | query | string | No | None | Only this agent's delegations. |
subject_id | query | string | No | None | Only this subject's delegations. |
Response 200
Delegations.
| 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[].object | string enum | No | No | Not specified | one of delegation | Object discriminator identifying the response shape. |
data[].agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
data[].subject | object | No | No | Not specified | None specified | See the description above. |
data[].subject.id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
data[].subject.kind | string | No | No | Not specified | None specified | See the description above. |
data[].actions | array of string | No | No | Not specified | None specified | Action names covered by this rule or grant. |
data[].verification | object | No | No | Not specified | None specified | Evidence and method used to verify the subject's authority. |
data[].verification.method | string enum | No | No | Not specified | one of server_session | Method used to verify the subject identity and authority. |
data[].status | string enum | No | No | Not specified | one of active, revoked, expired | Current lifecycle status. The allowed enum values are listed in validation. |
data[].expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
data[].created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
data[].revoked_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Revocation timestamp. Null means no revocation timestamp is present. |
{
"data": [
{
"id": "DEL_5Hq2mK9xR4vTq8Lp",
"object": "delegation",
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject": {
"id": "usr_94",
"kind": "user"
},
"actions": [
"calendar.schedule"
],
"verification": {
"method": "server_session"
},
"status": "active",
"expires_at": "2026-12-01T00:00:00Z",
"created_at": "2026-11-09T10:42:07Z",
"revoked_at": null
}
]
}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_API_KEY in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 "https://api.reqlo.io/v1/delegations" \
-H "Authorization: Bearer $REQLO_API_KEY"Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
api_key_invalid | 401 | No, fix it first | The API key is invalid, expired or revoked. Check the key or roll a new one in the dashboard. |
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
Project keys are secrets: keep them on your servers, out of logs and out of prompts. A key can't change policies, agents or keys, and can't approve requests.
Related endpoints and integration examples
- Authorize — Ask whether an agent may perform an action, and record the decision.
- Delegations — Record, list and revoke a person's grant letting one agent act for them.
- Guides: Delegated access and
reqlo.delegationsin the TypeScript SDK.
Create a delegation
/v1/delegationsPurpose and when to use
Records that a person let one agent perform the listed actions for them until expires_at. Call it from your backend after the person consented in your app, with the subject from your verified session.
Authentication and environment
Send Authorization: Bearer <project API key> from your server. The key (rq_test_…, from API keys in the dashboard) selects the organization and environment; nothing in the request can change them.
Full URL: https://api.reqlo.io/v1/delegations.
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 |
|---|---|---|---|---|---|---|
agent_id | string | Yes | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
subject | object | Yes | No | Not specified | unknown fields rejected | See the description above. |
subject.id | string | Yes (when parent is present) | No | Not specified | max 128 chars | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
subject.kind | string | Yes (when parent is present) | No | Not specified | None specified | See the description above. |
actions | array of string | Yes | No | Not specified | min 1 items; max 50 items | Registered actions or namespace.* patterns. |
expires_at | string (date-time) | Yes | No | Not specified | format date-time | At most 90 days ahead. |
verification | object | No | No | Not specified | None specified | Evidence and method used to verify the subject's authority. |
verification.method | string enum | No | No | "server_session" | one of server_session | Method used to verify the subject identity and authority. |
Response 201
The delegation. Pass its id as delegation_id when authorizing.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
object | string enum | No | No | Not specified | one of delegation | Object discriminator identifying the response shape. |
agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
subject | object | No | No | Not specified | None specified | See the description above. |
subject.id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
subject.kind | string | No | No | Not specified | None specified | See the description above. |
actions | array of string | No | No | Not specified | None specified | Action names covered by this rule or grant. |
verification | object | No | No | Not specified | None specified | Evidence and method used to verify the subject's authority. |
verification.method | string enum | No | No | Not specified | one of server_session | Method used to verify the subject identity and authority. |
status | string enum | No | No | Not specified | one of active, revoked, expired | Current lifecycle status. The allowed enum values are listed in validation. |
expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
revoked_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Revocation timestamp. Null means no revocation timestamp is present. |
{
"id": "DEL_5Hq2mK9xR4vTq8Lp",
"object": "delegation",
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject": {
"id": "usr_94",
"kind": "user"
},
"actions": [
"calendar.schedule"
],
"verification": {
"method": "server_session"
},
"status": "active",
"expires_at": "2026-12-01T00:00:00Z",
"created_at": "2026-11-09T10:42:07Z",
"revoked_at": null
}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_API_KEY 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/delegations" \
-H "Authorization: Bearer $REQLO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject": {
"id": "usr_94",
"kind": "user"
},
"actions": [
"calendar.schedule"
],
"expires_at": "2026-12-01T00:00:00Z",
"verification": {
"method": "server_session"
}
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
api_key_invalid | 401 | No, fix it first | The API key is invalid, expired or revoked. Check the key or roll a new one in the dashboard. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
action_unknown | 422 | No, fix it first | The action isn't registered and active in this environment. Register it under Actions & resources. |
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. |
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
Project keys are secrets: keep them on your servers, out of logs and out of prompts. A key can't change policies, agents or keys, and can't approve requests.
Related endpoints and integration examples
- Authorize — Ask whether an agent may perform an action, and record the decision.
- Delegations — Record, list and revoke a person's grant letting one agent act for them.
- Guides: Delegated access and
reqlo.delegationsin the TypeScript SDK.
Operation-specific notes
Don't retry a create automatically after a timeout: it may have succeeded. List the subject's delegations to check first. The TypeScript SDK never retries this call.
Retrieve a delegation
/v1/delegations/{id}Purpose and when to use
Reads one delegation and its status.
Authentication and environment
Send Authorization: Bearer <project API key> from your server. The key (rq_test_…, from API keys in the dashboard) selects the organization and environment; nothing in the request can change them.
Full URL: https://api.reqlo.io/v1/delegations/{id}.
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 |
|---|---|---|---|---|---|
id | path | string | Yes | pattern ^DEL_[0-9A-Za-z]{16}$ | Delegation ID returned when it was created. |
Response 200
The delegation.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
object | string enum | No | No | Not specified | one of delegation | Object discriminator identifying the response shape. |
agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
subject | object | No | No | Not specified | None specified | See the description above. |
subject.id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
subject.kind | string | No | No | Not specified | None specified | See the description above. |
actions | array of string | No | No | Not specified | None specified | Action names covered by this rule or grant. |
verification | object | No | No | Not specified | None specified | Evidence and method used to verify the subject's authority. |
verification.method | string enum | No | No | Not specified | one of server_session | Method used to verify the subject identity and authority. |
status | string enum | No | No | Not specified | one of active, revoked, expired | Current lifecycle status. The allowed enum values are listed in validation. |
expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
revoked_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Revocation timestamp. Null means no revocation timestamp is present. |
{
"id": "DEL_5Hq2mK9xR4vTq8Lp",
"object": "delegation",
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject": {
"id": "usr_94",
"kind": "user"
},
"actions": [
"calendar.schedule"
],
"verification": {
"method": "server_session"
},
"status": "active",
"expires_at": "2026-12-01T00:00:00Z",
"created_at": "2026-11-09T10:42:07Z",
"revoked_at": null
}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_API_KEY in your server or terminal; never put it in browser code.
curl --fail-with-body --max-time 3 "https://api.reqlo.io/v1/delegations/DEL_5Hq2mK9xR4vTq8Lp" \
-H "Authorization: Bearer $REQLO_API_KEY"Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
api_key_invalid | 401 | No, fix it first | The API key is invalid, expired or revoked. Check the key or roll a new one in the dashboard. |
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. This read is safe to retry. Validation errors and denials are not transient.
Security, identity and failure behavior
Project keys are secrets: keep them on your servers, out of logs and out of prompts. A key can't change policies, agents or keys, and can't approve requests.
Related endpoints and integration examples
- Authorize — Ask whether an agent may perform an action, and record the decision.
- Delegations — Record, list and revoke a person's grant letting one agent act for them.
- Guides: Delegated access and
reqlo.delegationsin the TypeScript SDK.
Revoke a delegation
/v1/delegations/{id}/revokePurpose and when to use
Revokes a delegation immediately. Requests that use it are denied with delegation_revoked from then on. Send an empty JSON object.
Authentication and environment
Send Authorization: Bearer <project API key> from your server. The key (rq_test_…, from API keys in the dashboard) selects the organization and environment; nothing in the request can change them.
Full URL: https://api.reqlo.io/v1/delegations/{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 | Yes | pattern ^DEL_[0-9A-Za-z]{16}$ | Delegation ID returned when it was created. |
Response 200
The revoked delegation.
| Field | Type | Required | Nullable | Default | Validation and restrictions | Description |
|---|---|---|---|---|---|---|
id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
object | string enum | No | No | Not specified | one of delegation | Object discriminator identifying the response shape. |
agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
subject | object | No | No | Not specified | None specified | See the description above. |
subject.id | string | No | No | Not specified | None specified | Identifier of this object. Treat it as opaque; an identifier is not identity proof. |
subject.kind | string | No | No | Not specified | None specified | See the description above. |
actions | array of string | No | No | Not specified | None specified | Action names covered by this rule or grant. |
verification | object | No | No | Not specified | None specified | Evidence and method used to verify the subject's authority. |
verification.method | string enum | No | No | Not specified | one of server_session | Method used to verify the subject identity and authority. |
status | string enum | No | No | Not specified | one of active, revoked, expired | Current lifecycle status. The allowed enum values are listed in validation. |
expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
revoked_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Revocation timestamp. Null means no revocation timestamp is present. |
{
"id": "DEL_5Hq2mK9xR4vTq8Lp",
"object": "delegation",
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject": {
"id": "usr_94",
"kind": "user"
},
"actions": [
"calendar.schedule"
],
"verification": {
"method": "server_session"
},
"status": "active",
"expires_at": "2026-12-01T00:00:00Z",
"created_at": "2026-11-09T10:42:07Z",
"revoked_at": null
}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_API_KEY 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/delegations/DEL_5Hq2mK9xR4vTq8Lp/revoke" \
-H "Authorization: Bearer $REQLO_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
api_key_invalid | 401 | No, fix it first | The API key is invalid, expired or revoked. Check the key or roll a new one in the dashboard. |
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
Project keys are secrets: keep them on your servers, out of logs and out of prompts. A key can't change policies, agents or keys, and can't approve requests.
Related endpoints and integration examples
- Authorize — Ask whether an agent may perform an action, and record the decision.
- Delegations — Record, list and revoke a person's grant letting one agent act for them.
- Guides: Delegated access and
reqlo.delegationsin the TypeScript SDK.
Something wrong or unclear? Report an issue with this page.