Admin

Get organization usage and a bounded member page

Changed on

Returns the organization's last 30 UTC days of gateway usage, with requests, reported tokens, recorded cost and accounting coverage. Member usage is bounded to the requested member page; organization totals include all members, including removed members. Raw and retained usage use the same accounting as the organization dashboard.

get/v1/admin/organizations/{organizationId}/usage

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

organizationId, string required

Query parameters

search, string
limit, string
offset, string

Response

Organization detail returned.

AdminOrganizationUsage required
organization, object required
members, object[] required
page, object required
generatedAt, string date-time required
usage, object required

Changes

    • breaking

      removed the required property organization/subscriptions/enterprise from the response with the status

    • info

      removed the stripe_enterprise enum value from the organization/plan/paidBy response property for the response status

    • info

      added the optional property organization/openworkWeb to the response with the status

    3 more changes in this revision