POST /v1/metering/operations/{operation_id}/attempts
MeteringService_StartAttempt
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
operation_idpath · string · required
Request body
attempt_keystringmetadata_jsonstringmodelstringoperation_idstringproviderstringprovider_request_idstring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/metering/operations/{operation_id}/attempts' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"attempt_key": "<value>",
"metadata_json": "<value>",
"model": "<value>",
"provider": "<value>",
"provider_request_id": "<value>"
}'Response contract
200 · OK
attempt_keystringended_atstringexecution_delegation_idstringfailure_codestringidstringmetadata_jsonstringmodelstringoperation_idstringproviderstringprovider_request_idstringreporter_api_key_idstringreporter_service_account_idstringreporter_tenant_idstringstarted_atstringstatusstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.