Dyno Phi
ContentsHTTP APIShow

Logs

Read, download, or stream the logs of a job or a run.

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}/logs

Parameters

NameTypeDescription
job_idpath, requiredstringformat: uuid
stagequery, optionalstring or null
batchquery, optionalinteger or null
podquery, optionalstring or null

200 response (text/plain)

200 response fields and schemaShow
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/download

Parameters

NameTypeDescription
job_idpath, requiredstringformat: uuid
stagequery, optionalstring or null
batchquery, optionalinteger or null
podquery, optionalstring or null

200 response (text/plain)

200 response fields and schemaShow
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/stream

Parameters

NameTypeDefaultDescription
job_idpath, requiredstringformat: uuid
stagequery, optionalstring or null
batchquery, optionalinteger or null
followquery, optionalbooleantrue
tailquery, optionalinteger or null
sincequery, optionalinteger or null

200 response (text/event-stream)

200 response fields and schemaShow
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-settings

Parameters

NameType
project_idquery, optionalstring or null

200 response (application/json)

200 response fields and schemaShow

Fields

NameType
logs_enabledrequiredboolean
retention_secondsrequiredinteger
max_pod_bytesrequiredinteger
tail_lines_defaultrequiredinteger
heartbeat_interval_secondsrequiredinteger
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

NameType
project_idquery, optionalstring or null

Body

NameType
logs_enabledoptionalboolean or null
retention_secondsoptionalinteger or null
max_pod_bytesoptionalinteger or null
tail_lines_defaultoptionalinteger or null
heartbeat_interval_secondsoptionalinteger or null
Complete request schemaShow

Fields

NameType
logs_enabledoptionalboolean or null
retention_secondsoptionalinteger or null
max_pod_bytesoptionalinteger or null
tail_lines_defaultoptionalinteger or null
heartbeat_interval_secondsoptionalinteger 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 schemaShow

Fields

NameType
logs_enabledrequiredboolean
retention_secondsrequiredinteger
max_pod_bytesrequiredinteger
tail_lines_defaultrequiredinteger
heartbeat_interval_secondsrequiredinteger
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}/logs

Parameters

NameTypeDescription
run_idpath, requiredstringformat: uuid
stagequery, optionalstring or null
batchquery, optionalinteger or null
podquery, optionalstring or null

200 response (text/plain)

200 response fields and schemaShow
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/download

Parameters

NameTypeDescription
run_idpath, requiredstringformat: uuid
stagequery, optionalstring or null
batchquery, optionalinteger or null
podquery, optionalstring or null

200 response (text/plain)

200 response fields and schemaShow
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/stream

Parameters

NameTypeDefaultDescription
run_idpath, requiredstringformat: uuid
stagequery, optionalstring or null
batchquery, optionalinteger or null
followquery, optionalbooleantrue
tailquery, optionalinteger or null
sincequery, optionalinteger or null

200 response (text/event-stream)

200 response fields and schemaShow
JSON schema
{
  "type": "string"
}

Returns 200 or 422.

From phi-api 0.2.2, 2026-11-23.