Skip to content

List the production reports and who receives them

GET
/api/v1/production-reports
curl --request GET \
--url https://gpu-kitchen.example.lan/api/v1/production-reports \
--cookie gpuk_session=<gpuk_session>

One report per elapsed week and month, newest first. Enterprise offer only.

Success.

Media typeapplication/json
object
reports
required
Array<object>
object
id
required
integer
>= -9007199254740991 <= 9007199254740991
cadence
required
string
Allowed values: week month
period_start
required
string format: date-time
period_end
required
string format: date-time
produced_at
required
string format: date-time
mailed_at
required
Any of:
string format: date-time
mail_error
required
string | null
partial
required
boolean
recipients
required
Array<string>
<= 50 items
mail_configured
required
boolean
Example
{
"reports": [
{
"cadence": "week"
}
]
}

Error codes: auth_required.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: admin_required, enterprise_required, forbidden.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}

Error codes: rate_limited.

Media typeapplication/json
object
error
required
object
code
required

Stable snake_case code to branch on.

string
message
required

A sentence to show a person.

string
details

Optional structured context.

fix

Optional place where the problem is fixed.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": "example",
"fix": "example"
}
}