A valid request URL is required to generate request examples{
"id": "act_M4qT8YH7xW2pL9nB",
"status": "pending",
"url": "<string>",
"method": "GET",
"attempts": 1,
"retries": 50,
"created_at": "2023-11-07T05:31:56Z",
"approve": true,
"deduplicated": true,
"body": {},
"headers": {},
"dedupe": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"next_retry_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"response_code": 123,
"response_body": null,
"duration_ms": 123,
"approved_at": "2023-11-07T05:31:56Z",
"approved_by": "<string>",
"callback": "<string>",
"idempotency_key": "<string>",
"retries_remaining": 1,
"next_retry_in_seconds": 1,
"actions": [
"approve"
],
"error": {
"source": "target",
"message": "<string>",
"response_code": 123,
"response_body": "<unknown>"
},
"receipt_url": "<string>"
}{
"id": "act_M4qT8YH7xW2pL9nB",
"status": "pending",
"url": "<string>",
"method": "GET",
"attempts": 1,
"retries": 50,
"created_at": "2023-11-07T05:31:56Z",
"approve": true,
"body": {},
"headers": {},
"dedupe": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"next_retry_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"response_code": 123,
"response_body": null,
"duration_ms": 123,
"approved_at": "2023-11-07T05:31:56Z",
"approved_by": "<string>",
"callback": "<string>",
"idempotency_key": "<string>",
"retries_remaining": 1,
"next_retry_in_seconds": 1,
"actions": [
"approve"
],
"error": {
"source": "target",
"message": "<string>",
"response_code": 123,
"response_body": "<unknown>"
},
"receipt_url": "<string>",
"deduplicated": true
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}Create Action
Creates an action and returns the full enriched action object.
If Idempotency-Key or dedupe matches an existing recent action, this returns that existing action with deduplicated: true.
A valid request URL is required to generate request examples{
"id": "act_M4qT8YH7xW2pL9nB",
"status": "pending",
"url": "<string>",
"method": "GET",
"attempts": 1,
"retries": 50,
"created_at": "2023-11-07T05:31:56Z",
"approve": true,
"deduplicated": true,
"body": {},
"headers": {},
"dedupe": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"next_retry_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"response_code": 123,
"response_body": null,
"duration_ms": 123,
"approved_at": "2023-11-07T05:31:56Z",
"approved_by": "<string>",
"callback": "<string>",
"idempotency_key": "<string>",
"retries_remaining": 1,
"next_retry_in_seconds": 1,
"actions": [
"approve"
],
"error": {
"source": "target",
"message": "<string>",
"response_code": 123,
"response_body": "<unknown>"
},
"receipt_url": "<string>"
}{
"id": "act_M4qT8YH7xW2pL9nB",
"status": "pending",
"url": "<string>",
"method": "GET",
"attempts": 1,
"retries": 50,
"created_at": "2023-11-07T05:31:56Z",
"approve": true,
"body": {},
"headers": {},
"dedupe": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"next_retry_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"response_code": 123,
"response_body": null,
"duration_ms": 123,
"approved_at": "2023-11-07T05:31:56Z",
"approved_by": "<string>",
"callback": "<string>",
"idempotency_key": "<string>",
"retries_remaining": 1,
"next_retry_in_seconds": 1,
"actions": [
"approve"
],
"error": {
"source": "target",
"message": "<string>",
"response_code": 123,
"response_body": "<unknown>"
},
"receipt_url": "<string>",
"deduplicated": true
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}{
"error": {
"code": "missing_body",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>",
"code": "invalid"
}
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Optional client request ID. Echoed back on response.
Deduplicates create-action requests within a 24-hour window.
^application/json(;.*)?$Body
GET, POST, PUT, PATCH, DELETE Show child attributes
Show child attributes
1 <= x <= 100When true, the request blocks until the action reaches a terminal status (completed, failed, or cancelled) and returns the final action object. Default timeout is 30 seconds (max 120 seconds). Cannot be combined with approve: true.
Send a magic-link approval email when approve: true. The email contains approve and reject buttons. Requires RESEND_API_KEY to be configured.
Show child attributes
Show child attributes
Response
Existing deduplicated/idempotent action returned
^act_[A-Za-z0-9_-]+$"act_M4qT8YH7xW2pL9nB"
pending, active, awaiting_approval, completed, failed, cancelled GET, POST, PUT, PATCH, DELETE x >= 01 <= x <= 100Show child attributes
Show child attributes
x >= 0x >= 0Allowed operations for the current status.
approve, cancel, retry Structured error detail present when status is failed.
Show child attributes
Show child attributes
Shareable URL for this action's receipt page (e.g. /r/rcpt_...). No authentication required — secured by the unguessable receipt token.