Skip to main content
POST
/
api
/
models
/
{model}
/
deployments
/
{name}
/
runs
Run callback (batch DAG → API, PSK-auth)
curl --request POST \
  --url https://api.example.com/api/models/{model}/deployments/{name}/runs \
  --header 'Authorization-PSK: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "airflow_run_id": "<string>",
  "rows_scored": 123,
  "error_message": "<string>"
}
'
{
  "run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "airflow_run_id": "<string>",
  "rows_scored": 123,
  "started_at": "2023-11-07T05:31:56Z",
  "finished_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization-PSK
string
header
required

Path Parameters

model
string
required
name
string
required

Body

application/json

Body the batch DAG posts to /api/deployments/{id}/runs.

airflow_run_id
string
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed
rows_scored
integer | null
error_message
string | null

Response

Successful Response

run_id
string<uuid>
required
airflow_run_id
string
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed
rows_scored
integer | null
started_at
string<date-time> | null
finished_at
string<date-time> | null