Skip to main content

Rollouts API

Endpoints for creating, listing, retrieving, and deleting model rollouts.

List active rollouts

GET /api/v1/rollouts/active

Returns active rollout records across models.

Response

{
"rollouts": [
{
"rollout_id": "rol_abc123",
"model_id": "mdl_abc123",
"version": "2.0.0",
"status": "active",
"percentage": 25
}
]
}

Retrieve a rollout

GET /api/v1/models/{model_id}/rollouts/{rollout_id}

Returns rollout details and status.


Create a rollout

POST /api/v1/models/{model_id}/rollouts

Creates a rollout plan for a model version.

Body Parameters

ParameterTypeRequiredDescription
versionstringYesModel version
rollout_percentageintegerYesInitial percentage
target_percentageintegerNoFinal rollout percentage
increment_stepintegerNoStep increase per interval
start_immediatelybooleanNoStart rollout immediately

Request

curl -X POST https://api.octomil.com/api/v1/models/mdl_abc123/rollouts \
-H "Authorization: Bearer $OCTOMIL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"version":"2.0.0","rollout_percentage":10,"target_percentage":100,"increment_step":10,"start_immediately":true}'

Delete a rollout

DELETE /api/v1/models/{model_id}/rollouts/{rollout_id}

Cancels and deletes a rollout.


Errors

StatusErrorDescription
400bad_requestInvalid or missing request fields
401unauthorizedMissing or invalid API key
404not_foundResource does not exist
409conflictResource already exists or state conflict
429rate_limitedToo many requests; check Retry-After
500internal_errorUnexpected server error