POST /v1/executions
ExecutionService_PrepareExecution
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
No path or query parameters.
Request body
billing_meter_codestringcapability_idstringCapability is resolved from a previously fetched published execution profile. Metering validates it against the trusted Offer snapshot and freezes the corresponding revision on the Operation for Trace/audit.
capability_revision_idstringRevision returned by the profile. A fresh execution rejects a stale revision instead of silently adopting a newer price/route policy. An idempotent retry for an already-created execution still returns the original reservation.
customer_account_idstringestimatesarrayExpand fields
meter_codestringquantitystring
execution_keystringmodelstringoffer_idstringoperation_typestringproviderstringProvider must come from a trusted route or Sidecar configuration. It is used to acquire provider-scoped capacity leases before external I/O.
quotasarrayExpand fields
amountstringentitlement_codestringresource_idstringttl_secondsinteger · int32
resource_idstringresource_typestringsubject_idstringsubject_typestringttl_secondsinteger · int32
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/executions' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"billing_meter_code": "<value>",
"capability_id": "<value>",
"capability_revision_id": "<value>",
"customer_account_id": "<value>",
"estimates": [
{
"meter_code": "<value>",
"quantity": "<value>"
}
],
"execution_key": "<value>",
"model": "<value>",
"offer_id": "<value>",
"operation_type": "<value>",
"provider": "<value>",
"quotas": [
{
"amount": "<value>",
"entitlement_code": "<value>",
"resource_id": "<value>",
"ttl_seconds": 0
}
],
"resource_id": "<value>",
"resource_type": "<value>",
"subject_id": "<value>",
"subject_type": "<value>",
"ttl_seconds": 0
}'Response contract
200 · OK
concurrency_leasesarrayExpand fields
dimensionstringdimension_valuestringexpires_atstringidstringpolicy_codestringstatusstring
last_error_codestringnext_reconcile_atstringoperation_idstringprovider_started_atstringquotasarrayExpand fields
entitlement_codestringexpires_atstringidstringrequested_amountstringresource_idstringstatusstring
reconciliation_attemptsinteger · int32reservation_idstringstatusstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.