younifyd
Menu

Get Deployment Runs

List Deployment Runs

GET/deployments/{provider}/projects/{id}/runs

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Get Deployment Runs action (under Deployments).
  3. Fill in the fields below, then reference the result from later steps as {{getDeploymentRuns.response.data}}.

Request

Path parameters

providerstringrequired

The deployment provider name (e.g. `vercel`, `netlify`).

One ofvercelnetlify

idstring (uuid)required

Unique identifier of the tracked project.

Query parameters

limitinteger

A limit on the number of objects that are returned.

offsetinteger

How many items to skip when fetching data.

metastring

What metadata to return in the response.

Response

Returns 200 with an object. Read it in later steps with {{getDeploymentRuns.response.data.<field>}}.

dataarray<object>
idstring (uuid)
projectstring (uuid)
external_idstring
statusstring

One ofbuildingreadyerrorcanceled

targetstring

Deployment target (e.g. `production`, `preview`).

urlstring
date_createdstring (date-time)
started_atstring (date-time)
completed_atstring (date-time)
user_createdobject3 fields

User who triggered the deployment (if triggered from Directus).

metaobject
total_countinteger

Returns the total item count of the collection you're querying.

filter_countinteger

Returns the item count of the collection you're querying, taking the current filter/search parameters into account.

json
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "project": "00000000-0000-0000-0000-000000000000",
      "external_id": "dpl_abc123",
      "status": "ready",
      "target": "production",
      "url": "https://my-directus-app.vercel.app",
      "date_created": "2025-01-01T00:00:00Z",
      "started_at": "2025-01-01T00:00:00Z",
      "completed_at": "2025-01-01T00:00:00Z",
      "user_created": {
        "first_name": "string",
        "last_name": "string",
        "email": "string"
      }
    }
  ],
  "meta": {
    "total_count": 0,
    "filter_count": 0
  }
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.