Capability Requests
UsePOST /capability-requests/enqueue to create a public process for a supported capability.
When To Use It
Use this endpoint when you want the process-oriented public API for:keyword_warmupfyp_warmup- advanced compatibility use of
maintenance
POST /maintenance/requests.
Request Example
Accepted Response
Duplicate Response
Request Fields
| Field | Type | Required | Notes |
|---|---|---|---|
request_id | string | yes | Caller-generated idempotency key component. |
capability | string | yes | keyword_warmup, fyp_warmup, or maintenance. |
mode | string | yes | manual or unattended. |
target | object | yes | Routing and execution target configuration. |
inputs | object | yes | Capability-specific payload. |
callback | object | yes | Outbound callback target and metadata. |
requested_by | object | yes | Caller identity and metadata. |
Shared Objects
target
| Field | Type | Required | Notes |
|---|---|---|---|
routing | string | yes | direct, queue, or group. |
phone_id | string or null | no | Used for direct targeting. |
account_id | string or null | no | Used for direct targeting. |
phone_group | string or null | no | Reserved target grouping field. |
account_group | string or null | no | Reserved target grouping field. |
phone_ids | string[] | no | Required by current group routing behavior when used. |
account_ids | string[] | no | Required by current group routing behavior when used. |
callback
| Field | Type | Required | Notes |
|---|---|---|---|
url | string | yes | Must be a valid http(s) URL. |
metadata | object | no | Free-form caller metadata. Defaults to {}. |
requested_by
| Field | Type | Required | Notes |
|---|---|---|---|
system | string | yes | Stable caller system identifier. |
user | string or null | no | Operator or user identifier. |
metadata | object | no | Free-form caller metadata. Defaults to {}. |
Supported Modes and Routing
| Capability | Manual | Unattended | Direct | Queue | Group |
|---|---|---|---|---|---|
keyword_warmup | yes | yes | yes | yes | yes |
fyp_warmup | yes | no | yes | yes | yes |
maintenance | yes | no | no | yes | no |
Prompt Object Shape
Warmup capabilities use structured prompt objects when runtime reasoning is needed.prompt_idnameversionsystem_prompttask_promptoutput_contract
Idempotency
Idempotency key:Failure Modes
Typical validation failures include:- unknown capability
- unsupported routing mode for a capability
- unattended mode blocked for that capability
- missing required prompt objects
- invalid target shape
What Happens Next
After acceptance:- Phonefarm persists a public process row.
- Phonefarm attempts an immediate
process.updatedcallback with milestoneaccepted. - Worker orchestration materializes planned actions into queue items.
- You poll
GET /processes/{process_id}for source-of-truth state.