Skip to main content
POST
/
v1
/
pipelines
Create a pipeline
curl --request POST \
  --url https://api.vendaze.com/v1/pipelines \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "New Business",
  "stages": [
    {
      "name": "Prospecting",
      "type": "open",
      "probability": 10
    },
    {
      "name": "Proposal",
      "type": "open",
      "probability": 40
    },
    {
      "name": "Negotiation",
      "type": "open",
      "probability": 70
    },
    {
      "name": "Closed Won",
      "type": "win",
      "probability": 100
    },
    {
      "name": "Closed Lost",
      "type": "lost",
      "probability": 0
    }
  ]
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "New Business",
    "created_at": "2023-11-07T05:31:56Z",
    "stages": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "Proposal",
        "probability": 40,
        "created_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

OAuth 2.1 access token.

Body

application/json
name
string
required
Maximum string length: 50
Example:

"New Business"

stages
object[]
required
Minimum array length: 1

Response

Pipeline created successfully.

data
object