List Fits

Private beta The v1 contract is implemented; the endpoints are not publicly reachable yet and access is by request. Details may still change during the beta.

GET /v1/fits returns your organization's Fits of the key's kind, newest first, as a cursor-paginated list.

curl "<API_ORIGIN>/v1/fits?limit=20&status=completed" \
  -H "Authorization: Bearer outfit_live_..."

Query parameters

ParameterTypeNotes
limitinteger1 to 100; default 20
starting_afterstringA Fit id of yours; returns Fits created before it
statusstringFilter by one status
created_afterstringISO 8601; Fits created at or after this time
created_beforestringISO 8601; Fits created before this time

Fits created with a test key are listed with a test key only.

Response

{
  "object": "list",
  "data": [
    { "id": "fit_7hsK2pL4...", "object": "fit", "status": "completed", "output": null, "error": null, "createdAt": "..." }
  ],
  "hasMore": true,
  "nextCursor": "fit_5qrT9xN1..."
}

Each entry is a Fit object without output links and without error details (output and error are null in a list). Read a Fit for its links and its failure reason. Pass nextCursor as starting_after to read the next page; when hasMore is false the list is complete.

Errors

StatusCodeWhen
400invalid_requestA parameter out of range, an unknown status, a malformed time, or a cursor that is not one of your Fits