For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reports

List reports

get
Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[] · max: 10Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-name"]
sortBystring · enumOptional

Sort results by a parameters.

Possible values:
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
limitinteger · int32 · min: 1 · max: 500Optional

The maximum number of entries to return.

Default: 50
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
200

Executed successfully.

application/json
get/api/v1/org-unit/reports
GET /api/v1/org-unit/reports HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "reports": [
    {
      "name": "2023 GPU report",
      "description": "This report shows the GPU usage of all projects in the organization",
      "start": "2023-06-07T09:09:18.211Z",
      "end": "2023-06-07T12:09:18.211Z",
      "groupBy": "Nodepool",
      "filterBy": [
        "projectName==some-name"
      ],
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "createdBy": "user@run.ai",
      "tenantId": 2,
      "status": "Pending",
      "statusUpdatedAt": "2026-01-01T00:00:00.000Z",
      "statusMessage": "Report in queue"
    }
  ]
}

Create a new report request.

post
Authorizations
AuthorizationstringRequired

Bearer authentication

Body
namestring · max: 250RequiredExample: 2023 GPU report
descriptionstringOptionalExample: This report shows the GPU usage of all projects in the organization
startstring · date-timeRequired

timestamp from when to fetch data in UTC

Example: 2023-06-07T09:09:18.211Z
endstring · date-timeRequired

timestamp until when to fetch data in UTC

Example: 2023-06-07T12:09:18.211Z
groupBystring · enum · nullableOptionalPossible values:
filterBystring[] · max: 10Optional

Filter results by a parameter. Use the format field-name == value.

Default: []Example: ["projectName==some-name"]
Responses
202

Accepted.

application/json
namestring · max: 250RequiredExample: 2023 GPU report
descriptionstringOptionalExample: This report shows the GPU usage of all projects in the organization
startstring · date-timeRequired

timestamp from when to fetch data in UTC

Example: 2023-06-07T09:09:18.211Z
endstring · date-timeRequired

timestamp until when to fetch data in UTC

Example: 2023-06-07T12:09:18.211Z
groupBystring · enum · nullableOptionalPossible values:
filterBystring[] · max: 10Optional

Filter results by a parameter. Use the format field-name == value.

Default: []Example: ["projectName==some-name"]
idstring · uuidRequired
createdAtstring · date-timeRequired
createdBystringRequiredExample: user@run.ai
tenantIdinteger · int32Required

ID of the tenant where the project is located.

Example: 2
statusstring · enumRequiredPossible values:
statusUpdatedAtstring · date-timeRequired
statusMessagestringOptionalExample: Report in queue
post/api/v1/org-unit/reports
POST /api/v1/org-unit/reports HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 237

{
  "name": "2023 GPU report",
  "description": "This report shows the GPU usage of all projects in the organization",
  "start": "2023-06-07T09:09:18.211Z",
  "end": "2023-06-07T12:09:18.211Z",
  "groupBy": "Nodepool",
  "filterBy": [
    "projectName==some-name"
  ]
}
{
  "name": "2023 GPU report",
  "description": "This report shows the GPU usage of all projects in the organization",
  "start": "2023-06-07T09:09:18.211Z",
  "end": "2023-06-07T12:09:18.211Z",
  "groupBy": "Nodepool",
  "filterBy": [
    "projectName==some-name"
  ],
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "createdBy": "user@run.ai",
  "tenantId": 2,
  "status": "Pending",
  "statusUpdatedAt": "2026-01-01T00:00:00.000Z",
  "statusMessage": "Report in queue"
}

Count reports

get
Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[] · max: 10Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-name"]
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
200

Executed successfully.

application/json
countinteger · int64RequiredExample: 1
get/api/v1/org-unit/reports/count
GET /api/v1/org-unit/reports/count HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "count": 1
}

Reports availability

get
Authorizations
AuthorizationstringRequired

Bearer authentication

Responses
200

Executed successfully.

application/json
isAvailablebooleanRequiredExample: true
get/api/v1/org-unit/reports/availability
GET /api/v1/org-unit/reports/availability HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "isAvailable": true
}

Get report

get
Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
reportIdstring · uuidRequired

The report id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Responses
200

Executed successfully.

application/json
namestring · max: 250RequiredExample: 2023 GPU report
descriptionstringOptionalExample: This report shows the GPU usage of all projects in the organization
startstring · date-timeRequired

timestamp from when to fetch data in UTC

Example: 2023-06-07T09:09:18.211Z
endstring · date-timeRequired

timestamp until when to fetch data in UTC

Example: 2023-06-07T12:09:18.211Z
groupBystring · enum · nullableOptionalPossible values:
filterBystring[] · max: 10Optional

Filter results by a parameter. Use the format field-name == value.

Default: []Example: ["projectName==some-name"]
idstring · uuidRequired
createdAtstring · date-timeRequired
createdBystringRequiredExample: user@run.ai
tenantIdinteger · int32Required

ID of the tenant where the project is located.

Example: 2
statusstring · enumRequiredPossible values:
statusUpdatedAtstring · date-timeRequired
statusMessagestringOptionalExample: Report in queue
get/api/v1/org-unit/reports/{reportId}
GET /api/v1/org-unit/reports/{reportId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "name": "2023 GPU report",
  "description": "This report shows the GPU usage of all projects in the organization",
  "start": "2023-06-07T09:09:18.211Z",
  "end": "2023-06-07T12:09:18.211Z",
  "groupBy": "Nodepool",
  "filterBy": [
    "projectName==some-name"
  ],
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "createdBy": "user@run.ai",
  "tenantId": 2,
  "status": "Pending",
  "statusUpdatedAt": "2026-01-01T00:00:00.000Z",
  "statusMessage": "Report in queue"
}

Delete report

delete
Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
reportIdstring · uuidRequired

The report id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Responses
204

No Content.

No content

delete/api/v1/org-unit/reports/{reportId}
DELETE /api/v1/org-unit/reports/{reportId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Download report

get
Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
reportIdstring · uuidRequired

The report id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Responses
200

Executed successfully.

text/csv
get/api/v1/org-unit/reports/{reportId}/file
GET /api/v1/org-unit/reports/{reportId}/file HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

Last updated