Deliveries

Create a Delivery

POST
/deliveries

Adds a repository or hosted MCP Delivery to a Target. A Target has at most one Delivery of each type; a 409 delivery_exists means it already has one, so update that Delivery instead. With Project auto_generate enabled, adding a Delivery queues the Target's Generation. A queued or running Target reuses that Generation.

A 409 delivery_conflict means another Target owns the requested repository directory. A 409 target_busy means the Target is publishing; wait for it to finish. A 502 follow_up_failed means the Delivery was saved, but retiring an obsolete review or regenerating the Target failed. Get the Delivery and follow the error's retryable and suggested_action fields.

AuthorizationBearer <token>

Organization API key from the console (ak_...), or an OAuth access token with user:org:read, the organization selected during consent, and the capability required by the operation.

In: header

Header Parameters

Idempotency-Key?string

Identifies one logical write for 24 hours. The key is scoped to the authenticated organization and operation; generation without an organization uses a hashed network identity. Retrying the same method, path, query, If-Match header, and JSON body replays the original response. Reusing the key with changed intent returns 409. After expiry the key starts a new write.

Match^[!-~]+$
Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/deliveries" \  -H "Content-Type: application/json" \  -d '{    "target_id": "tgt_5m8q2v7k1p9d4h6c",    "type": "repository",    "repository": {      "provider": "github",      "identifier": "parcel-example/parcel-client",      "package_name": "parcel-client",      "publish_on_merge": false    }  }'
{  "id": "dlv_4q8m2v7k1p9d5h6c",  "object": "delivery",  "target_id": "tgt_5m8q2v7k1p9d4h6c",  "type": "repository",  "repository": {    "provider": "github",    "identifier": "parcel-example/parcel-client",    "directory": null,    "package_name": "parcel-client",    "module_path": null,    "publish_on_merge": false  },  "status": "active",  "issues": [],  "required_checks": [    "Typeship Release"  ],  "last_event": null,  "created_at": "2026-09-23T08:00:00Z",  "updated_at": "2026-09-23T08:00:00Z",  "request_id": "req_3k8m1v6q9p2d7h4c"}