Approvals
Read approval requests, and approve or reject them as a signed-in person.
Base URL: https://api.reqlo.io/v1. Send either a project API key from your server (the key selects the environment) or a CLI token from reqlo login (pass environment_id; it acts as that person).
| Endpoint | Method and path |
|---|---|
| List approvals | GET /approvals |
| Retrieve an approval | GET /approvals/{id} |
| Approve a request | POST /approvals/{id}/approve |
| Reject a request | POST /approvals/{id}/reject |
List approvals
/v1/approvalsPurpose and when to use
Lists approval requests, newest first. With a project key, the key's environment is used and only status is accepted. With a CLI token, pass environment_id.
Authentication and environment
Send either a project API key from your server (the key selects the environment) or a CLI token from reqlo login (pass environment_id; it acts as that person).
Full URL: https://api.reqlo.io/v1/approvals.
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 |
|---|---|---|---|---|---|
status | query | string enum | No | one of pending, approved, rejected, expired, consumed | Only approvals with this status. |
environment_id | query | string (uuid) | No | format uuid | Required with a CLI token. Not accepted with a project key. |
Response 200
Approvals in the environment.
| 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 approval | Object discriminator identifying the response shape. |
data[].status | string enum | No | No | Not specified | one of pending, approved, rejected, expired, consumed | Current lifecycle status. The allowed enum values are listed in validation. |
data[].decision_id | string, nullable | No | Yes | Not specified | None specified | The decision that created this request. |
data[].request_digest | string | No | No | Not specified | None specified | SHA-256 of the exact request. Redemption must match it. |
data[].summary | object | No | No | Not specified | None specified | What is being approved. |
data[].summary.agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
data[].summary.subject_id | string | No | No | Not specified | None specified | See the description above. |
data[].summary.action | string | No | No | Not specified | None specified | See the description above. |
data[].summary.resource | string | No | No | Not specified | None specified | Target resource reference and authoritative attributes used for this authorization request. |
data[].channel_id | string, nullable | No | Yes | Not specified | None specified | Approval channel, if the rule named one. |
data[].expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
data[].resolved_by | string, nullable | No | Yes | Not specified | None specified | Identifier of the verified approver who resolved the approval. |
data[].resolved_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Timestamp when the approval was resolved. |
data[].note | string, nullable | No | Yes | Not specified | None specified | Human-readable change or resolution note for the audit trail. Do not include secrets. |
data[].created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
environment_id | string (uuid) | No | No | Not specified | format uuid | The key's environment (project-key reads only). |
{
"data": [
{
"id": "APR_7Hq2mK9xR4vTq8Lp",
"object": "approval",
"status": "pending",
"decision_id": null,
"request_digest": "sha256:4f1c…",
"summary": {
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject_id": "usr_94",
"action": "documents.publish",
"resource": "document/doc_831"
},
"channel_id": null,
"expires_at": "2026-11-09T11:42:07Z",
"resolved_by": null,
"resolved_at": null,
"note": null,
"created_at": "2026-11-09T10:42:07Z"
}
],
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10"
}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/approvals" \
-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. |
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
parameter_invalid | 422 | No, fix it first | A field or query parameter is missing, unknown or invalid. Fix the request. Unknown fields are rejected. |
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. |
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.
- Approvals — Read approval requests, and approve or reject them as a signed-in person.
- Guides: Human approvals, webhooks and
reqlo approvals.
Retrieve an approval
/v1/approvals/{id}Purpose and when to use
Reads one approval. Poll it after an approval_required decision, then redeem once it is approved. With a CLI token, pass environment_id.
Authentication and environment
Send either a project API key from your server (the key selects the environment) or a CLI token from reqlo login (pass environment_id; it acts as that person).
Full URL: https://api.reqlo.io/v1/approvals/{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 ^APR_[0-9A-Za-z]{16}$ | Approval ID returned in a decision. |
environment_id | query | string (uuid) | No | format uuid | Required with a CLI token. Not accepted with a project key. |
Response 200
The approval.
| 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 approval | Object discriminator identifying the response shape. |
status | string enum | No | No | Not specified | one of pending, approved, rejected, expired, consumed | Current lifecycle status. The allowed enum values are listed in validation. |
decision_id | string, nullable | No | Yes | Not specified | None specified | The decision that created this request. |
request_digest | string | No | No | Not specified | None specified | SHA-256 of the exact request. Redemption must match it. |
summary | object | No | No | Not specified | None specified | What is being approved. |
summary.agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
summary.subject_id | string | No | No | Not specified | None specified | See the description above. |
summary.action | string | No | No | Not specified | None specified | See the description above. |
summary.resource | string | No | No | Not specified | None specified | Target resource reference and authoritative attributes used for this authorization request. |
channel_id | string, nullable | No | Yes | Not specified | None specified | Approval channel, if the rule named one. |
expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
resolved_by | string, nullable | No | Yes | Not specified | None specified | Identifier of the verified approver who resolved the approval. |
resolved_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Timestamp when the approval was resolved. |
note | string, nullable | No | Yes | Not specified | None specified | Human-readable change or resolution note for the audit trail. Do not include secrets. |
created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
{
"id": "APR_7Hq2mK9xR4vTq8Lp",
"object": "approval",
"status": "pending",
"decision_id": null,
"request_digest": "sha256:4f1c…",
"summary": {
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject_id": "usr_94",
"action": "documents.publish",
"resource": "document/doc_831"
},
"channel_id": null,
"expires_at": "2026-11-09T11:42:07Z",
"resolved_by": null,
"resolved_at": null,
"note": 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_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/approvals/APR_7Hq2mK9xR4vTq8Lp" \
-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. |
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
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.
- Approvals — Read approval requests, and approve or reject them as a signed-in person.
- Guides: Human approvals, webhooks and
reqlo approvals.
Approve a request
/v1/approvals/{id}/approvePurpose and when to use
Approves a pending request as the signed-in person. If the rule named an approval channel, you must be listed on it; otherwise you must be an owner or admin. Project keys are refused, so an agent can never approve its own 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/approvals/{id}/approve.
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 ^APR_[0-9A-Za-z]{16}$ | Approval ID returned in a decision. |
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. |
note | string | No | No | Not specified | max 1000 chars | Human-readable change or resolution note for the audit trail. Do not include secrets. |
Response 200
The approved request.
| 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 approval | Object discriminator identifying the response shape. |
status | string enum | No | No | Not specified | one of pending, approved, rejected, expired, consumed | Current lifecycle status. The allowed enum values are listed in validation. |
decision_id | string, nullable | No | Yes | Not specified | None specified | The decision that created this request. |
request_digest | string | No | No | Not specified | None specified | SHA-256 of the exact request. Redemption must match it. |
summary | object | No | No | Not specified | None specified | What is being approved. |
summary.agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
summary.subject_id | string | No | No | Not specified | None specified | See the description above. |
summary.action | string | No | No | Not specified | None specified | See the description above. |
summary.resource | string | No | No | Not specified | None specified | Target resource reference and authoritative attributes used for this authorization request. |
channel_id | string, nullable | No | Yes | Not specified | None specified | Approval channel, if the rule named one. |
expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
resolved_by | string, nullable | No | Yes | Not specified | None specified | Identifier of the verified approver who resolved the approval. |
resolved_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Timestamp when the approval was resolved. |
note | string, nullable | No | Yes | Not specified | None specified | Human-readable change or resolution note for the audit trail. Do not include secrets. |
created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
{
"id": "APR_7Hq2mK9xR4vTq8Lp",
"object": "approval",
"status": "pending",
"decision_id": null,
"request_digest": "sha256:4f1c…",
"summary": {
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject_id": "usr_94",
"action": "documents.publish",
"resource": "document/doc_831"
},
"channel_id": null,
"expires_at": "2026-11-09T11:42:07Z",
"resolved_by": null,
"resolved_at": null,
"note": 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 -X POST "https://api.reqlo.io/v1/approvals/APR_7Hq2mK9xR4vTq8Lp/approve" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10",
"note": "Checked the recipient."
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
user_session_required | 403 | No, fix it first | Approving or rejecting needs a signed-in person, not a project key. Run reqlo login and use the CLI token. |
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
approver_not_allowed | 403 | No, fix it first | You aren't an approver for this request. With a channel, only people listed on it can resolve; without one, owners and admins can. |
approval_not_pending | 409 | No, fix it first | The approval was already resolved, consumed or expired. Read the approval again. |
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
- Authorize — Ask whether an agent may perform an action, and record the decision.
- Approvals — Read approval requests, and approve or reject them as a signed-in person.
- Guides: Human approvals, webhooks and
reqlo approvals.
Reject a request
/v1/approvals/{id}/rejectPurpose and when to use
Rejects a pending request as the signed-in person. Redeeming it afterwards is denied with approval_rejected.
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/approvals/{id}/reject.
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 ^APR_[0-9A-Za-z]{16}$ | Approval ID returned in a decision. |
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. |
note | string | No | No | Not specified | max 1000 chars | Human-readable change or resolution note for the audit trail. Do not include secrets. |
Response 200
The rejected request.
| 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 approval | Object discriminator identifying the response shape. |
status | string enum | No | No | Not specified | one of pending, approved, rejected, expired, consumed | Current lifecycle status. The allowed enum values are listed in validation. |
decision_id | string, nullable | No | Yes | Not specified | None specified | The decision that created this request. |
request_digest | string | No | No | Not specified | None specified | SHA-256 of the exact request. Redemption must match it. |
summary | object | No | No | Not specified | None specified | What is being approved. |
summary.agent_id | string | No | No | Not specified | None specified | Registered agent identifier bound to this record. Derive identity from verified backend context. |
summary.subject_id | string | No | No | Not specified | None specified | See the description above. |
summary.action | string | No | No | Not specified | None specified | See the description above. |
summary.resource | string | No | No | Not specified | None specified | Target resource reference and authoritative attributes used for this authorization request. |
channel_id | string, nullable | No | Yes | Not specified | None specified | Approval channel, if the rule named one. |
expires_at | string (date-time) | No | No | Not specified | format date-time | Expiry timestamp; do not use authority after it expires. |
resolved_by | string, nullable | No | Yes | Not specified | None specified | Identifier of the verified approver who resolved the approval. |
resolved_at | string (date-time), nullable | No | Yes | Not specified | format date-time | Timestamp when the approval was resolved. |
note | string, nullable | No | Yes | Not specified | None specified | Human-readable change or resolution note for the audit trail. Do not include secrets. |
created_at | string (date-time) | No | No | Not specified | format date-time | Time this object was created, as a UTC timestamp. |
{
"id": "APR_7Hq2mK9xR4vTq8Lp",
"object": "approval",
"status": "pending",
"decision_id": null,
"request_digest": "sha256:4f1c…",
"summary": {
"agent_id": "agt_7Hq2mK9xR4vTq8Lp",
"subject_id": "usr_94",
"action": "documents.publish",
"resource": "document/doc_831"
},
"channel_id": null,
"expires_at": "2026-11-09T11:42:07Z",
"resolved_by": null,
"resolved_at": null,
"note": 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 -X POST "https://api.reqlo.io/v1/approvals/APR_7Hq2mK9xR4vTq8Lp/reject" \
-H "Authorization: Bearer $REQLO_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"environment_id": "6f0d3c52-8a51-4f0e-9a43-2b8f1f2a7c10",
"note": "Wrong recipient."
}'Errors and recovery
| Code | HTTP | Retry? | Meaning and recovery |
|---|---|---|---|
user_session_required | 403 | No, fix it first | Approving or rejecting needs a signed-in person, not a project key. Run reqlo login and use the CLI token. |
access_token_invalid | 401 | No, fix it first | The CLI token is invalid, expired or revoked. Run reqlo login again. |
approver_not_allowed | 403 | No, fix it first | You aren't an approver for this request. With a channel, only people listed on it can resolve; without one, owners and admins can. |
approval_not_pending | 409 | No, fix it first | The approval was already resolved, consumed or expired. Read the approval again. |
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
- Authorize — Ask whether an agent may perform an action, and record the decision.
- Approvals — Read approval requests, and approve or reject them as a signed-in person.
- Guides: Human approvals, webhooks and
reqlo approvals.
Something wrong or unclear? Report an issue with this page.