API Guide
The SignalFlag API manages projects, systems, builds, experiences, test suites and batches, and reads their results.
Requests go to https://api.resim.ai/v1. Request and response bodies are JSON unless an operation says otherwise. This guide covers what applies to every operation. The API Reference lists each operation with its parameters, request body, responses and schemas, and the same operations are available as an OpenAPI document.
Authentication
Every request except the health check sends a credential as a bearer token.
Authorization: Bearer <token>
For example, with an API key in SIGNALFLAG_API_KEY:
curl https://api.resim.ai/v1/projects \
-H "Authorization: Bearer $SIGNALFLAG_API_KEY"
The token is one of these:
- An API key, which org admins create and revoke in the web app. A key starts with
sfk_and is sent as it is, with no exchange step. It belongs to your organization rather than a person, and stops working when it expires or is revoked. - An OAuth 2 access token from SignalFlag's Auth0 tenant, requested for the audience
https://api.resim.ai. A person signs in with the authorization code flow. A machine can use the client credentials flow only with a client that SignalFlag has registered for your organization. TheOAuthsecurity scheme in the OpenAPI document gives the authorization and token URLs.
A missing, malformed, expired or revoked credential returns 401. A token from an application that is not authorized for this API returns 403 with the message Application is not authorized for this API.
Scopes
Each operation lists the scopes it requires, usually one, such as projects:read or batches:write. A credential without a required scope returns 403 with a message that starts with Missing permission: <scope>.
A read only API key holds every :read scope, and a read and write key holds every scope. A token from the SignalFlag web app or CLI holds the person's scopes. A token issued to an application your organization registered holds only the scopes that the person has, the application's access level allows, and the authorization request asked for.
Organizations, IDs and timestamps
Every request acts within your organization, the one the credential belongs to. A resource in another organization returns 404, the same as one that does not exist. So does a resource requested under a project it is not in.
Resource IDs are UUIDs unless a field says otherwise. Timestamps are RFC 3339 date-time strings, such as 2026-09-14T17:02:11Z.
Pagination
List operations that take pageSize and pageToken return results one page at a time, unless the operation says it returns everything in one page.
pageSizedefaults to 10 and accepts 1 to 100, unless the operation says otherwise. A value outside that range returns 400.- The response carries
nextPageToken. To get the next page, send it aspageTokenwith the same other query parameters. An empty or absentnextPageTokenmeans there are no more pages, and a full last page can return a token that leads to an empty page. - A page token is bound to the query parameters of the request that produced it, so reusing it with different ones returns 400. Tokens are opaque; pass them back unchanged.
# First page
curl -G https://api.resim.ai/v1/projects \
-H "Authorization: Bearer $SIGNALFLAG_API_KEY" \
--data-urlencode "pageSize=50"
# Next page, with the nextPageToken from the previous response
curl -G https://api.resim.ai/v1/projects \
-H "Authorization: Bearer $SIGNALFLAG_API_KEY" \
--data-urlencode "pageSize=50" \
--data-urlencode "pageToken=$NEXT_PAGE_TOKEN"
Errors
Error responses are JSON objects with a message string, unless an operation says otherwise. Some also carry a machine-readable code. Match on the status or code, since the wording of message can change.
{
"message": "Missing permission: batches:write"
}
| Status | code |
Meaning |
|---|---|---|
| 402 | ORG_SUSPENDED |
Your organization's access is suspended because its credits are used up. GET requests still work, and every other request is refused. |
| 403 | TIER_TIMEOUT_EXCEEDED |
An experience's container timeout is above the cap for your organization's tier. |
| 403 | TIER_GPU_NOT_ALLOWED |
The system asks for GPUs for its builds or metrics builds, which your organization's tier does not allow. |
| 429 | TIER_CONCURRENCY_LIMIT |
Your organization is already running as many batches of this kind as its tier allows. Light batches have their own limit. The message names a running batch to wait for or cancel, unless the tier allows none. |
Tier limits apply only where SignalFlag has set them for your organization.
An invalid or missing credential returns 401 even when the request is also malformed. The API Reference lists the other statuses each operation can return.
Rate limits
A 429 with no body means the service instance that took the request was at capacity, a limit shared by all callers rather than set per organization; retry with exponential backoff. After a TIER_CONCURRENCY_LIMIT 429 from an operation that starts batches, a retry succeeds once a running batch finishes or is canceled. Only rerunning a batch sends Retry-After, the seconds to wait, with its 409 while the batch's previous run is still finishing.