younifyd
Menu

Get Deployments

List Deployment Configurations

GET/deployments

Use it in a workflow

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

Request

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

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.

sortarray<string>

How to sort the returned items. `sort` is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (` - `) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV.

filterany

Select items in collection by given conditions.

searchstring

Filter by items that contain the given search query in one of their fields.

pageinteger

Cursor for use in pagination. Often used in combination with limit.

Response

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

dataarray<object>
idstring (uuid)

Unique identifier for the deployment configuration.

providerstring

The deployment provider. One of `vercel` or `netlify`.

One ofvercelnetlify

credentialsobject

Provider-specific credentials (e.g. API token). Stored encrypted.

optionsobject

Provider-specific configuration options.

webhook_idsarray<string>

IDs of webhooks registered with the provider for this config.

webhook_secretstring

Secret used to verify webhook payloads from the provider.

last_synced_atstring (date-time)

Timestamp of the last provider sync.

date_createdstring (date-time)

When this deployment config was created.

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": "8cbb43fe-4cdf-4991-8352-c461779cec02",
      "provider": "vercel",
      "credentials": {
        "token": "abc123"
      },
      "options": {
        "team_id": "team_abc123"
      },
      "webhook_ids": [
        "string"
      ],
      "webhook_secret": "string",
      "last_synced_at": "2025-01-01T00:00:00Z",
      "date_created": "2025-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "total_count": 0,
    "filter_count": 0
  }
}

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