younifyd
Menu

Create Deployment

Create Deployment Configuration

POST/deployments

Use it in a workflow

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

Request

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Request body

Enter the body as JSON in the step's Body field.

providerstringrequired

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

One ofvercelnetlify

credentialsobjectrequired

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

optionsobject

Provider-specific configuration options.

json
{
  "provider": "vercel",
  "credentials": {
    "token": "abc123"
  },
  "options": {
    "team_id": "team_abc123"
  }
}

Response

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

dataobject
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.

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"
  }
}

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