Skip to Content
APIEndpointsGet alignment run status

Get alignment run status

The status of the brand’s alignment checks: the most recent completed run date, whether a check is currently analyzing, and the full list of completed run dates. Use those dates as the execution_date filter on the other alignment endpoints to look at a specific historical run instead of the latest one.

Requires the read:alignment scope, the same scope every other read endpoint on this surface uses.

GET /v1/brands/{brand_id}/alignment/run-status

Authorization

HeaderTypeRequired
AuthorizationBearer asky_sk_…required

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands

Request

curl --request GET \ --url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/alignment/run-status' \ --header 'Authorization: Bearer <api-key>'

Response

{ "data": { "last_run_date": "2026-08-29", "completed_run_dates": ["2026-08-29", "2026-08-22", "2026-08-15", "2026-08-08"], "in_flight_date": null, "is_analyzing": false }, "request_id": "req_5b0e77d213a94f6a8ce1" }

Response fields

FieldTypeDescription
data.last_run_datedate | nullrequired. The most recent completed run, YYYY-MM-DD. null if this brand has never completed one
data.completed_run_datesdate[]required. Every completed run date, most recent first. Pass any of these as execution_date on the other alignment endpoints
data.in_flight_datedate | nullrequired. The date of a run currently pending or analyzing, if any
data.is_analyzingbooleanrequired. true exactly when in_flight_date is set
request_idstringrequired. Also returned as the x-request-id header. Quote it when contacting support

Errors

StatusCodeWhen
401invalid_tokenThe key is missing, malformed, or does not exist
401token_expiredThe key passed its expiry date
401token_revokedThe key was revoked
403insufficient_scopeThe key does not carry read:alignment
404not_foundThe brand does not exist, or this key is not allowed to reach it
429rate_limitedOver 300 requests per minute

Notes

Poll this after Run alignment check. is_analyzing: true means a check is in progress; once it flips back to false and last_run_date advances, read the new results with Get alignment, List alignment claims and List alignment prompts.

completed_run_dates is deduplicated but not paginated. It reflects the brand’s whole run history in one array. For a brand alignment has run for a long time this can be a long list; there is no limit or cursor here.

A brand that has never run alignment returns all nulls and empty arrays, not an error — last_run_date: null, completed_run_dates: [], in_flight_date: null, is_analyzing: false. Use Run alignment check to start the first one.

Last updated on