Getting started

Module

Pipeline stages

Manage the pipeline columns used by the CRM.

GET/stagesScope: readOfficial + Basic

List stages ordered by position.

Use it before moving contacts to discover valid stage IDs.

Path parameters

No additional parameters.

Query parameters

No additional parameters.

Body fields

This endpoint does not receive a JSON body.

Ready examples

curl -X GET "https://connect.zyronstack.com/api/v1/stages" \
  -H "Authorization: Bearer SUA_CHAVE_API"

Responses

200Stages returned.

Response example

{
  "data": [
    {
      "id": "<STAGE_ID>",
      "name": "Negociando",
      "position": 2,
      "color": "#D9982F",
      "auto_kind": null,
      "created_at": "2026-06-15T12:30:00.000Z"
    }
  ]
}
POST/stagesScope: writeOfficial + Basic

Create a new stage.

The new stage is placed after the current last position.

Path parameters

No additional parameters.

Query parameters

No additional parameters.

Body fields
FieldTypeDescription
namerequiredstringStage name, up to 40 characters.
coloroptionalstringHex color. Defaults to #5b9bd9.

Ready examples

curl -X POST "https://connect.zyronstack.com/api/v1/stages" \
  -H "Authorization: Bearer SUA_CHAVE_API" \
  -H "content-type: application/json" \
  -d '{
  "name": "Negociando",
  "color": "#D9982F"
}'

Responses

201Stage created.
422Missing name.

Response example

{
  "data": {
    "id": "<STAGE_ID>",
    "name": "Negociando",
    "position": 2,
    "color": "#D9982F",
    "auto_kind": null,
    "created_at": "2026-06-15T12:30:00.000Z"
  }
}
PATCH/stages/:idScope: writeOfficial + Basic

Update name, color or position.

Send at least one field. Position is normalized to a non-negative integer.

Path parameters
FieldTypeDescription
idrequireduuidStage ID.

Query parameters

No additional parameters.

Body fields
FieldTypeDescription
nameoptionalstringNew stage name.
coloroptionalstringNew hex color.
positionoptionalnumberNew pipeline position.

Ready examples

curl -X PATCH "https://connect.zyronstack.com/api/v1/stages/<STAGE_ID>" \
  -H "Authorization: Bearer SUA_CHAVE_API" \
  -H "content-type: application/json" \
  -d '{
  "name": "Proposta enviada",
  "color": "#5B9BD9",
  "position": 3
}'

Responses

200Stage updated.
422No field sent or invalid name.

Response example

{
  "data": {
    "id": "<STAGE_ID>",
    "name": "Proposta enviada",
    "position": 3,
    "color": "#5B9BD9",
    "auto_kind": null,
    "created_at": "2026-06-15T12:30:00.000Z"
  }
}
DELETE/stages/:idScope: writeOfficial + Basic

Delete a pipeline stage.

The API keeps at least one stage. Contacts from the deleted stage fall back to automatic derivation.

Path parameters
FieldTypeDescription
idrequireduuidStage ID.

Query parameters

No additional parameters.

Body fields

This endpoint does not receive a JSON body.

Ready examples

curl -X DELETE "https://connect.zyronstack.com/api/v1/stages/<STAGE_ID>" \
  -H "Authorization: Bearer SUA_CHAVE_API"

Responses

200Stage deleted.
422Attempt to delete the last stage.

Response example

{
  "deleted": true
}