Skip to content

Create a programme

POST/v1/programs

Requires an API client bearer token.

Creates a card programme and snapshots its module configuration. Requires an Idempotency-Key header. Emits programme.created with the full module snapshot. Managed authorization implies the ledger module: `modules.managed_authorization: true` saves `modules.ledger: true` when it is omitted, and a body asking for managed authorization with `modules.ledger: false` is rejected 422 `ledger_required_by_managed_authorization`. Requires an organisation-wide caller: a programme-pinned API client is refused with 403.

Parameters

Header parameters

NameRequiredDescription
Idempotency-Keyrequired

Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409.

Request body

namestringrequired
home_region"eu-frc"

The region the programme is homed to, fixed at creation. Optional: omitted, the programme is homed to the platform's only region.

modulesobject

Non-toggleable keys are accepted but persisted false

+ show properties
ledgerboolean

Implied by managed_authorization (RIGID-1141): on whenever managed_authorization is on; false while managed_authorization stays true is refused

managed_authorizationboolean

true = M2 (we decide); false = M2b delegated. true turns ledger on with it

kycboolean
fraudboolean
three_dsboolean
tokenizationboolean
disputesboolean
crypto_settlementboolean
delegated_auth_urlstring (uri)
refund_float_accountsobject

Per-mode platform settlement account a refund credit is drawn from. Absent ⇒ refunds decline.

+ show properties
teststring
livestring

Example

curl -X POST https://api.rigid.fi/v1/programs \
  -H "Authorization: Bearer $RIGID_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "string"
}'

Responses

201

Created programme.

idstringrequired
namestringrequired
home_region"eu-frc"required
modulesobjectrequired
+ show properties
ledgerbooleanrequired
managed_authorizationbooleanrequired
kycbooleanrequired
fraudbooleanrequired
three_dsbooleanrequired
tokenizationbooleanrequired
disputesbooleanrequired
crypto_settlementbooleanrequired
delegated_auth_urlstring | nullrequired
sponsor_acs_urlstring (uri) | nullrequired
status"draft" | "in_review" | "live" | "suspended"required
created_atstringrequired
refund_float_accountsobject

Per-mode platform settlement account a refund credit is drawn from. Absent ⇒ refunds decline.

+ show properties
teststring
livestring
dpa_accepted_atstring | nullrequired
three_ds_configobject
+ show properties
low_value_exemption_minor_unitsstringrequired
versionintegerrequired
passkey_rp_idstring
passkey_originsarray of string (uri)

Allowed WebAuthn origins, each the BARE origin a browser sends in its Origin header — scheme://host with a port only when it is not the default, and no path, trailing slash, query, fragment or userinfo. Each origin's host must be passkey_rp_id or a subdomain of it, or the browser refuses the ceremony. `http` is accepted only for localhost.

400

Validation error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
401

Authentication required

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
403

Forbidden

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
409

Idempotency-Key reused with a different payload

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
422

The body asked for managed authorization with `modules.ledger: false` (`ledger_required_by_managed_authorization`), or set `delegated_auth_url`, which is configured after create: provision the signing secret, then PATCH the URL

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring
500

Internal server error

typestringrequired
titlestringrequired
statusintegerrequired
detailstring
instancestring