Skip to main content
POST
/
api
/
executions
/
v2
/
latest
GetLatestExecutions
curl --request POST \
  --url https://developer.synq.io/api/executions/v2/latest \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "entityIds": [
    {
      "airflowDag": {
        "integrationId": "<string>",
        "dagId": "<string>"
      }
    }
  ],
  "statuses": [
    "EXECUTION_STATUS_UNSPECIFIED"
  ],
  "executionTypes": [
    "EXECUTION_TYPE_UNSPECIFIED"
  ]
}'
{
  "latestExecutions": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

GetLatestExecutionsRequest requests the latest execution for each entity.

entityIds
(airflow_dag · object | airflow_task · object | bigquery_table · object | clickhouse_table · object | custom · object | databricks_table · object | dataproduct · object | dbt_cloud_node · object | dbt_core_node · object | monitor · object | mysql_table · object | postgres_table · object | redshift_table · object | snowflake_table · object | sql_mesh_audit · object | sql_mesh_model · object | synq_path · object | trino_table · object)[]

Entity identifiers to get latest executions for.

Minimum length: 1
  • airflow_dag
  • airflow_task
  • bigquery_table
  • clickhouse_table
  • custom
  • databricks_table
  • dataproduct
  • dbt_cloud_node
  • dbt_core_node
  • monitor
  • mysql_table
  • postgres_table
  • redshift_table
  • snowflake_table
  • sql_mesh_audit
  • sql_mesh_model
  • synq_path
  • trino_table
statuses
enum<string>[]

Filter by execution status. If provided, returns the latest execution with one of these statuses. If empty, returns the latest execution regardless of status.

executionTypes
enum<string>[]

Filter by execution types. If provided, returns the latest execution of one of these types. If empty, returns the latest execution regardless of type.

Response

200 - application/json

Success

GetLatestExecutionsResponse contains the latest execution for each requested entity.

latestExecutions
object

Map of entity identifier (as string) to latest execution. Entities with no matching executions are omitted.