API Reference

    Get usage

    This month's runs, the monthly limit and held runs for the workspace.

    GET/api/v1/usage

    This month's run figures for the key's workspace, from the same counters the app uses. It also answers while the workspace is awaiting its card verification.

    For tools and AI agents: this page as Markdown · the public OpenAPI file

    Authorization

    The REST API is being rolled out and is not yet available to every workspace. Send an API key with the read permission in the X-Api-Key header. REST API access must be switched on for the workspace; see the REST API overview.

    Query parameters

    This endpoint takes no parameters.

    Response

    The answer is one object with these fields:

    NameTypeDescription
    periodstringThe allowance month as YYYY-MM: the calendar month in Riyadh time (UTC+3), the same month the monthly allowance, held runs and the monthly reset use. A month starts at midnight Riyadh time, which is 21:00 UTC on the last day of the previous month.
    executionCountintegerRuns counted this month.
    successCountintegerRuns this month that succeeded.
    failureCountintegerRuns this month that failed.
    limitintegerThe monthly run allowance, purchased run blocks included. -1 means unlimited.
    remaininginteger | nullRuns left this month (never below 0), or null when the allowance is unlimited.
    heldCountintegerRuns held now because the workspace is past 120% of its monthly allowance.

    200

    {
      "period": "2026-11",
      "executionCount": 1240,
      "successCount": 1198,
      "failureCount": 42,
      "limit": 5000,
      "remaining": 3760,
      "heldCount": 0
    }

    Errors

    Every endpoint can also answer the errors that apply to all of them, listed on the REST API overview.

    StatusCodeWhenMessage
    401UNAUTHENTICATEDThe key is missing, not an Exomations API key, unknown, inactive, expired or deleted, or it was sent in the URL or an Authorization header.A valid API key is required in the X-Api-Key header.
    403FORBIDDENThe key does not carry read.This API key does not have the Read permission.
    403FORBIDDENThe workspace is suspended.This workspace is suspended.
    403API_NOT_ENABLEDREST API access is off for the workspace.REST API access is turned off for this workspace. An admin or the owner can turn it on on the API Keys page.
    405METHOD_NOT_ALLOWEDA method other than GET or HEAD. The Allow header lists the methods.This endpoint does not support this method. See the Allow header.
    429RATE_LIMITEDToo many calls in a minute (calls without a valid key are limited too).Rate limit reached. Retry after the number of seconds in the Retry-After header.
    500INTERNALSomething failed on our side. Retry; if it happens again, contact support.Something went wrong on our side. Please try again.

    Messages are shown exactly as the server sends them, in English. A value in angle brackets is filled in at run time.

    Examples

    curl https://exomations.com/api/v1/usage \
      -H "X-Api-Key: exo_your_key"