Deployments.ai Docs
Tenancy

Show a month's spend for each project, split into operator-funded and organization-funded

GET /v1/organizations/{id}/spend/projects · SDK getOrganizationProjectSpend · CLI deployments org project-spend

GET
/v1/organizations/{id}/spend/projects

Requires organizations:read.

Authorization

platformBearer
headerAuthorizationBearer <token>

Platform bearer credential accepted as an opaque API key or JWT.

Path Parameters

id*string
Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Query Parameters

month?string

UTC calendar month as YYYY-MM, no later than the current month. Default: the current month.

Match^\d{4}-(?:0[1-9]|1[0-2])$

Header Parameters

x-deployments-organization*string
Match^[0-7][0-9A-HJKMNP-TV-Z]{25}$

Response Body

OrganizationProjectSpendResponse

application/json
  1. response
asOf*string
Match^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
Formatdate-time
items*array<>

Every project of the organization, archived ones included, with its spend in the month.

month*string

The UTC calendar month, as YYYY-MM.

Match^\d{4}-(?:0[1-9]|1[0-2])$
organizationId*string
Match^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$
periodStart*string
Match^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
Formatdate-time
curl -X GET "https://example.com/v1/organizations/string/spend/projects" \  -H "x-deployments-organization: string"
{  "asOf": "2019-08-24T14:15:22Z",  "items": [    {      "operatorFundedUsdMicros": 0,      "organizationFundedUsdMicros": 0,      "totalUsdMicros": 0,      "projectId": "string"    }  ],  "month": "string",  "organizationId": "string",  "periodStart": "2019-08-24T14:15:22Z"}