GET /v1/jobs/{job_id}/logs
Get job logs
bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/jobs/{job_id}/logsParameters
| Name | Type | Description |
|---|---|---|
| job_idpath, required | string | format: uuid |
| stagequery, optional | string or null | |
| batchquery, optional | integer or null | |
| podquery, optional | string or null |
200 response (text/plain)
200 response fields and schemaShowHide
JSON schema
{
"type": "string"
}Returns 200 or 422.
GET /v1/jobs/{job_id}/logs/download
Download job logs
bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/jobs/{job_id}/logs/downloadParameters
| Name | Type | Description |
|---|---|---|
| job_idpath, required | string | format: uuid |
| stagequery, optional | string or null | |
| batchquery, optional | integer or null | |
| podquery, optional | string or null |
200 response (text/plain)
200 response fields and schemaShowHide
JSON schema
{
"type": "string"
}Returns 200 or 422.
GET /v1/jobs/{job_id}/logs/stream
Stream job logs
bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/jobs/{job_id}/logs/streamParameters
| Name | Type | Default | Description |
|---|---|---|---|
| job_idpath, required | string | format: uuid | |
| stagequery, optional | string or null | ||
| batchquery, optional | integer or null | ||
| followquery, optional | boolean | true | |
| tailquery, optional | integer or null | ||
| sincequery, optional | integer or null |
200 response (text/event-stream)
200 response fields and schemaShowHide
JSON schema
{
"type": "string"
}Returns 200 or 422.
GET /v1/log-settings
Get log settings
bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/log-settingsParameters
| Name | Type |
|---|---|
| project_idquery, optional | string or null |
200 response (application/json)
200 response fields and schemaShowHide
Fields
| Name | Type |
|---|---|
| logs_enabledrequired | boolean |
| retention_secondsrequired | integer |
| max_pod_bytesrequired | integer |
| tail_lines_defaultrequired | integer |
| heartbeat_interval_secondsrequired | integer |
JSON schema
{
"$ref": "#/$defs/EffectiveLogSettings",
"$defs": {
"EffectiveLogSettings": {
"type": "object",
"required": [
"logs_enabled",
"retention_seconds",
"max_pod_bytes",
"tail_lines_default",
"heartbeat_interval_seconds"
],
"properties": {
"logs_enabled": {
"type": "boolean"
},
"retention_seconds": {
"type": "integer"
},
"max_pod_bytes": {
"type": "integer"
},
"tail_lines_default": {
"type": "integer"
},
"heartbeat_interval_seconds": {
"type": "integer"
}
}
}
}
}Illustrative response shape. Values are placeholders, not a recorded result.
json
{
"logs_enabled": false,
"retention_seconds": 0,
"max_pod_bytes": 0,
"tail_lines_default": 0,
"heartbeat_interval_seconds": 0
}Returns 200 or 422.
PATCH /v1/log-settings
Change log settings
Only an organization admin can use this.
bash
curl -H "x-api-key: $PHI_KEY" -X PATCH https://api.dynophi.com/v1/log-settings \
-H "content-type: application/json" \
-d '{}'Parameters
| Name | Type |
|---|---|
| project_idquery, optional | string or null |
Body
| Name | Type |
|---|---|
| logs_enabledoptional | boolean or null |
| retention_secondsoptional | integer or null |
| max_pod_bytesoptional | integer or null |
| tail_lines_defaultoptional | integer or null |
| heartbeat_interval_secondsoptional | integer or null |
Complete request schemaShowHide
Fields
| Name | Type |
|---|---|
| logs_enabledoptional | boolean or null |
| retention_secondsoptional | integer or null |
| max_pod_bytesoptional | integer or null |
| tail_lines_defaultoptional | integer or null |
| heartbeat_interval_secondsoptional | integer or null |
JSON schema
{
"$ref": "#/$defs/LogSettingsUpdate",
"$defs": {
"LogSettingsUpdate": {
"type": "object",
"properties": {
"logs_enabled": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"retention_seconds": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
]
},
"max_pod_bytes": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
]
},
"tail_lines_default": {
"anyOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
}
]
},
"heartbeat_interval_seconds": {
"anyOf": [
{
"type": "integer",
"minimum": 1
},
{
"type": "null"
}
]
}
}
}
}
}200 response (application/json)
200 response fields and schemaShowHide
Fields
| Name | Type |
|---|---|
| logs_enabledrequired | boolean |
| retention_secondsrequired | integer |
| max_pod_bytesrequired | integer |
| tail_lines_defaultrequired | integer |
| heartbeat_interval_secondsrequired | integer |
JSON schema
{
"$ref": "#/$defs/EffectiveLogSettings",
"$defs": {
"EffectiveLogSettings": {
"type": "object",
"required": [
"logs_enabled",
"retention_seconds",
"max_pod_bytes",
"tail_lines_default",
"heartbeat_interval_seconds"
],
"properties": {
"logs_enabled": {
"type": "boolean"
},
"retention_seconds": {
"type": "integer"
},
"max_pod_bytes": {
"type": "integer"
},
"tail_lines_default": {
"type": "integer"
},
"heartbeat_interval_seconds": {
"type": "integer"
}
}
}
}
}Illustrative response shape. Values are placeholders, not a recorded result.
json
{
"logs_enabled": false,
"retention_seconds": 0,
"max_pod_bytes": 0,
"tail_lines_default": 0,
"heartbeat_interval_seconds": 0
}Returns 200 or 422.
GET /v1/runs/{run_id}/logs
Get run logs
bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/logsParameters
| Name | Type | Description |
|---|---|---|
| run_idpath, required | string | format: uuid |
| stagequery, optional | string or null | |
| batchquery, optional | integer or null | |
| podquery, optional | string or null |
200 response (text/plain)
200 response fields and schemaShowHide
JSON schema
{
"type": "string"
}Returns 200 or 422.
GET /v1/runs/{run_id}/logs/download
Download run logs
bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/logs/downloadParameters
| Name | Type | Description |
|---|---|---|
| run_idpath, required | string | format: uuid |
| stagequery, optional | string or null | |
| batchquery, optional | integer or null | |
| podquery, optional | string or null |
200 response (text/plain)
200 response fields and schemaShowHide
JSON schema
{
"type": "string"
}Returns 200 or 422.
GET /v1/runs/{run_id}/logs/stream
Stream run logs
bash
curl -H "x-api-key: $PHI_KEY" https://api.dynophi.com/v1/runs/{run_id}/logs/streamParameters
| Name | Type | Default | Description |
|---|---|---|---|
| run_idpath, required | string | format: uuid | |
| stagequery, optional | string or null | ||
| batchquery, optional | integer or null | ||
| followquery, optional | boolean | true | |
| tailquery, optional | integer or null | ||
| sincequery, optional | integer or null |
200 response (text/event-stream)
200 response fields and schemaShowHide
JSON schema
{
"type": "string"
}Returns 200 or 422.
From phi-api 0.2.2, 2026-11-23.