Sales API Handbook ← CRM home
Verdeshell CRM · Developers

Connect your systems to Sales.

Everything you need to read and write your Sales data from your own scripts, apps and data tools: contacts, accounts, deals, tasks and activities, plus bulk push, CSV import and webhooks — and how to configure Sales itself: pipelines, fields, labels, lead routing and scoring, sequences and automations. Every call comes with a copy-and-paste example.

131 calls, each with an example JSON over HTTPS · https://crm.verdeshell.com ⬇ OpenAPI file

? How to use this handbook

  1. 1Read Part 1 once: your key, the response shape, paging, errors and limits.
  2. 2Jump to the records you need in Part 2, to Part 3 to load or sync in bulk, or to Part 4 to set Sales up from code.
  3. 3Paths, fields and messages match the live service as of November 2026.

✓ Before you begin

  • ✓Your organisation is on the Business plan, with the Sales module.
  • ✓You're the owner, or an owner can create a key for you.
  • ✓A tool that can make HTTPS requests: curl, a script, or your integration platform.
Part 1 of 5

Get connected

A key, one request, and the rules every call shares.

1

Get your API key

A key lets your own scripts and systems read and write your Sales data.

Settings › API keys
  1. Sign in as the owner of your organisation. Only owners can create keys. API access is part of every plan.
  2. Open Settings › API keys and choose Create key. Give it a name that says what uses it, e.g. billing-sync.
  3. Copy the key straight away. It starts with vsk_ and is shown only once.
  4. Store it as a secret (an environment variable or your secret manager), never in code or a browser page.
🔑What a key can do. A key acts as the person who created it, with that person's current role — today, the owner. It can read and write records — contacts, accounts, deals, tasks — and set Sales up: pipelines, fields, labels, lead routing and scoring, sequences and the rest of Part 4. It can't manage the team, roles and permissions, API keys, webhook addresses, or email and WhatsApp connections; those always need a person signed in.
⏸When a key stops. A key stops working at once if it's revoked, if its creator leaves the organisation or is suspended, if the organisation's subscription is no longer active, or if the organisation is closed. Calls then get 401.
💡One key per system. Separate keys make it easy to see what's in use (each key shows when it was last used) and to revoke one without breaking the others.
2

Make your first request

Every call goes to one address, with the key in a header, and answers in the same shape.

Base address and key

All paths in this handbook start at https://crm.verdeshell.com. Send the key in either header:

X-API-Key: vsk_…
Authorization: Bearer vsk_…

Try it

export VERDESHELL_API_KEY="vsk_…"

curl -s "https://crm.verdeshell.com/api/v1/sales/contacts?size=1" -H "X-API-Key: $VERDESHELL_API_KEY"

Every response has the same wrapper

{
  "status": "SUCCESS",
  "message": "Contact retrieved",
  "data": {
    "id": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "firstName": "Lena"
  }
}
  • status is SUCCESS or ERROR; message is a readable sentence; the record or list is in data.
  • Success is always HTTP 200 — creates and deletes too.
  • Fields with no value are left out of responses, not sent as null. Treat a missing field as empty.
  • Field names are camelCase. Ids are UUIDs. Dates are YYYY-MM-DD; timestamps are ISO-8601 in UTC, e.g. 2026-11-07T23:29:11.057166Z. Money is a JSON number with a separate 3-letter currency.
  • Unknown fields in a request are ignored. Text is stored with < and > turned into &lt; and &gt;, so don't send HTML.
3

Lists and paging

Big lists come back a page at a time; small reference lists come back whole.

A paged list takes page (from 0) and size (1–100, default 20) and returns:

{
  "status": "SUCCESS",
  "message": "Contacts retrieved",
  "data": {
    "content": [
      "\u2026up to size records\u2026"
    ],
    "totalElements": 1312,
    "totalPages": 14,
    "number": 0,
    "size": 100,
    "numberOfElements": 100,
    "first": true,
    "last": false,
    "empty": false
  }
}
  • Keep asking for the next page until last is true.
  • Asking for more than 100 gives you 100 — no error.
  • Each list has its own sort values, listed with it. The order is stable: ties are broken by id, so paging never skips or repeats a record while nothing changes.
  • Reference lists (pipelines, stages, labels, custom fields, products, line items, team members) are plain arrays in data, not paged.
4

Errors and limits

Read the HTTP status first, then message for the detail.

StatusWhat it means
400Something in the request is wrong. message says what, e.g. “country must be a country name or a 2-letter ISO country code (e.g. IN, AE, US).”. For a missing or invalid body field, message is “Validation failed” and data lists each field: {"firstName": "First name is required"}. Other common ones: “Missing parameter: dealId”, “Invalid value for: id” (not a valid UUID), “Malformed request body” (bad JSON).
401No key, or the key is wrong, revoked or expired, or it stopped working (see when a key stops). Body: {"status":"ERROR","message":"Sign in to continue, or send a valid API key."}.
403The key isn't allowed to do this. “API keys can't do this — sign in to change it.” (the team, permissions, keys, webhook addresses and email/WhatsApp connections need a person); “Access denied: insufficient permissions” (the creator's role isn't enough); “You do not have access to the sales module.”; “Your organization's subscription is not active. Please renew to continue.”
404No such record, or it was deleted: “Sales Contact not found with id: …”.
409Conflict. “Someone else saved changes to this record since you opened it.” (with the current record in data), “This looks like an existing contact” (duplicate check), “A record with this value already exists…”.
429Too many requests — see the limit below. The Retry-After header says how many seconds to wait.
500 / 503Our side. 503 “This list took too long to load. Narrow the filter and try again.” means add a filter. Retry other 5xx with back-off.
{
  "status": "ERROR",
  "message": "Validation failed",
  "data": {
    "firstName": "First name is required",
    "contactType": "Contact type is required",
    "status": "Status is required"
  }
}

Rate limit

Each API key has its own allowance of 600 calls per minute, on every API path. It doesn't share it with the person who created the key, so a busy script never slows their own work in the app.

  • Over the limit you get 429 with {"status":"ERROR","message":"Too many requests with this API key. Wait a moment and try again."} and a Retry-After header: the seconds until the minute resets. Wait that long and carry on.
  • For more than a few hundred records, use bulk push (1,000 per call) rather than one call per record.
  • Keep to one request at a time per key. That's plenty for a sync and stays well inside the limit.
5

IDs and lists you'll need

Look these up once and cache them: owners, pipelines, stages, and the values your organisation accepts.

GET/api/v1/core/organization-users/me

Who the key acts as

Returns the key creator's membership: your organizationId (needed by the pipelines call) and their userId and role.

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/organization-users/me" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Membership retrieved",
  "data": {
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "userId": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "roleSlug": "owner",
    "fullName": "Alex Morgan",
    "status": "active",
    "moduleSales": true
  }
}
GET/api/v1/core/organization-users/assignable

Team members you can assign

Active members of your organisation. Use userId wherever a field takes an owner (assignedTo). To own a contact, the person also needs Sales access and can't be a client login.

Who: Owner, manager, executive or staff

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/organization-users/assignable" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Assignable users retrieved",
  "data": [
    {
      "id": "c0ffee00-0000-4000-8000-000000000001",
      "userId": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "firstName": "Alex",
      "lastName": "Morgan",
      "fullName": "Alex Morgan",
      "email": "alex@yourcompany.com"
    }
  ]
}
GET/api/v1/core/pipelines

List pipelines

Your Sales pipelines, in board order. Not paged.

Who: Any member

Query parameters

NameTypeWhat it does
templateSlugrequiredstringsales-crm
organizationIdrequireduuidYour organisation id, from who the key acts as. Another id returns 403.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/pipelines?templateSlug=sales-crm&organizationId=8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Pipelines retrieved",
  "data": [
    {
      "id": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
      "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
      "templateSlug": "sales-crm",
      "name": "Default Pipeline",
      "isDefault": true,
      "isActive": true,
      "displayOrder": 0
    }
  ]
}
GET/api/v1/core/pipeline-stages

List a pipeline's stages

Stages in board order. A stage is won when isClosedWon is true, lost when isClosedLost is true, otherwise open. Not paged.

Who: Any member

Query parameters

NameTypeWhat it does
pipelineIdrequireduuidFrom the pipelines list.
  • approvalGateEnabled: true means moving a deal into that stage needs someone's approval first — see update a deal.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/pipeline-stages?pipelineId=1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline stages retrieved",
  "data": [
    {
      "id": "14d799e7-0000-4b44-9610-dd9206f0028e",
      "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
      "stageName": "Lead",
      "displayOrder": 1,
      "probability": 10,
      "isClosedWon": false,
      "isClosedLost": false,
      "stageColor": "#6366f1",
      "approvalGateEnabled": false
    },
    {
      "id": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
      "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
      "stageName": "Qualified",
      "displayOrder": 2,
      "probability": 25,
      "isClosedWon": false,
      "isClosedLost": false,
      "stageColor": "#8b5cf6",
      "approvalGateEnabled": false
    }
  ]
}
GET/api/v1/sales/contact-field-options

Lead source and industry lists

The values your organisation accepts for a contact's leadSource and industry. Send the value.

Who: Any member

Query parameters

NameTypeWhat it does
fieldrequiredstringlead_source or industry.
includeArchivedbooleanDefault false.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/contact-field-options?field=lead_source" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Options retrieved",
  "data": [
    {
      "id": "3a2b1c0d-0000-4000-8000-000000000002",
      "value": "website",
      "label": "Website",
      "position": 0,
      "archived": false,
      "origin": "default"
    }
  ]
}
Part 2 of 5

Read and write records

Contacts, accounts, deals and everything attached to them.

6

Contacts

People you sell to.

GET/api/v1/sales/contacts

List contacts

Search and filter your contacts. Paged.

Who: Any memberPaged — see lists

Query parameters

NameTypeWhat it does
searchstringMatches first name, last name, email, company, phone and tags (ignores case and accents).
statusstringe.g. active.
contactTypestringe.g. lead.
lifecycleStagestringe.g. mql.
leadSourcestringA lead source value.
industrystringAn industry value.
assignedTouuidOwner's userId.
unassignedbooleanOnly contacts with no owner.
labelIdsuuid[]Contacts with any of these labels. Repeat the parameter for more than one.
minScoreintegerLead score at least this.
maxScoreintegerLead score at most this.
createdAfterdate-timeISO-8601, e.g. 2026-11-01T00:00:00Z.
sortstringcreated (default), updated, name, company or score.
dirstringdesc (default) or asc.
pageintegerPage number, starting at 0. Default 0.
sizeintegerRows per page, 1–100. Default 20. Larger values are cut to 100.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/contacts?search=schmidt&sort=updated&size=50" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Contacts retrieved",
  "data": {
    "content": [
      {
        "id": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
        "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
        "firstName": "Lena",
        "lastName": "Schmidt",
        "fullName": "Lena Schmidt",
        "email": "lena@example.com",
        "companyName": "Example GmbH",
        "jobTitle": "Head of Operations",
        "contactType": "lead",
        "status": "active",
        "lifecycleStage": "lead",
        "leadSource": "website",
        "country": "DE",
        "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
        "tags": [
          "trade-fair"
        ],
        "consentMarketing": true,
        "consentWhatsapp": true,
        "lawfulBasis": "legitimate_interest",
        "customFields": {},
        "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdAt": "2026-11-07T23:29:11.057166Z",
        "updatedAt": "2026-11-07T23:29:11.057166Z",
        "entityVersion": 0
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20,
    "numberOfElements": 1,
    "first": true,
    "last": true,
    "empty": false
  }
}
GET/api/v1/sales/contacts/{id}

Get a contact

One contact by id. A deleted contact returns 404.

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/contacts/0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Contact retrieved",
  "data": {
    "id": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "firstName": "Lena",
    "lastName": "Schmidt",
    "fullName": "Lena Schmidt",
    "email": "lena@example.com",
    "companyName": "Example GmbH",
    "jobTitle": "Head of Operations",
    "contactType": "lead",
    "status": "active",
    "lifecycleStage": "lead",
    "leadSource": "website",
    "country": "DE",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "tags": [
      "trade-fair"
    ],
    "consentMarketing": true,
    "consentWhatsapp": true,
    "lawfulBasis": "legitimate_interest",
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
POST/api/v1/sales/contacts

Create a contact

Creates one contact. To push many at once with matching, use bulk push instead.

Who: Owner, manager or executive

Query parameters

NameTypeWhat it does
checkDuplicatesbooleanWhen true, a contact with the same email, or a phone/mobile whose last 10 digits match, stops the create with 409 (see below). Default false: no check.
JSON body (42 fields)
FieldTypeNotes
firstNamerequiredstringUp to 100 characters.
lastNamestringUp to 100 characters.
emailstringA valid email address. Stored without surrounding spaces.
phonestringUp to 20 characters.
mobilestringUp to 20 characters.
companyNamestringIf it matches exactly one of your accounts by name, the contact is linked to it.
jobTitlestring
departmentstring
contactTyperequiredstringlead, prospect, customer, partner or vendor.
statusrequiredstringactive, inactive, unqualified or converted.
lifecycleStagestringlead (default), cadence, mql, sql, customer, nurture or not_interested.
leadSourcestringA value from your lead source list — see IDs and lists.
industrystringA value from your industry list.
leadScoreinteger0–100. If your organisation has lead-scoring rules, the score is recalculated and may replace this value.
estimatedDealValuenumber0 or more.
assignedTouuidOwner's userId. The person must have Sales access and not be a client login. Leave it out and your lead-routing rules (if any) choose the owner.
accountIduuidThe Sales account (company) this person works for.
websitestringAn http(s) link or a bare domain such as example.com.
linkedinUrlstringhttp(s) link.
personalLinkedinstringhttp(s) link.
companyLinkedinstringhttp(s) link.
twitterHandlestring
instagramstring
whatsappNumberstringUp to 20 characters.
addressLine1string
addressLine2string
citystring
statestring
postalCodestring
countrystringA country name, or a 2- or 3-letter ISO code. Always returned as the 2-letter code, e.g. DE.
taxIdstringUp to 50 characters.
timezonestringAn IANA zone name such as Europe/Berlin (not a fixed offset).
dateOfBirthdateYYYY-MM-DD, between 1900-01-01 and today.
workAnniversarydateYYYY-MM-DD, between 1900-01-01 and one year from today.
tagsstring[]Free-text tags.
notesstring
consentMarketingbooleanLeave it out to use your organisation's setting for new contacts.
consentWhatsappbooleanLeave it out to use your organisation's setting for new contacts.
lawfulBasisstringUp to 50 characters.
externalIdstringYour system's id for this person.
externalSourcestringYour system's name, e.g. billing-app.
customFieldsobjectYour custom fields, keyed by fieldKey — see custom fields.
  • Duplicate check. With checkDuplicates=true a match returns 409 “This looks like an existing contact” and data = {"duplicates":[{"id","name","email","phone","ownerName","reason"}],"hidden":0}. hidden counts matches the key's user can't see.
  • Permissions. Leave consentMarketing and consentWhatsapp out and the contact follows your organisation's setting for new contacts. Send false if this person has said no.
  • Response createdAt can be missing on the create response; read the contact again if you need it.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/contacts" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "Lena",
    "lastName": "Schmidt",
    "email": "lena@example.com",
    "companyName": "Example GmbH",
    "jobTitle": "Head of Operations",
    "contactType": "lead",
    "status": "active",
    "leadSource": "website",
    "country": "Germany",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "tags": [
      "trade-fair"
    ]
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Contact created",
  "data": {
    "id": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "firstName": "Lena",
    "lastName": "Schmidt",
    "fullName": "Lena Schmidt",
    "email": "lena@example.com",
    "companyName": "Example GmbH",
    "jobTitle": "Head of Operations",
    "contactType": "lead",
    "status": "active",
    "lifecycleStage": "lead",
    "leadSource": "website",
    "country": "DE",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "tags": [
      "trade-fair"
    ],
    "consentMarketing": true,
    "consentWhatsapp": true,
    "lawfulBasis": "legitimate_interest",
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
PUT/api/v1/sales/contacts/{id}

Update a contact

Send only the fields you want to change.

Who: Owner, manager or executive
JSON body (43 fields)
FieldTypeNotes
expectedVersionintegerThe entityVersion you last read. If someone saved since, you get 409 with the current record in data. Leave it out for last-write-wins.
firstNamestringUp to 100 characters.
lastNamestringUp to 100 characters.
emailstringA valid email address. Stored without surrounding spaces.
phonestringUp to 20 characters.
mobilestringUp to 20 characters.
companyNamestringIf it matches exactly one of your accounts by name, the contact is linked to it.
jobTitlestring
departmentstring
contactTypestringlead, prospect, customer, partner or vendor.
statusstringactive, inactive, unqualified or converted.
lifecycleStagestringlead, cadence, mql, sql, customer, nurture or not_interested.
leadSourcestringA value from your lead source list — see IDs and lists.
industrystringA value from your industry list.
leadScoreinteger0–100. If your organisation has lead-scoring rules, the score is recalculated and may replace this value.
estimatedDealValuenumber0 or more.
assignedTostringOwner's userId. "" removes the owner.
accountIdstringThe Sales account. "" unlinks it.
websitestringAn http(s) link or a bare domain such as example.com.
linkedinUrlstringhttp(s) link.
personalLinkedinstringhttp(s) link.
companyLinkedinstringhttp(s) link.
twitterHandlestring
instagramstring
whatsappNumberstringUp to 20 characters.
addressLine1string
addressLine2string
citystring
statestring
postalCodestring
countrystringA country name, or a 2- or 3-letter ISO code. Always returned as the 2-letter code, e.g. DE.
taxIdstringUp to 50 characters.
timezonestringAn IANA zone name such as Europe/Berlin (not a fixed offset).
dateOfBirthdateYYYY-MM-DD, between 1900-01-01 and today.
workAnniversarydateYYYY-MM-DD, between 1900-01-01 and one year from today.
tagsstring[]Free-text tags.
notesstring
consentMarketingbooleanfalse also stops email to this address everywhere in the CRM.
consentWhatsappboolean
lawfulBasisstringUp to 50 characters.
externalIdstringYour system's id for this person.
externalSourcestringYour system's name, e.g. billing-app.
customFieldsobjectYour custom fields, keyed by fieldKey — see custom fields.
  • A field you leave out (or send as null) keeps its value.
  • Send "" to clear an optional text field. contactType, status and lifecycleStage can be changed but not cleared. "assignedTo": "" removes the owner; "accountId": "" unlinks the account.
  • dateOfBirth, workAnniversary and timezone: send null to clear.
  • customFields replaces the whole set: include every custom field you want to keep.
  • A new owner needs Sales access and can't be a client login.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/contacts/0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jobTitle": "COO",
    "expectedVersion": 0
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Contact updated",
  "data": {
    "id": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "firstName": "Lena",
    "lastName": "Schmidt",
    "fullName": "Lena Schmidt",
    "email": "lena@example.com",
    "companyName": "Example GmbH",
    "jobTitle": "COO",
    "contactType": "lead",
    "status": "active",
    "lifecycleStage": "lead",
    "leadSource": "website",
    "country": "DE",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "tags": [
      "trade-fair"
    ],
    "consentMarketing": true,
    "consentWhatsapp": true,
    "lawfulBasis": "legitimate_interest",
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 1
  }
}
DELETE/api/v1/sales/contacts/{id}

Delete a contact

Removes the contact. It no longer appears in lists and returns 404.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/contacts/0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Contact deleted"
}
POST/api/v1/sales/contacts/lifecycle-stage

Set the lifecycle stage of many contacts

Moves up to 1,000 contacts to one lifecycle stage.

Who: Owner, manager or executive

JSON body

FieldTypeNotes
contactIdsrequireduuid[]1–1,000 contact ids.
stagerequiredstringlead, cadence, mql, sql, customer, nurture or not_interested.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/contacts/lifecycle-stage" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contactIds": [
      "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c"
    ],
    "stage": "mql"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Lifecycle stage set",
  "data": {
    "changed": 1,
    "already_in_stage": 0,
    "not_allowed": 0,
    "unavailable": 0
  }
}
7

Accounts

The companies your contacts work for (Accounts in the app).

GET/api/v1/core/accounts

List accounts

Companies your contacts belong to. Newest first. Paged.

Who: Any memberPaged — see lists

Query parameters

NameTypeWhat it does
templateSlugstringSend sales-crm to get Sales accounts only.
searchstringMatches name, domain or email.
accountTypestring
statusstring
labelIdsuuid[]
pageintegerPage number, starting at 0. Default 0.
sizeintegerRows per page, 1–100. Default 20. Larger values are cut to 100.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/accounts" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Accounts retrieved",
  "data": {
    "content": [
      {
        "id": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
        "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
        "templateSlug": "sales-crm",
        "name": "Example GmbH",
        "domain": "example.com",
        "accountType": "prospect",
        "status": "active",
        "country": "DE",
        "employeeCount": 40,
        "customFields": {},
        "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdAt": "2026-11-07T23:29:11.057166Z",
        "updatedAt": "2026-11-07T23:29:11.057166Z",
        "entityVersion": 0
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20,
    "numberOfElements": 1,
    "first": true,
    "last": true,
    "empty": false
  }
}
GET/api/v1/core/accounts/{id}

Get an account

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/accounts/2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Account retrieved",
  "data": {
    "id": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "templateSlug": "sales-crm",
    "name": "Example GmbH",
    "domain": "example.com",
    "accountType": "prospect",
    "status": "active",
    "country": "DE",
    "employeeCount": 40,
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
POST/api/v1/core/accounts

Create an account

Who: Owner, manager or executive
JSON body (27 fields)
FieldTypeNotes
templateSlugrequiredstringAlways sales-crm for Sales. Can't be changed later.
namerequiredstringUp to 255 characters.
legalNamestring
domainstringe.g. example.com.
websitestring
industrystringFree text.
employeeCountinteger0 or more.
annualRevenuenumber0 or more.
phonestring
emailstringA valid email address.
addressLine1string
addressLine2string
citystring
statestring
postalCodestring
countrystringCountry name or ISO code; returned as the 2-letter code.
linkedinUrlstring
descriptionstring
accountTypestringprospect (default), customer, partner or vendor.
statusstringactive (default) or inactive.
assignedTouuidOwner's userId.
parentAccountIduuidParent account, for groups of companies.
sourcestring
tagsstring[]
externalIdstring
externalSourcestring
customFieldsobjectKeyed by fieldKey.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/core/accounts" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateSlug": "sales-crm",
    "name": "Example GmbH",
    "domain": "example.com",
    "country": "DE",
    "employeeCount": 40
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Account created",
  "data": {
    "id": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "templateSlug": "sales-crm",
    "name": "Example GmbH",
    "domain": "example.com",
    "accountType": "prospect",
    "status": "active",
    "country": "DE",
    "employeeCount": 40,
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
PUT/api/v1/core/accounts/{id}

Update an account

Send only the fields you want to change. Left-out fields keep their value.

Who: Owner, manager or executive
JSON body (26 fields)
FieldTypeNotes
namestringUp to 255 characters.
legalNamestring
domainstringe.g. example.com.
websitestring
industrystringFree text.
employeeCountinteger0 or more.
annualRevenuenumber0 or more.
phonestring
emailstringA valid email address.
addressLine1string
addressLine2string
citystring
statestring
postalCodestring
countrystringCountry name or ISO code; returned as the 2-letter code.
linkedinUrlstring
descriptionstring
accountTypestringprospect, customer, partner or vendor.
statusstringactive or inactive.
assignedTouuidOwner's userId. Can be changed but not removed ("" is ignored).
parentAccountIduuidParent account, for groups of companies.
sourcestring
tagsstring[]
externalIdstring
externalSourcestring
customFieldsobjectKeyed by fieldKey.
  • "" is saved as an empty value (and clears country). accountType and status can be changed but not cleared. The owner can be changed but not removed through this call.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/accounts/2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "industry": "Manufacturing"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Account updated",
  "data": {
    "id": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "templateSlug": "sales-crm",
    "name": "Example GmbH",
    "domain": "example.com",
    "accountType": "prospect",
    "status": "active",
    "country": "DE",
    "employeeCount": 40,
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 1,
    "industry": "Manufacturing"
  }
}
DELETE/api/v1/core/accounts/{id}

Delete an account

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/core/accounts/2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Account deleted"
}
8

Deals

Opportunities moving through your pipeline.

GET/api/v1/sales/deals

List deals

Filter, sort and page through deals.

Who: Any memberPaged — see lists

Query parameters

NameTypeWhat it does
searchstringMatches the deal title and the contact's name or company.
statusstringopen, won, lost or abandoned.
tabstringA ready-made view: open, mine, closingThisMonth, pastClose, idle, noCloseDate, won, lost, all or changed.
pipelineIduuid
stageIdstringA stage id, or none for deals without a stage.
assignedTouuid
unassignedboolean
contactIduuid
labelIdsuuid[]
idsuuid[]Only these deals.
closestringthisMonth, next30, past or none (expected close date).
attentionstringoverdue, idle or noCloseDate (open deals only).
sortstringcreated (default), title, contact, stage, value, weighted, probability, close_date, days_in_stage, last_update, next_step, assigned_to, source or board.
dirstringdesc (default) or asc.
thenstringSecond sort key (same values as sort).
thenDirstringdesc (default) or asc.
tzstringIANA zone that defines “today” for close-date and overdue filters. Default UTC.
pageintegerPage number, starting at 0. Default 0.
sizeintegerRows per page, 1–100. Default 20. Larger values are cut to 100.
  • List rows also carry contactName, contactCompany, contactEmail, labels, lastActivityAt, nextTaskTitle, nextTaskDueDate and stageEnteredAt.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/deals?tab=open&sort=value&dir=desc&size=50" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deals retrieved",
  "data": {
    "content": [
      {
        "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
        "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
        "dealTitle": "Example GmbH — 40 licences",
        "dealValue": 5500,
        "currency": "EUR",
        "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
        "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
        "probability": 40,
        "status": "open",
        "expectedCloseDate": "2026-12-08",
        "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
        "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
        "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "customFields": {},
        "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdAt": "2026-11-07T23:29:11.057166Z",
        "updatedAt": "2026-11-07T23:29:11.057166Z",
        "entityVersion": 2,
        "contactName": "Lena Schmidt",
        "contactCompany": "Example GmbH"
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20,
    "numberOfElements": 1,
    "first": true,
    "last": true,
    "empty": false
  }
}
GET/api/v1/sales/deals/{id}

Get a deal

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/deals/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deal retrieved",
  "data": {
    "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "dealTitle": "Example GmbH — 40 licences",
    "dealValue": 5500,
    "currency": "EUR",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "probability": 40,
    "status": "open",
    "expectedCloseDate": "2026-12-08",
    "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 2
  }
}
POST/api/v1/sales/deals

Create a deal

Who: Owner, manager or executive
JSON body (15 fields)
FieldTypeNotes
dealTitlerequiredstringUp to 255 characters.
statusrequiredstringopen, won, lost or abandoned. Fits the stage: a won stage holds won, a lost stage lost/abandoned, an open stage open/abandoned. Sent with a stageId that contradicts it: 400.
dealValuenumber0 or more. Stored with 2 decimals (extra decimals are rounded).
currencystringA currency code such as EUR (stored in capitals; a code that isn't a real currency is refused). Leave it out and the deal takes your organisation's currency — its billing currency, else its country's; an organisation with neither gets 400 “Choose a currency for this deal.”
pipelineIduuidOnly used to pick the starting stage when you don't send stageId.
stageIduuidA stage of one of your Sales pipelines. The deal's pipeline always follows its stage.
probabilityinteger0–100. Leave it out to use the stage's probability.
expectedCloseDatedateYYYY-MM-DD.
contactIduuidMain contact.
accountIduuidAccount (company).
assignedTouuidOwner's userId; must be a member of your organisation.
descriptionstring
leadSourcestringUp to 100 characters.
tagsstring[]
customFieldsobjectKeyed by fieldKey.
  • No stageId? An open deal starts in the first open stage of pipelineId, or of your default pipeline.
  • If the starting stage has an approval gate, the deal is saved without a stage and pendingApprovalRequestId is set until someone approves. A won/lost status sent with it is saved as open until then.
  • A deal created won or lost gets its wonAt / lostAt at once (its expected close date when that is in the past); created won also sends the deal.won webhook — unless its stage needs approval, when it is saved open and wins on approval.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/deals" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dealTitle": "Example GmbH — 40 licences",
    "status": "open",
    "dealValue": 5000,
    "currency": "EUR",
    "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "expectedCloseDate": "2026-12-08"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Deal created",
  "data": {
    "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "dealTitle": "Example GmbH — 40 licences",
    "dealValue": 5000,
    "currency": "EUR",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "stageId": "14d799e7-0000-4b44-9610-dd9206f0028e",
    "status": "open",
    "expectedCloseDate": "2026-12-08",
    "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
PUT/api/v1/sales/deals/{id}

Update a deal

Send only the fields you want to change: move stage, change value, win or lose.

Who: Owner, manager or executive
JSON body (16 fields)
FieldTypeNotes
dealTitlestringUp to 255 characters.
statusstringopen, won, lost or abandoned. Fits the stage: a won stage holds won, a lost stage lost/abandoned, an open stage open/abandoned. Sent with a stageId that contradicts it: 400.
dealValuenumber0 or more. Stored with 2 decimals (extra decimals are rounded).
currencystringA currency code such as EUR; it can't be emptied (400). For a deal, its line items follow.
stageIduuidA stage of one of your Sales pipelines. The deal's pipeline always follows its stage.
probabilityinteger0–100.
expectedCloseDatedateYYYY-MM-DD.
contactIduuidMain contact.
accountIduuidThe Sales account. "" unlinks it.
assignedTostringOwner's userId. "" removes the owner.
descriptionstring
leadSourcestringUp to 100 characters.
tagsstring[]
customFieldsobjectKeyed by fieldKey.
lostReasonstringWhy it was lost.
lostReasonDetailsstring
  • Left-out or null fields keep their value. "assignedTo": "" removes the owner.
  • Win, lose or reopen: move the deal to a won, lost or open stage — send just stageId and the status follows (a won stage makes it won, an open stage reopens a won or lost deal). Send just status and the deal moves to its pipeline's matching stage (won → the Won stage, through its approval if it has one; 400 if the pipeline has no such stage). A stageId sent with a status that contradicts it is refused (400). Sending the deal's current status back unchanged moves nothing. A deal with no stage takes any status. won sets wonAt; lost/abandoned set lostAt; reopening clears both.
  • Approval gates: moving into a gated stage doesn't move the deal yet. It sets pendingApprovalRequestId, and while that's pending, status changes are not applied. While a request is pending, a move into another gated stage returns 400 “An approval is already pending for this item”; a move into an ungated stage still happens, and status changes stay blocked until the request is decided.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/deals/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "probability": 40,
    "dealValue": 5500
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Deal updated",
  "data": {
    "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "dealTitle": "Example GmbH — 40 licences",
    "dealValue": 5500,
    "currency": "EUR",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "probability": 40,
    "status": "open",
    "expectedCloseDate": "2026-12-08",
    "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "accountId": "2c4e6a8b-0d1f-4e3a-9b5c-7d9e1f3a5b7c",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "customFields": {},
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 2
  }
}
DELETE/api/v1/sales/deals/{id}

Delete a deal

Removes the deal and cancels any approval waiting on it.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/deals/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deal deleted"
}
GET/api/v1/sales/deals/{id}/history

A deal's history

Stage moves, value changes and close-date changes, newest first. Not paged.

Who: Any member except client logins
  • eventType: created, stage, value or close_date. source: user, approval or system.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/deals/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/history" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deal history retrieved",
  "data": [
    {
      "id": "7e6d5c4b-0000-4a3a-8b2b-1c0d9e8f7a6b",
      "dealId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
      "eventType": "value",
      "fromValue": 5000,
      "toValue": 5500,
      "fromCurrency": "EUR",
      "toCurrency": "EUR",
      "source": "user",
      "changedBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "changedByName": "Alex Morgan",
      "changedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
GET/api/v1/sales/deals/changes

Deals that changed recently

One row per deal whose value or close date changed, or which moved back to an earlier stage, in the last N days.

Who: Any member except client logins

Query parameters

NameTypeWhat it does
daysintegerDefault 7. Values outside 1–90 are brought into that range.
  • This is a summary for people, not a full change feed. To sync every change, see keeping in sync.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/deals/changes" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deal changes retrieved",
  "data": [
    {
      "dealId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
      "valueFrom": 5000,
      "valueTo": 5500,
      "currencyFrom": "EUR",
      "currencyTo": "EUR",
      "valueDirection": "up",
      "movedBack": false,
      "lastChangedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
9

Deal line items and notes

What's in a deal, and what your team wrote about it.

GET/api/v1/sales/deal-line-items

List a deal's line items

Not paged.

Who: Any member

Query parameters

NameTypeWhat it does
dealIdrequireduuid

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/deal-line-items?dealId=a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Line items retrieved",
  "data": [
    {
      "id": "1f2e3d4c-5b6a-4978-8c9d-0e1f2a3b4c5e",
      "dealId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
      "productId": "e7f8a9b0-c1d2-4e3f-a4b5-c6d7e8f9a0b1",
      "name": "Annual licence",
      "quantity": 4,
      "unitPrice": 275.5,
      "discountPercent": 10,
      "lineTotal": 991.8,
      "currency": "EUR",
      "displayOrder": 0
    }
  ]
}
POST/api/v1/sales/deal-line-items

Add a line item

Who: Owner, manager or executive

JSON body

FieldTypeNotes
dealIdrequireduuid
namerequiredstringUp to 255 characters.
productIduuidA product from your catalogue. Fills in unitPrice when you leave it out — only if the product is priced in the deal's currency; otherwise send the price (400 “This product is priced in USD and the deal is in EUR …”).
quantitynumberMore than 0. Default 1.
unitPricenumber0 or more. Default: the product's price (same currency only), else 0.
discountPercentnumber0–100. Default 0.
currencystringAlways the deal's currency — leave it out, or send the deal's (400 “A line item uses its deal's currency (EUR).” otherwise). Changing the deal's currency relabels its lines; amounts aren't converted.
displayOrderintegerDefault 0.
  • lineTotal = quantity × unitPrice × (1 − discount/100), rounded to 2 decimals, worked out by the server.
  • Line items don't change the deal's dealValue. Update the deal if you want them to match.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/deal-line-items" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dealId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "productId": "e7f8a9b0-c1d2-4e3f-a4b5-c6d7e8f9a0b1",
    "name": "Annual licence",
    "quantity": 4,
    "discountPercent": 10
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Line item added",
  "data": {
    "id": "1f2e3d4c-5b6a-4978-8c9d-0e1f2a3b4c5e",
    "dealId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "productId": "e7f8a9b0-c1d2-4e3f-a4b5-c6d7e8f9a0b1",
    "name": "Annual licence",
    "quantity": 4,
    "unitPrice": 275.5,
    "discountPercent": 10,
    "lineTotal": 991.8,
    "currency": "EUR",
    "displayOrder": 0
  }
}
PUT/api/v1/sales/deal-line-items/{id}

Update a line item

Send only what changes. The deal and product can't be changed.

Who: Owner, manager or executive

JSON body

FieldTypeNotes
namestring
quantitynumber
unitPricenumber
discountPercentnumber
currencystringOnly the deal's currency is accepted (a line can't change currency on its own).
displayOrderinteger

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/deal-line-items/1f2e3d4c-5b6a-4978-8c9d-0e1f2a3b4c5e" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "quantity": 5
  }'
DELETE/api/v1/sales/deal-line-items/{id}

Remove a line item

Deletes it permanently.

Who: Owner, manager or executive

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/deal-line-items/1f2e3d4c-5b6a-4978-8c9d-0e1f2a3b4c5e" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Line item removed"
}
GET/api/v1/sales/deal-notes

List a deal's notes

Newest first. Paged.

Who: Any member except client loginsPaged — see lists

Query parameters

NameTypeWhat it does
dealIdrequireduuid
pageintegerPage number, starting at 0. Default 0.
sizeintegerRows per page, 1–100. Default 20. Larger values are cut to 100.
  • Private notes are only visible to their author and to owners and managers.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/deal-notes?dealId=a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deal notes retrieved",
  "data": {
    "content": [
      {
        "id": "2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d",
        "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
        "dealId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
        "content": "Asked for a 3-year price.",
        "isPrivate": false,
        "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdAt": "2026-11-07T23:29:11.057166Z",
        "updatedAt": "2026-11-07T23:29:11.057166Z"
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20,
    "numberOfElements": 1,
    "first": true,
    "last": true,
    "empty": false
  }
}
POST/api/v1/sales/deal-notes

Add a note to a deal

Who: Owner, manager or executive

JSON body

FieldTypeNotes
dealIdrequireduuid
contentrequiredstring
isPrivaterequiredboolean

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/deal-notes" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dealId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "content": "Asked for a 3-year price.",
    "isPrivate": false
  }'
PUT/api/v1/sales/deal-notes/{id}

Edit a note

Only the note's author, or an owner or manager, can edit it (403 “Only the person who wrote this note, or a manager, can change it.” otherwise). Someone else's private note answers 404.

Who: Its author (owner, manager or executive), or any owner or manager

JSON body

FieldTypeNotes
contentstring
isPrivateboolean

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/deal-notes/2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Asked for a 3-year price (sent)."
  }'
DELETE/api/v1/sales/deal-notes/{id}

Delete a note

An owner or manager, or the note's author if they hold one of those roles.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/deal-notes/2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deal note deleted"
}
10

Tasks

Follow-ups for your team, on a deal, a contact, or on their own.

GET/api/v1/sales/tasks

List tasks

Paged.

Who: Any memberPaged — see lists

Query parameters

NameTypeWhat it does
entityTypestringdeal or contact.
entityIduuid
statusstringA status, or open for anything not completed or cancelled.
assignedTouuid
dueBeforedateDue on or before (YYYY-MM-DD).
dueAfterdateDue on or after.
sortstringcreatedAt (default, newest first) or dueDate (soonest first, undated last).
pageintegerPage number, starting at 0. Default 0.
sizeintegerRows per page, 1–100. Default 20. Larger values are cut to 100.
  • List rows also carry relatedName: the deal title or contact name.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/tasks?status=open&sort=dueDate" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Tasks retrieved",
  "data": {
    "content": [
      {
        "id": "6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9e",
        "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
        "entityType": "deal",
        "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
        "title": "Send the proposal",
        "priority": "medium",
        "status": "pending",
        "dueDate": "2026-11-11",
        "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "isEscalated": false,
        "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdAt": "2026-11-07T23:29:11.057166Z",
        "updatedAt": "2026-11-07T23:29:11.057166Z",
        "relatedName": "Example GmbH — 40 licences"
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20,
    "numberOfElements": 1,
    "first": true,
    "last": true,
    "empty": false
  }
}
GET/api/v1/sales/tasks/{id}

Get a task

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/tasks/6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9e" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Task retrieved",
  "data": {
    "id": "6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9e",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "entityType": "deal",
    "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "title": "Send the proposal",
    "priority": "medium",
    "status": "pending",
    "dueDate": "2026-11-11",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "isEscalated": false,
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
POST/api/v1/sales/tasks

Create a task

Who: Owner, manager or executive

JSON body

FieldTypeNotes
titlerequiredstringUp to 255 characters.
priorityrequiredstringlow, medium, high or urgent.
statusrequiredstringpending, in_progress, completed or cancelled.
isEscalatedrequiredbooleanSend false for a normal task.
entityTypestringdeal or contact. Leave both entityType and entityId out for a standalone task.
entityIduuidThe deal or contact id. It must exist in your organisation.
descriptionstring
taskTypestringFree text up to 50 characters, e.g. call.
dueDatedateYYYY-MM-DD (a date, no time).
recurrencestringdaily, weekly or monthly. Completing the task creates the next one.
reminderDatedate-timeWhen to remind the owner in the app.
assignedTouuidOwner's userId.
escalatedTouuidWho to escalate to, when isEscalated is true.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/tasks" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entityType": "deal",
    "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "title": "Send the proposal",
    "priority": "medium",
    "status": "pending",
    "isEscalated": false,
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "dueDate": "2026-11-11"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Task created",
  "data": {
    "id": "6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9e",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "entityType": "deal",
    "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "title": "Send the proposal",
    "priority": "medium",
    "status": "pending",
    "dueDate": "2026-11-11",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "isEscalated": false,
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/tasks/{id}

Update or complete a task

Send only what changes.

Who: Owner, manager or executive

JSON body

FieldTypeNotes
titlestringUp to 255 characters.
prioritystringlow, medium, high or urgent.
statusstringpending, in_progress, completed or cancelled.
isEscalatedbooleanSend false for a normal task.
entityTypestringdeal or contact. Leave both entityType and entityId out for a standalone task.
entityIduuidThe deal or contact id. It must exist in your organisation.
descriptionstring
taskTypestringFree text up to 50 characters, e.g. call.
dueDatedateYYYY-MM-DD (a date, no time).
recurrencestringdaily, weekly or monthly. Completing the task creates the next one.
reminderDatedate-timeWhen to remind the owner in the app.
assignedTostringOwner's userId. "" removes the owner.
escalatedTouuidWho to escalate to, when isEscalated is true.
clearReminderbooleantrue removes the reminder.
  • "status": "completed" sets completedAt and completedBy, and for a repeating task creates the next one.
  • "assignedTo": "" removes the owner; "entityType": "" detaches the task; "recurrence": "" stops it repeating.
  • "isEscalated": false clears the escalation.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/tasks/6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9e" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "completed"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Task updated",
  "data": {
    "id": "6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9e",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "entityType": "deal",
    "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "title": "Send the proposal",
    "priority": "medium",
    "status": "completed",
    "dueDate": "2026-11-11",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "isEscalated": false,
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "completedAt": "2026-11-07T23:29:11.057166Z",
    "completedBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d"
  }
}
DELETE/api/v1/sales/tasks/{id}

Delete a task

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/tasks/6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9e" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Task deleted"
}
11

Activities

The log of calls, meetings and other touchpoints.

GET/api/v1/sales/activities

List activities

Calls, meetings, emails and other logged activity. Newest first. Paged.

Who: Any member except client loginsPaged — see lists

Query parameters

NameTypeWhat it does
entityTypestring
entityIduuid
activityTypestringe.g. call.
pageintegerPage number, starting at 0. Default 0.
sizeintegerRows per page, 1–100. Default 20. Larger values are cut to 100.
  • Some activities are added automatically (stage moves, notes, emails). Those have autoSource set; on update don't send their subject, activityType, entityType or entityId, even unchanged (400). Send only the fields you're changing, e.g. notes or outcome.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/activities" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Activities retrieved",
  "data": {
    "content": [
      {
        "id": "0a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
        "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
        "entityType": "deal",
        "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
        "activityType": "call",
        "subject": "Discovery call",
        "durationMinutes": 15,
        "outcome": "connected",
        "completedAt": "2026-11-07T23:29:00Z",
        "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdAt": "2026-11-07T23:29:11.057166Z"
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20,
    "numberOfElements": 1,
    "first": true,
    "last": true,
    "empty": false
  }
}
GET/api/v1/sales/activities/{id}

Get an activity

Who: Any member except client logins

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/activities/0a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Activity retrieved",
  "data": {
    "id": "0a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "entityType": "deal",
    "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "activityType": "call",
    "subject": "Discovery call",
    "durationMinutes": 15,
    "outcome": "connected",
    "completedAt": "2026-11-07T23:29:00Z",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z"
  }
}
POST/api/v1/sales/activities

Log an activity

Who: Owner, manager or executive

JSON body

FieldTypeNotes
entityTyperequiredstringdeal or contact.
entityIdrequireduuidThe deal or contact id.
activityTyperequiredstringcall, email, meeting, demo, note, task, follow_up, whatsapp or other.
subjectrequiredstringUp to 255 characters.
notesstring
durationMinutesintegerMore than 0.
outcomestringUp to 100 characters.
locationstringUp to 255 characters.
scheduledAtdate-time
completedAtdate-time
assignedTouuid
participantsuuid[]Team members' userIds.
  • A whatsapp activity on a contact needs that contact's WhatsApp permission (403 otherwise).
  • An unknown activityType returns 400 “One of the submitted values isn't allowed for that field…”.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/activities" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entityType": "deal",
    "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "activityType": "call",
    "subject": "Discovery call",
    "durationMinutes": 15,
    "outcome": "connected",
    "completedAt": "2026-11-07T23:29:00Z"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Activity created",
  "data": {
    "id": "0a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "entityType": "deal",
    "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
    "activityType": "call",
    "subject": "Discovery call",
    "durationMinutes": 15,
    "outcome": "connected",
    "completedAt": "2026-11-07T23:29:00Z",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/activities/{id}

Update an activity

Send only what changes. Sending null leaves a field as it is. Only the person who logged it, the person it's assigned to, or an owner or manager can change it (403 “Only the person who logged this, or a manager, can change it.” otherwise).

Who: Its author (owner, manager or executive), or any owner or manager

JSON body

FieldTypeNotes
entityTypestringdeal or contact.
entityIduuidThe deal or contact id.
activityTypestringcall, email, meeting, demo, note, task, follow_up, whatsapp or other.
subjectstringUp to 255 characters.
notesstring
durationMinutesintegerMore than 0.
outcomestringUp to 100 characters.
locationstringUp to 255 characters.
scheduledAtdate-time
completedAtdate-time
assignedTouuidOwner's userId. "" removes the owner.
participantsuuid[]Team members' userIds.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/activities/0a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "notes": "Discussed pricing"
  }'
DELETE/api/v1/sales/activities/{id}

Delete an activity

Deletes it permanently.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/activities/0a1b2c3d-4e5f-4a6b-9c7d-8e9f0a1b2c3d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Activity deleted"
}
12

Products

Your catalogue, used by deal line items.

GET/api/v1/sales/products

List products

Sorted by name. Not paged.

Who: Any member

Query parameters

NameTypeWhat it does
activeOnlybooleanDefault false.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/products" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Products retrieved",
  "data": [
    {
      "id": "e7f8a9b0-c1d2-4e3f-a4b5-c6d7e8f9a0b1",
      "name": "Annual licence",
      "sku": "LIC-1",
      "unit": "licence",
      "unitPrice": 275.5,
      "currency": "EUR",
      "isActive": true,
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
POST/api/v1/sales/products

Create a product

Who: Owner or manager

JSON body

FieldTypeNotes
namerequiredstringUp to 255 characters.
skustringUp to 100 characters. Not required to be unique.
descriptionstring
unitstringe.g. licence, hour.
unitPricenumber0 or more. Default 0.
currencystringA currency code such as EUR. Leave it out and the product takes your organisation's currency.
categorystring
isActivebooleanDefault true.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/products" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Annual licence",
    "sku": "LIC-1",
    "unit": "licence",
    "unitPrice": 275.5,
    "currency": "EUR"
  }'
PUT/api/v1/sales/products/{id}

Update a product

Send only what changes.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 255 characters.
skustringUp to 100 characters. Not required to be unique.
descriptionstring
unitstringe.g. licence, hour.
unitPricenumber0 or more.
currencystringA currency code such as EUR; it can't be emptied (400). For a deal, its line items follow.
categorystring
isActiveboolean

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/products/e7f8a9b0-c1d2-4e3f-a4b5-c6d7e8f9a0b1" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "unitPrice": 299
  }'
DELETE/api/v1/sales/products/{id}

Delete a product

Existing line items keep their name and price.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/products/e7f8a9b0-c1d2-4e3f-a4b5-c6d7e8f9a0b1" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Product deleted"
}
13

Labels and custom fields

Your own fields and colour labels on contacts, deals and accounts.

Writing custom field values

Send them in customFields on a contact, deal or account, keyed by the field's fieldKey:

{
  "customFields": {
    "contract_end": "2027-03-31",
    "seats": 40,
    "renewal_risk": "low",
    "regions": [
      "EU",
      "UK"
    ],
    "has_trial": true
  }
}
dataTypeSend
texta string
numbera number
booleantrue / false
date"YYYY-MM-DD"
selectone of the field's options
multiselectan array of its options
  • If you send customFields, a required field missing from it returns 400 “<Label> is required” (create and update). On create an unknown key returns 400 “Unknown custom field: …”; on update unknown keys are ignored.
  • On update, customFields replaces the whole set — leaving an active field out clears it. Read the record first and send the full set back.
GET/api/v1/core/custom-fields

List custom fields

Your own fields on contacts, deals or accounts. Not paged. Includes switched-off fields (isActive: false); write only active ones.

Who: Any member

Query parameters

NameTypeWhat it does
templateSlugrequiredstringsales-crm
entityTyperequiredstringcontact, deal or account.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/custom-fields?templateSlug=sales-crm&entityType=contact" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Custom fields retrieved",
  "data": [
    {
      "id": "4d5e6f70-0000-4a1b-8c2d-3e4f5a6b7c8d",
      "templateSlug": "sales-crm",
      "entityType": "contact",
      "fieldKey": "contract_end",
      "label": "Contract end",
      "dataType": "date",
      "required": false,
      "displayOrder": 0,
      "isActive": true
    }
  ]
}
GET/api/v1/core/labels

List labels

Not paged.

Who: Any member

Query parameters

NameTypeWhat it does
activeOnlybooleanDefault false.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/labels" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Labels retrieved",
  "data": [
    {
      "id": "9c8b7a6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
      "name": "VIP",
      "color": "#f59e0b",
      "displayOrder": 0,
      "isActive": true,
      "createdAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
GET/api/v1/core/entity-labels

Labels on a record

Who: Any member

Query parameters

NameTypeWhat it does
entityTyperequiredstringcontact, account or deal.
entityIdrequireduuid

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/entity-labels?entityType=contact&entityId=0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Labels retrieved",
  "data": [
    {
      "id": "9c8b7a6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
      "name": "VIP",
      "color": "#f59e0b"
    }
  ]
}
PUT/api/v1/core/entity-labels

Set the labels on a record

Replaces the record's labels with exactly this list. [] removes them all.

Who: Owner, manager or executive

JSON body

FieldTypeNotes
entityTyperequiredstringcontact, account or deal.
entityIdrequireduuid
labelIdsrequireduuid[]

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/entity-labels" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "entityType": "contact",
    "entityId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "labelIds": [
      "9c8b7a6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d"
    ]
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Labels updated",
  "data": [
    {
      "id": "9c8b7a6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
      "name": "VIP",
      "color": "#f59e0b"
    }
  ]
}
Part 3 of 5

Bulk loads and staying in sync

Push many records at once, import a file, and hear about changes.

14

Push contacts and accounts in bulk

The quickest way to keep the CRM fed from another system: send a batch, and each record is matched or created.

How a record is matched

  1. externalSource + externalId — your system's own id. Use a real name for the source, e.g. billing-app. The generic names api, csv and webhook don't count, and their ids are not stored.
  2. Email, ignoring case and spaces.
  3. Phone or mobile, by the last 10 digits (numbers of 7+ digits only) — and only when the contact has no email or the same email as the record.
  • A match is updated with the fields you send. A field left out, sent as null or sent empty ("") keeps its value — push never clears a field. Its type and status never change.
  • No match: a new contact is created, with status active, your organisation's permission setting, and an owner chosen by your lead-routing rules. The account is found by accountDomain, then companyName, or created.
  • When a record carries your externalSource + externalId, someone erased on request or deleted in the CRM under that id is never re-created: the record is skipped with a warning. Without your id, a deleted or erased person pushed by email or phone is created again.
  • An email or phone match that your source already links to a different externalId is treated as a different person.
  • A lead source or industry you haven't used before is added to your list. A bad country, date or link is dropped with a warning rather than failing the record.
  • Bulk push can't set the owner, lifecycle stage, permissions or custom fields — use the single-record calls for those.
  • Records you push don't send webhook notifications.

The report

errors and warnings point at a record by row (1 = the first record you sent): {"row": 3, "message": "…"}, warnings also name the field.

POST/api/v1/integration/ingest/contacts

Push contacts (create or update)

Send up to 1,000 contacts in one call. Each one is matched to an existing contact or created. One bad record doesn't stop the rest. Records after the 1,000th are not processed; the report then has truncated: true.

Who: Owner, manager or executive

Query parameters

NameTypeWhat it does
modulestringsales (default).
sourcestringWritten to externalSource on records that don't name their own. Default api.
Body: a JSON array of objects with these fields (33 fields)
FieldTypeNotes
firstNamestringIf missing, the email (or “Unknown”) is used for a new contact.
lastNamestring
emailstringUsed to find an existing contact.
phonestringUsed to find an existing contact (last 10 digits).
mobilestring
companyNamestringFinds or creates the account.
accountDomainstringFinds the account by domain first.
jobTitlestring
departmentstring
industrystringUnknown values are added to your list.
leadSourcestringUnknown values are added to your list.
contactTypestringUsed only when creating. Default lead.
websitestring
linkedinUrlstringPersonal LinkedIn.
companyLinkedinstring
twitterHandlestring
instagramstring
whatsappNumberstring
addressLine1string
addressLine2string
citystring
statestring
postalCodestring
countrystringName or ISO code; an unknown country is dropped with a warning.
estimatedDealValuenumber
leadScoreinteger
tagsstring[]
notesstring
dateOfBirthdate
workAnniversarydate
timezonestring
externalSourcestringYour system's name. Needed for externalId matching.
externalIdstringYour system's id. Matched first, when externalSource is set.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/integration/ingest/contacts?module=sales&source=billing-app" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "firstName": "Lena",
      "lastName": "Schmidt",
      "email": "lena@example.com",
      "companyName": "Example GmbH",
      "jobTitle": "Head of Operations",
      "country": "DE",
      "externalSource": "billing-app",
      "externalId": "cus_1042"
    },
    {
      "firstName": "Tom",
      "email": "tom@example.org",
      "externalSource": "billing-app",
      "externalId": "cus_1043"
    }
  ]'

Response 200

{
  "status": "SUCCESS",
  "message": "Ingested",
  "data": {
    "total": 2,
    "created": 1,
    "updated": 1,
    "failed": 0,
    "skipped": 0,
    "skippedDuplicates": 0,
    "truncated": false,
    "errors": [],
    "warnings": []
  }
}
POST/api/v1/integration/ingest/accounts

Push accounts (create or update)

Up to 1,000 accounts per call. Matched by externalId, then domain, then name.

Who: Owner, manager or executive

Query parameters

NameTypeWhat it does
modulestringsales (default).
sourcestring
Body: a JSON array of objects with these fields (23 fields)
FieldTypeNotes
namestringIf missing, the domain is used for a new account.
domainstringMatched after externalId; normalised (no scheme, path or www.).
websitestring
industrystring
phonestring
emailstring
legalNamestring
employeeCountinteger
annualRevenuenumber
addressLine1string
addressLine2string
citystring
statestring
postalCodestring
countrystring
linkedinUrlstring
descriptionstring
accountTypestring
statusstring
sourcestring
tagsstring[]
externalSourcestring
externalIdstring

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/integration/ingest/accounts?module=sales&source=billing-app" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "name": "Example GmbH",
      "domain": "example.com",
      "country": "DE",
      "externalSource": "billing-app",
      "externalId": "org_77"
    }
  ]'

Response 200

{
  "status": "SUCCESS",
  "message": "Ingested",
  "data": {
    "total": 1,
    "created": 1,
    "updated": 0,
    "failed": 0,
    "skipped": 0,
    "skippedDuplicates": 0,
    "truncated": false,
    "errors": [],
    "warnings": []
  }
}
15

Import a CSV file

For one-off loads from a spreadsheet.

POST/api/v1/integration/import/contacts/preview

Preview a CSV file

Reads the header row and the first 5 rows, and suggests which column goes to which field.

Who: Owner, manager or executive

Form fields (multipart/form-data)

NameTypeWhat it does
filerequiredfileA UTF-8 CSV file, comma-separated, header in row 1. Up to 25 MB.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/integration/import/contacts/preview" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -F "file=@contacts.csv"

Response 200

{
  "status": "SUCCESS",
  "message": "Preview",
  "data": {
    "headers": [
      "First name",
      "Last name",
      "Email"
    ],
    "sampleRows": [
      [
        "Lena",
        "Schmidt",
        "lena@example.com"
      ]
    ],
    "suggestedMapping": {
      "firstName": "First name",
      "lastName": "Last name",
      "email": "Email"
    }
  }
}
POST/api/v1/integration/import/contacts

Import a CSV file

Imports up to 10,000 rows, using the same matching as bulk push. Rows after the 10,000th are not processed; the report then has truncated: true.

Who: Owner, manager or executive

Form fields (multipart/form-data)

NameTypeWhat it does
filerequiredfileThe CSV file.
mappingrequiredstringJSON text: {"field": "CSV header"}, e.g. from the preview's suggestedMapping. Custom fields as cf.<fieldKey>.
modulestringsales (default).
onDuplicatestringupdate (default), skip or create.
sourcestringDefault csv.
  • Empty cells never clear a value.
  • Extra CSV-only fields: ownerEmail (a team member with Sales access) and lifecycleStage (a key or its label).
  • Numbers without a leading + get your organisation's country calling code (if your organisation has a country set; otherwise they're kept as written, with a warning).
  • Bulk push and CSV import also need the role's permission to import contacts (403 otherwise).

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/integration/import/contacts" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -F "file=@contacts.csv" \
  -F 'mapping={"firstName":"First name","lastName":"Last name","email":"Email"}' \
  -F "module=sales" -F "onDuplicate=update"

Response 200

{
  "status": "SUCCESS",
  "message": "Import complete",
  "data": {
    "total": 1,
    "created": 1,
    "updated": 0,
    "failed": 0,
    "skipped": 0,
    "skippedDuplicates": 0,
    "truncated": false,
    "errors": [],
    "warnings": []
  }
}
16

Webhooks

Get told when something changes, instead of asking — and a no-code way to receive leads.

Notifications to your system

Sales › Integrations

An owner adds your https:// address, chooses the events and sets a signing secret. Then, after each change, we POST to your address:

EventWhen
contact.createdA contact is created (not by bulk push or CSV import).
contact.updatedA contact is edited.
deal.createdA deal is created.
deal.updatedA deal is edited, moves stage, or is marked lost (status: lost).
deal.wonA deal's status changes to won — including a deal created already won (it sends deal.created then deal.won). Editing a deal that is already won doesn't send it again.

Request we send

POST https://your-system.example.com/verdeshell
Content-Type: application/json
X-Verdeshell-Event: deal.won
X-Verdeshell-Delivery: 3f2a…  (same on every retry)
X-Verdeshell-Signature: 9c1e…  (hex HMAC-SHA256 of the body)
X-Verdeshell-Timestamp: 1762560000  (Unix seconds, set on each attempt)
X-Verdeshell-Signature-V2: 7b4d…  (hex HMAC-SHA256 of "<timestamp>.<body>")

{
  "event": "deal.won",
  "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
  "module": "sales-crm",
  "entityType": "deal",
  "entityId": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
  "data": {
    "dealTitle": "Example GmbH \u2014 40 licences",
    "status": "won",
    "dealValue": 5500,
    "currency": "EUR",
    "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c"
  }
}
  • data is a short summary: contacts send firstName, lastName, email, status; deals send dealTitle, status, dealValue, currency, contactId. Fetch the record by entityId for everything else.
  • Answer with any 2xx within 10 seconds. Anything else is retried 5 more times: after 1, 2, 4, 8 and 16 minutes. Redirects are not followed.
  • A delivery can arrive more than once. Use X-Verdeshell-Delivery to ignore repeats.
  • Check X-Verdeshell-Signature-V2 and refuse a timestamp more than 5 minutes off your clock: then a request someone captured can't be replayed later. X-Verdeshell-Signature (body only) is still sent, so receivers built on it keep working. Read header names case-insensitively (some frameworks lower-case them).
  • Deletes, tasks and activities don't send events.

Check the signature (Node.js)

import crypto from "node:crypto";

// rawBody: the exact bytes you received (before JSON.parse)
function isFromVerdeshell(rawBody, headers, secret, toleranceSeconds = 300) {
  const ts = headers["x-verdeshell-timestamp"];
  const sig = headers["x-verdeshell-signature-v2"] || "";
  if (!ts || Math.abs(Date.now() / 1000 - Number(ts)) > toleranceSeconds) return false; // too old: a replay
  const expected = crypto.createHmac("sha256", secret).update(`${ts}.`).update(rawBody).digest("hex");
  const a = Buffer.from(expected, "utf8");
  const b = Buffer.from(sig, "utf8");
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

Check the signature (Python)

import hmac, hashlib, time

def is_from_verdeshell(raw_body: bytes, headers, secret: str, tolerance_seconds: int = 300) -> bool:
    ts = headers.get("X-Verdeshell-Timestamp", "")
    sig = headers.get("X-Verdeshell-Signature-V2", "")
    if not ts.isdigit() or abs(time.time() - int(ts)) > tolerance_seconds:
        return False  # too old: a replay
    expected = hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, sig)

Receive leads from a form or tool, without a key

Sales › Integrations

The Integrations screen shows your organisation's own webhook URLs for contacts and accounts. Anything that can POST JSON — a website form, a no-code automation — can send the same array as bulk push to that address. The address carries its own token, so no API key is needed; you can also send the token in an X-Verdeshell-Token header instead.

  • Limits: 120 requests a minute from one IP address, 300 a minute per organisation, 1,000 records per request.
  • Treat the URL like a password. An owner can rotate it on the same screen, and the old one stops working at once.
17

Keeping another system in sync

Simple patterns that work within the limits.

Pull what changed since last time

Sort contacts by updated, newest first, and stop when you reach your last sync time. (The example needs Python 3.11 or later.)

import os, requests
from datetime import datetime

BASE = "https://crm.verdeshell.com/api/v1"
HEAD = {"X-API-Key": os.environ["VERDESHELL_API_KEY"]}

def ts(value):
    return datetime.fromisoformat(value.replace("Z", "+00:00"))

def changed_contacts_since(last_sync):
    """Contacts created or edited after last_sync (an aware datetime), newest first."""
    page = 0
    while True:
        r = requests.get(f"{BASE}/sales/contacts", headers=HEAD,
                         params={"sort": "updated", "dir": "desc", "size": 100, "page": page})
        r.raise_for_status()
        data = r.json()["data"]
        for c in data["content"]:
            if ts(c["updatedAt"]) <= last_sync:
                return
            yield c
        if data["last"]:
            return
        page += 1
  • Save the newest updatedAt you saw as the next starting point. Compare times as dates, not as text: the number of fraction digits varies.
  • Deals: sort=last_update orders by the later of updatedAt and lastActivityAt (both on list rows). Stop when both are at or before your last sync, and treat a deal as changed when its updatedAt is after it.
  • Deleted records don't appear in lists. To notice deletions, compare the ids you hold with a full pull now and then (for example nightly).
  • For near-real-time updates, combine this with webhooks and use the pull as a safety net.

Push from your system

  1. Give every record your own externalSource + externalId, so the next push updates instead of duplicating.
  2. Send changes in batches of up to 1,000 with bulk push, and log the report's errors and warnings.
  3. Use the single-record calls for what bulk push can't set: owner, lifecycle stage, permissions, custom fields, deals and tasks.

Good to know

  • Visibility follows the key's user. Today keys are created by owners, who see everything. If the creator's role changes, so does what the key sees — executives and staff, for example, may only see their own deals.
  • People's data. Contact records are personal data. Keep your copy only as long as you need it, and honour removals: when you send your own externalId, someone erased in the CRM is never re-created by a push.
  • Test safely. Name test records clearly (e.g. TEST – …) and delete them when done. Creating a contact or deal can start your own automations, such as stage emails or lead routing.
Part 4 of 5

Configure Sales

Pipelines, fields, labels, lead routing and scoring, sequences, automations and greetings — set up from code.

18

Pipelines and stages

Create pipelines, shape their stages, choose what deal cards show, and put approval gates on stages.

🛠Set Sales up from code. Everything an owner or manager can configure on the Sales Configure and Engage screens can also be done with a key — handy for setting up a new organisation the same way every time, or keeping several in step.
👤Who. Most calls here need the key's creator to be an owner or manager (shown on each call). Changes apply to everyone in your organisation straight away.
🧪Try it on a copy. Create a test pipeline or a test sequence first. Deleting a stage, field or label can change what your team sees on existing records — each call says what happens.
GET/api/v1/core/pipelines/{id}

Get a pipeline

One pipeline by id. A deleted pipeline, or one from another organisation, returns 404 “Pipeline not found with id: …”.

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/pipelines/3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline retrieved",
  "data": {
    "id": "3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "templateSlug": "sales-crm",
    "name": "Partner deals",
    "description": "Deals that come through resellers",
    "isDefault": false,
    "displayOrder": 1,
    "isActive": true,
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
POST/api/v1/core/pipelines

Create a pipeline

Creates a pipeline that already has stages: a copy of your default pipeline's stages (names, colours, order, probability, idle limit, won/lost). If you have no pipeline yet, it gets the starter stages Lead, Qualified, Proposal, Negotiation, Won and Lost.

Who: Owner or manager

Query parameters

NameTypeWhat it does
organizationIdrequireduuidYour organisation id, from who the key acts as. Another id returns 403 “Access denied: you may only access your own organisation's data”.

JSON body

FieldTypeNotes
namerequiredstringUp to 100 characters.
descriptionstringUp to 255 characters.
templateSlugrequiredstringsales-crm for Sales. Up to 50 characters. Can't be changed later.
isDefaultbooleantrue makes it the default pipeline; the old default stops being one. Your first pipeline is always the default.
displayOrderintegerPosition among your pipelines (lower comes first). Leave it out and it gets the number of pipelines you already have, so it goes last.
  • Only one pipeline is the default at a time. Sending isDefault: true moves the default to the new pipeline.
  • templateSlug isn't checked against a list: send exactly sales-crm, or the pipeline won't appear among your Sales pipelines.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/core/pipelines?organizationId=8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Partner deals",
    "description": "Deals that come through resellers",
    "templateSlug": "sales-crm"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline created",
  "data": {
    "id": "3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "templateSlug": "sales-crm",
    "name": "Partner deals",
    "description": "Deals that come through resellers",
    "isDefault": false,
    "displayOrder": 1,
    "isActive": true,
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
PUT/api/v1/core/pipelines/{id}

Update a pipeline

Send only the fields you want to change. Left-out fields keep their value.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 100 characters.
descriptionstringUp to 255 characters.
displayOrderintegerPosition among your pipelines (lower comes first).
isActivebooleanfalse marks the pipeline inactive.
isDefaultbooleantrue makes it the default pipeline. false is ignored — to change the default, make another pipeline the default.
  • There is no expectedVersion here: the last save wins.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/pipelines/3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Reseller deals",
    "displayOrder": 2
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline updated",
  "data": {
    "id": "3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "templateSlug": "sales-crm",
    "name": "Reseller deals",
    "description": "Deals that come through resellers",
    "isDefault": false,
    "displayOrder": 2,
    "isActive": true,
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 1
  }
}
PUT/api/v1/core/pipelines/{id}/default

Make a pipeline the default

Makes this pipeline the default for its module; the previous default stops being one. No body.

Who: Owner or manager

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/pipelines/3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c/default" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Default pipeline set",
  "data": {
    "id": "3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "templateSlug": "sales-crm",
    "name": "Partner deals",
    "description": "Deals that come through resellers",
    "isDefault": true,
    "displayOrder": 1,
    "isActive": true,
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 1
  }
}
DELETE/api/v1/core/pipelines/{id}

Delete a pipeline

Removes the pipeline and all its stages. If it was the default, the next pipeline (lowest displayOrder) becomes the default.

Who: Owner or manager
  • Refused with 400 when it is your only pipeline: “Cannot delete the only pipeline for this module.”
  • Refused with 400 while any deal (any status, any owner) is in it: “Cannot delete a pipeline that still has 3 deal(s). Move or remove those deals first.”
  • Refused with 400 while one of its stages has an automation or approval gate switched on, e.g. “Stage "Proposal" is used by an approval gate. Remove those first.” Switched-off automations and gates are removed with the stages.

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/core/pipelines/3f9a7c21-8b4d-4e6f-a1c3-5d7e9f0b2a4c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline deleted"
}
GET/api/v1/core/pipeline-stages/{id}

Get a stage

One stage by id. A deleted stage returns 404 “Pipeline stage not found with id: …”.

Who: Any member
  • Unlike the stage list, this answer has no automationCount or approvalGateEnabled.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/pipeline-stages/7c1e5a9b-3d2f-4a6e-b8c0-9e1f2d3c4b5a" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline stage retrieved",
  "data": {
    "id": "7c1e5a9b-3d2f-4a6e-b8c0-9e1f2d3c4b5a",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "pipelineKey": "sales-crm_pipeline",
    "stageName": "Demo booked",
    "stageColor": "#22aa66",
    "displayOrder": 3,
    "probability": 35,
    "idleAfterDays": 14,
    "isClosedWon": false,
    "isClosedLost": false,
    "templateSlug": "sales-crm",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
POST/api/v1/core/pipeline-stages

Add a stage

Adds one stage to a pipeline.

Who: Owner or manager

Query parameters

NameTypeWhat it does
organizationIdrequireduuidYour organisation id. Another id returns 403.

JSON body

FieldTypeNotes
pipelineIduuidThe pipeline the stage belongs to — one of your pipelines (400 “Pipeline not found in your organisation.” otherwise). Always send it: a stage without one belongs to no pipeline.
pipelineKeyrequiredstringUp to 100 characters. An internal key; the built-in Sales stages use sales-crm_pipeline.
stageNamerequiredstringUp to 100 characters.
stageColorstringA hex colour such as #22aa66 (up to 7 characters).
displayOrderrequiredintegerPosition in the pipeline (lower comes first). Other stages are not renumbered.
probabilityinteger0–100. New deals in this stage take it when they don't send their own.
idleAfterDaysinteger1–365. Days with no activity or edit before a deal here counts as idle. Leave it out for the default (30).
isClosedWonbooleantrue for a won stage. Send true or false.
isClosedLostbooleantrue for a lost stage. Send true or false.
templateSlugrequiredstringsales-crm. Up to 50 characters.
  • Errors (400): “Probability must be between 0 and 100.”, “Idle after must be between 1 and 365 days.”, “Pipeline not found in your organisation.”. A missing required field returns 400 “Validation failed” with the field in data, e.g. {"stageName": "Stage name is required"}.
  • To put the new stage between others, send its displayOrder and then reorder the pipeline.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/core/pipeline-stages?organizationId=8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "pipelineKey": "sales-crm_pipeline",
    "stageName": "Demo booked",
    "stageColor": "#22aa66",
    "displayOrder": 3,
    "probability": 35,
    "idleAfterDays": 14,
    "isClosedWon": false,
    "isClosedLost": false,
    "templateSlug": "sales-crm"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline stage created",
  "data": {
    "id": "7c1e5a9b-3d2f-4a6e-b8c0-9e1f2d3c4b5a",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "pipelineKey": "sales-crm_pipeline",
    "stageName": "Demo booked",
    "stageColor": "#22aa66",
    "displayOrder": 3,
    "probability": 35,
    "idleAfterDays": 14,
    "isClosedWon": false,
    "isClosedLost": false,
    "templateSlug": "sales-crm",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 0
  }
}
PUT/api/v1/core/pipeline-stages/{id}

Update a stage

Send only the fields you want to change. Left-out fields keep their value.

Who: Owner or manager

JSON body

FieldTypeNotes
stageNamestringUp to 100 characters.
stageColorstringHex colour, up to 7 characters.
displayOrderintegerPosition in the pipeline (lower comes first).
probabilityinteger0–100.
idleAfterDaysinteger1–365, or 0 to go back to the default (30).
isClosedWonbooleanChanging it is refused while the stage has an automation or approval gate switched on.
isClosedLostbooleanSame rule as isClosedWon.
pipelineIduuidMoves the stage to another of your pipelines. Refused while the stage has an automation or approval gate switched on.
pipelineKeystringUp to 100 characters.
templateSlugstringUp to 50 characters. Keep sales-crm.
  • Locked stages. While an automation or an approval gate is switched on for the stage, moving it to another pipeline or changing its won/lost setting returns 400, e.g. “Cannot change its won/lost setting: used by an approval gate. Remove those first.” or “Cannot move this stage: used by 1 automation(s). Remove those first.” Renaming, colour, probability and order are always allowed. Sending the current won/lost value back unchanged is fine.
  • Same range errors as on create: “Probability must be between 0 and 100.”, “Idle after must be between 1 and 365 days.”

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/pipeline-stages/7c1e5a9b-3d2f-4a6e-b8c0-9e1f2d3c4b5a" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "stageName": "Demo held",
    "probability": 40
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline stage updated",
  "data": {
    "id": "7c1e5a9b-3d2f-4a6e-b8c0-9e1f2d3c4b5a",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "pipelineKey": "sales-crm_pipeline",
    "stageName": "Demo held",
    "stageColor": "#22aa66",
    "displayOrder": 3,
    "probability": 40,
    "idleAfterDays": 14,
    "isClosedWon": false,
    "isClosedLost": false,
    "templateSlug": "sales-crm",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "entityVersion": 1
  }
}
DELETE/api/v1/core/pipeline-stages/{id}

Delete a stage

Removes the stage.

Who: Owner or manager
  • Refused with 400 while the stage has an automation or approval gate switched on: “Cannot delete this stage: used by an approval gate. Remove those first.”
  • Refused with 400 while any deal (any status, any owner) is in it: “This stage still has 2 deal(s). Move them to another stage first.”
  • Switched-off automations and approval gates of the stage are removed with it.

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/core/pipeline-stages/7c1e5a9b-3d2f-4a6e-b8c0-9e1f2d3c4b5a" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline stage deleted"
}
PUT/api/v1/core/pipeline-stages/reorder

Reorder stages

Send the pipeline's stage ids as a JSON array, in the order you want. Each listed stage gets its position in the list as its displayOrder (starting at 0).

Who: Owner or manager

Query parameters

NameTypeWhat it does
pipelineIduuidThe pipeline whose stages you're ordering. Send it.
  • Body: a JSON array of stage ids, up to 500. More than 500 ids (or a body of null) returns 400 “Reorder list must be 1-500 items”; no body at all returns 400 “Malformed request body”.
  • Stages you leave out of the list keep their displayOrder; ids that aren't stages of the pipeline are ignored.
  • Without pipelineId, the call orders by organizationId + templateSlug query parameters across all of the module's stages instead; with none of the three, nothing changes.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/pipeline-stages/reorder?pipelineId=1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "14d799e7-0000-4b44-9610-dd9206f0028e",
    "7c1e5a9b-3d2f-4a6e-b8c0-9e1f2d3c4b5a"
  ]'

Response 200

{
  "status": "SUCCESS",
  "message": "Pipeline stages reordered"
}
GET/api/v1/core/pipeline-stages/{stageId}/approval-config

Get a stage's approval gate

Whether moving a deal into this stage needs approval, and who decides. A stage that never had a gate saved returns isEnabled: false, decisionMode: any, an empty approverIds and no id.

Who: Any member
  • This call doesn't check that the stage exists: an unknown stageId also returns the empty default.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/pipeline-stages/66f3bc09-0000-4156-bb00-dd1f2ca60e97/approval-config" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Approval config retrieved",
  "data": {
    "id": "b4d6f8a0-2c4e-4f6a-8b0c-1d3e5f7a9b2c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "isEnabled": true,
    "decisionMode": "all",
    "approverIds": [
      "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "d2e4f6a8-0b1c-4d3e-9f5a-6b7c8d9e0f1a"
    ],
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/core/pipeline-stages/{stageId}/approval-config

Set a stage's approval gate

Creates or changes the stage's approval gate. Send only the fields you want to change; left-out fields keep their value.

Who: Owner only

JSON body

FieldTypeNotes
isEnabledbooleantrue turns the gate on, false off. On a stage that has never had a gate saved, leaving it out means true.
decisionModestringany (default): the first approver's decision settles it. all: every named approver must approve; one rejection ends it.
approverIdsuuid[]Team members' userIds. Each must be a member of your organisation. Duplicates are dropped. Empty list: any owner or manager can decide (and decisionMode is treated as any).
  • Turning a gate on needs the Growth plan or higher: 403 “Approval gates: available from the Growth plan. Change your plan in Settings → Billing to use it.” Turning one off always works.
  • Errors (400): “stageId does not reference an existing pipeline stage”, “approverIds must reference members of this organisation (<id> is not one).”, and “Validation failed” with {"decisionMode": "decisionMode must be 'any' or 'all'"}.
  • While a gate is on, the stage can't be deleted, moved to another pipeline or have its won/lost setting changed.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/pipeline-stages/66f3bc09-0000-4156-bb00-dd1f2ca60e97/approval-config" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "isEnabled": true,
    "decisionMode": "all",
    "approverIds": [
      "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "d2e4f6a8-0b1c-4d3e-9f5a-6b7c8d9e0f1a"
    ]
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Approval config saved",
  "data": {
    "id": "b4d6f8a0-2c4e-4f6a-8b0c-1d3e5f7a9b2c",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "isEnabled": true,
    "decisionMode": "all",
    "approverIds": [
      "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "d2e4f6a8-0b1c-4d3e-9f5a-6b7c8d9e0f1a"
    ],
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
GET/api/v1/sales/board-settings

Get the deal card fields

Which fields the cards on the deal board show (the deal title always shows). One setting for your whole organisation.

Who: Any member
  • Until a manager chooses, you get the defaults with isDefault: true and no entityVersion: value, contact, closeDate, owner, daysInStage, labels, probability.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/board-settings" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Board settings retrieved",
  "data": {
    "cardFields": [
      "value",
      "contact",
      "closeDate",
      "owner",
      "daysInStage",
      "labels",
      "probability"
    ],
    "isDefault": true
  }
}
PUT/api/v1/sales/board-settings

Choose the deal card fields

Replaces the list of fields deal cards show, for everyone in your organisation.

Who: Owner or manager

JSON body

FieldTypeNotes
cardFieldsrequiredstring[]Up to 20 values from: value, contact, closeDate, owner, daysInStage, labels, probability, nextStep, lastActivity. Duplicates are dropped and the list is saved in that fixed order. [] shows the title only.
expectedVersionintegerThe entityVersion you last read. If someone saved since, you get 409. Leave it out for last-write-wins.
expectNoSettingsbooleanSend true when you started from the defaults (isDefault: true): if another manager saved settings meanwhile, you get 409.
  • An unknown value returns 400 “Unknown card field: dealValue”. A missing cardFields returns 400 “Validation failed”.
  • 409 conflicts: a stale expectedVersion gives “Someone else changed the card fields since you opened them. Reload and try again.”; expectNoSettings: true when settings already exist gives “Someone else chose the card fields since you opened them. Reload and try again.”

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/board-settings" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cardFields": [
      "value",
      "owner",
      "nextStep",
      "lastActivity"
    ],
    "expectNoSettings": true
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Board settings saved",
  "data": {
    "cardFields": [
      "value",
      "owner",
      "nextStep",
      "lastActivity"
    ],
    "isDefault": false,
    "entityVersion": 0
  }
}
19

Sales targets

Revenue and deal targets for people and teams.

GET/api/v1/sales/targets

List targets

Your targets, newest first. Paged.

Who: Any memberPaged — see lists

Query parameters

NameTypeWhat it does
periodstringExact period, e.g. 2026-Q4.
targetTypestringrevenue, deals or leads.
pageintegerPage number, starting at 0. Default 0.
sizeintegerRows per page, 1–100. Default 20. Larger values are cut to 100.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/targets" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Targets retrieved",
  "data": {
    "content": [
      {
        "id": "e9f1a3b5-7c9d-4e1f-a3b5-c7d9e1f3a5b7",
        "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
        "period": "2026-Q4",
        "targetType": "revenue",
        "targetValue": 150000,
        "achievedValue": 0,
        "currency": "EUR",
        "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "createdAt": "2026-11-07T23:29:11.057166Z",
        "updatedAt": "2026-11-07T23:29:11.057166Z"
      }
    ],
    "totalElements": 1,
    "totalPages": 1,
    "number": 0,
    "size": 20,
    "numberOfElements": 1,
    "first": true,
    "last": true,
    "empty": false
  }
}
GET/api/v1/sales/targets/{id}

Get a target

One target by id. A deleted target returns 404 “Sales Target not found with id: …”.

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/targets/e9f1a3b5-7c9d-4e1f-a3b5-c7d9e1f3a5b7" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Target retrieved",
  "data": {
    "id": "e9f1a3b5-7c9d-4e1f-a3b5-c7d9e1f3a5b7",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "period": "2026-Q4",
    "targetType": "revenue",
    "targetValue": 150000,
    "achievedValue": 0,
    "currency": "EUR",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
POST/api/v1/sales/targets

Create a target

Sets a revenue, deal or lead goal for one period, for one person or the whole team.

Who: Owner or manager

JSON body

FieldTypeNotes
periodrequiredstringA year (2026), a quarter (2026-Q2) or a month (2026-06). Up to 20 characters.
targetTyperequiredstringrevenue (sum of won deal values), deals (number of won deals) or leads (number of new lead contacts).
targetValuerequirednumber0 or more.
achievedValuenumber0 or more. Default 0. Not used for progress — see the notes.
currencystringUp to 3 characters, e.g. EUR. For revenue targets: only won deals in this currency count. Leave it out to use your organisation's currency.
assignedTouuidA team member's userId (400 “assignedTo must be a member of your organisation.” otherwise). Leave it out for a team target that counts everyone's deals.
  • Needs the Growth plan or higher: 403 “Targets: available from the Growth plan. Change your plan in Settings → Billing to use it.”
  • Errors (400): “period must be a year (2026), a quarter (2026-Q2) or a month (2026-06)”, “targetValue cannot be negative”, “achievedValue cannot be negative”. A targetType outside the three values returns 400 “One of the submitted values isn't allowed for that field. Please review the values and try again.”
  • Progress is computed, not stored. achievedValue is just a saved number; the real progress comes from won deals (and new leads) in the period. Won deals count on their won date, in your organisation's time zone.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/targets" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "period": "2026-Q4",
    "targetType": "revenue",
    "targetValue": 150000,
    "currency": "EUR",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Target created",
  "data": {
    "id": "e9f1a3b5-7c9d-4e1f-a3b5-c7d9e1f3a5b7",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "period": "2026-Q4",
    "targetType": "revenue",
    "targetValue": 150000,
    "achievedValue": 0,
    "currency": "EUR",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/targets/{id}

Update a target

Send only the fields you want to change. Left-out fields keep their value.

Who: Owner or manager

JSON body

FieldTypeNotes
periodstringA year, quarter or month, as on create.
targetTypestringrevenue, deals or leads.
targetValuenumber0 or more.
achievedValuenumber0 or more.
currencystringUp to 3 characters. Can be changed but not cleared.
assignedTouuidA team member's userId. Can be changed but not cleared.
  • Same checks as on create for period, the values, targetType and assignedTo.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/targets/e9f1a3b5-7c9d-4e1f-a3b5-c7d9e1f3a5b7" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "targetValue": 180000
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Target updated",
  "data": {
    "id": "e9f1a3b5-7c9d-4e1f-a3b5-c7d9e1f3a5b7",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "period": "2026-Q4",
    "targetType": "revenue",
    "targetValue": 180000,
    "achievedValue": 0,
    "currency": "EUR",
    "assignedTo": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z",
    "updatedBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d"
  }
}
DELETE/api/v1/sales/targets/{id}

Delete a target

Removes the target. It no longer appears in lists and returns 404.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/targets/e9f1a3b5-7c9d-4e1f-a3b5-c7d9e1f3a5b7" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Target deleted"
}
20

Custom fields, labels and lists

Your own fields, colour labels, and the lead source and industry lists.

POST/api/v1/core/custom-fields

Create a custom field

Adds your own field to contacts, deals or accounts. Records then store its value in customFields under the fieldKey.

Who: Owner or manager

JSON body

FieldTypeNotes
templateSlugrequiredstringsales-crm. Can't be changed later.
entityTyperequiredstringcontact, deal or account. Can't be changed later.
fieldKeyrequiredstringThe key you write values under in customFields. Lowercase, starts with a letter, then only a-z, 0-9 and _; up to 60 characters. Unique per templateSlug + entityType. Can't be changed later.
labelrequiredstringThe name people see. Up to 150 characters.
dataTyperequiredstringtext, number, date, boolean, select or multiselect. Can't be changed later.
optionsstring[]The choices, as plain strings. Required (at least one) for select and multiselect.
requiredbooleanDefault false. When true, a save that sends customFields must include a value for this field.
displayOrderintegerPosition in forms; lower comes first. Default 0.
  • How to send values in a record's customFields: text → a string; number → a JSON number (not a string); boolean → true/false; date → a YYYY-MM-DD string; select → one string from options; multiselect → an array of strings from options, e.g. {"plan_tier": "Pro", "regions": ["EU", "US"]}.
  • Option strings must match exactly (case included).
  • A key already used by another field of the same entity type: 400 “A field with key 'plan_tier' already exists here”.
  • A bad key: 400 “fieldKey must be lowercase, start with a letter, and use only a-z 0-9 _”. The keys html, sku, code, password, otp, token and secret are reserved: 400 “fieldKey 'code' is reserved — choose another key”.
  • A select/multiselect field without options: 400 “options are required for a select / multiselect field”.
  • An unknown entityType or dataType: 400, e.g. “dataType must be one of [text, number, date, boolean, select, multiselect]”.
  • required only applies when a save sends customFields. A record created without customFields at all is never refused.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/core/custom-fields" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateSlug": "sales-crm",
    "entityType": "contact",
    "fieldKey": "plan_tier",
    "label": "Plan tier",
    "dataType": "select",
    "options": [
      "Basic",
      "Pro",
      "Enterprise"
    ],
    "displayOrder": 1
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Custom field created",
  "data": {
    "id": "7b1e4c2a-9d3f-4e6b-a5c8-1f2e3d4c5b6a",
    "templateSlug": "sales-crm",
    "entityType": "contact",
    "fieldKey": "plan_tier",
    "label": "Plan tier",
    "dataType": "select",
    "options": [
      "Basic",
      "Pro",
      "Enterprise"
    ],
    "required": false,
    "displayOrder": 1,
    "isActive": true,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/core/custom-fields/{id}

Update a custom field

Send only what changes. fieldKey, dataType, entityType and templateSlug can't be changed.

Who: Owner or manager

JSON body

FieldTypeNotes
labelstringUp to 150 characters.
optionsstring[]Replaces the whole list. A select/multiselect field can't be left with none.
requiredboolean
displayOrderintegerLower comes first. This is how you reorder fields.
isActivebooleanfalse switches the field off: it is hidden, but values already stored are kept.
  • Removing an option doesn't touch records that already hold it: they keep the value and can still be saved. Only a newly chosen value must be one of today's options.
  • Switching a field off (isActive: false) hides it; its values are kept on every record and come back when you switch it on again. Write values only for active fields — on create, an inactive or unknown key is refused with 400 “Unknown custom field: plan_tier”.
  • Unknown id: 404 “Custom field not found: {id}”.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/custom-fields/7b1e4c2a-9d3f-4e6b-a5c8-1f2e3d4c5b6a" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "options": [
      "Basic",
      "Pro",
      "Enterprise",
      "Partner"
    ],
    "required": true
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Custom field updated",
  "data": {
    "id": "7b1e4c2a-9d3f-4e6b-a5c8-1f2e3d4c5b6a",
    "templateSlug": "sales-crm",
    "entityType": "contact",
    "fieldKey": "plan_tier",
    "label": "Plan tier",
    "dataType": "select",
    "options": [
      "Basic",
      "Pro",
      "Enterprise",
      "Partner"
    ],
    "required": true,
    "displayOrder": 1,
    "isActive": true,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
DELETE/api/v1/core/custom-fields/{id}

Delete a custom field

Removes the field definition. Its key can then be used again.

Who: Owner or manager
  • Values already stored on records are not erased: they stay in each record's customFields under the old key. A new field created later with the same key and entity type picks them up again.
  • Check field usage and lists and views using a field first to see what it affects.
  • Unknown id: 404 “Custom field not found: {id}”.

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/core/custom-fields/7b1e4c2a-9d3f-4e6b-a5c8-1f2e3d4c5b6a" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Custom field deleted"
}
GET/api/v1/core/custom-fields/usage

Records using each custom field

How many records carry a value under each key. Keys with no records are left out.

Who: Owner or manager

Query parameters

NameTypeWhat it does
templateSlugrequiredstringsales-crm
entityTyperequiredstringcontact, deal or account.
  • Counts every key found on the records, including keys of switched-off or deleted fields. Deleted records aren't counted.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/custom-fields/usage?templateSlug=sales-crm&entityType=contact" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Custom-field usage",
  "data": {
    "plan_tier": 12,
    "contract_end": 3
  }
}
GET/api/v1/core/custom-fields/filter-usage

Lists and views using each custom field

How many contact lists and saved contact views filter on each custom field. Only fields used at least once are returned.

Who: Owner or manager

Query parameters

NameTypeWhat it does
templateSlugrequiredstringsales-crm
entityTyperequiredstringcontact, deal or account. Only contact returns data; the others always return {}.
  • Use it before deleting or switching off a field, or removing one of its options: those lists and views will need attention.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/core/custom-fields/filter-usage?templateSlug=sales-crm&entityType=contact" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Custom-field filter usage",
  "data": {
    "plan_tier": {
      "lists": 2,
      "views": 1
    }
  }
}
POST/api/v1/core/labels

Create a label

Adds a label to your organisation's list. Put it on records with set the labels on a record.

Who: Owner or manager

JSON body

FieldTypeNotes
namerequiredstringUp to 60 characters. Spaces around it are trimmed. Unique in your organisation, ignoring case.
colorstringUp to 20 characters, e.g. #f59e0b. Not checked for format.
descriptionstringUp to 255 characters.
displayOrderintegerLower comes first. Default 0.
isActivebooleanDefault true. false archives the label (left out of activeOnly=true lists).
  • A name already used (ignoring case): 400 “A label named 'Trade fair 2026' already exists”.
  • A blank name: 400 “Validation failed”.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/core/labels" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Trade fair 2026",
    "color": "#10b981",
    "description": "Met at the November fair",
    "displayOrder": 1
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Label created",
  "data": {
    "id": "b4a3c2d1-e0f9-4a8b-9c7d-6e5f4a3b2c1d",
    "name": "Trade fair 2026",
    "color": "#10b981",
    "description": "Met at the November fair",
    "displayOrder": 1,
    "isActive": true,
    "createdAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/core/labels/{id}

Update a label

Rename, recolour, describe, reorder or archive a label. Send only what changes.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 60 characters. Unique in your organisation, ignoring case.
colorstringUp to 20 characters.
descriptionstringUp to 255 characters.
displayOrderintegerLower comes first.
isActivebooleanfalse archives the label; true restores it. Records keep it either way.
  • color and description can be changed but not cleared: "" is ignored.
  • A blank name: 400 “Label name is required”. A name another label has: 400 “A label named '…' already exists”.
  • Unknown id: 404 “Label not found: {id}”.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/core/labels/b4a3c2d1-e0f9-4a8b-9c7d-6e5f4a3b2c1d" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "color": "#0ea5e9",
    "isActive": false
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Label updated",
  "data": {
    "id": "b4a3c2d1-e0f9-4a8b-9c7d-6e5f4a3b2c1d",
    "name": "Trade fair 2026",
    "color": "#0ea5e9",
    "description": "Met at the November fair",
    "displayOrder": 1,
    "isActive": false,
    "createdAt": "2026-11-07T23:29:11.057166Z"
  }
}
DELETE/api/v1/core/labels/{id}

Delete a label

Deletes the label and removes it from every record it was on. Its name can be used again. To keep it on records but stop offering it, archive it instead (isActive: false).

Who: Owner or manager
  • Unknown id: 404 “Label not found: {id}”.

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/core/labels/b4a3c2d1-e0f9-4a8b-9c7d-6e5f4a3b2c1d" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Label deleted"
}
POST/api/v1/sales/contact-field-options

Add a lead source or industry

Adds a choice to one of the lists. The server makes its value from the name, and that value is what contacts store.

Who: Owner only

JSON body

FieldTypeNotes
fieldrequiredstringlead_source or industry.
labelrequiredstringThe name people see. 1–100 characters after trimming spaces.
  • The value is the name in lowercase, without accents, with _ between words (“Trade fair” → trade_fair). If that value is taken, _2, _3… is added. A name with no Latin letters or digits gets opt_ plus 10 hex characters.
  • Adding the name of an archived choice (ignoring case) restores that choice instead of making a new one.
  • A name an active choice already has: 400 “"Trade fair" is already one of the lead source options.” (or “…industry options.”).
  • Errors: 400 “A name is required.”, “Keep the name to 100 characters.”, “Unknown contact field: {field}”.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/contact-field-options" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "field": "lead_source",
    "label": "Trade fair"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Option added",
  "data": {
    "id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
    "value": "trade_fair",
    "label": "Trade fair",
    "position": 11,
    "archived": false,
    "origin": "user"
  }
}
PUT/api/v1/sales/contact-field-options/{id}

Rename or archive a lead source or industry

Send label, archived or both. Left-out fields don't change.

Who: Owner only

JSON body

FieldTypeNotes
labelstringNew name, 1–100 characters. The stored value never changes, so no contact is touched.
archivedbooleantrue archives the choice, false restores it.
  • Contacts that already have an archived choice keep it. New saves can't pick it: a contact create or update sending it gets 400, and bulk push / imports drop it.
  • A name another choice of the same list has (ignoring case): 400 “"Trade fair" is already one of the options.”
  • Unknown id: 404 “Option not found”.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/contact-field-options/5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "archived": true
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Option updated",
  "data": {
    "id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
    "value": "trade_fair",
    "label": "Trade fair",
    "position": 11,
    "archived": true,
    "origin": "user"
  }
}
PUT/api/v1/sales/contact-field-options/order

Reorder a lead source or industry list

Puts the listed choices first, in the order sent (positions 0, 1, 2…). Choices you leave out follow, in their current order. Returns the whole list, archived choices included.

Who: Owner only

JSON body

FieldTypeNotes
fieldrequiredstringlead_source or industry.
idsrequireduuid[]Choice ids of that list, in the new order.
  • An id that isn't a choice of that list: 400 “The order must list this field's options only.”
  • There is no delete call: archive a choice instead.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/contact-field-options/order" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "field": "lead_source",
    "ids": [
      "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
      "8f9e0d1c-2b3a-4c5d-8e6f-7a8b9c0d1e2f"
    ]
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Order saved",
  "data": [
    {
      "id": "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
      "value": "trade_fair",
      "label": "Trade fair",
      "position": 0,
      "archived": false,
      "origin": "user"
    },
    {
      "id": "8f9e0d1c-2b3a-4c5d-8e6f-7a8b9c0d1e2f",
      "value": "website",
      "label": "Website",
      "position": 1,
      "archived": false,
      "origin": "default"
    }
  ]
}
21

Lead routing

Rules that choose who owns a new lead.

GET/api/v1/sales/assignment-rules

List lead routing rules

All rules, in the order they run (lowest priority first, then oldest). Not paged.

Who: Any member
  • assignedCount is how many contacts the rule has assigned; lastAssignedAt is missing until it first fires.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/assignment-rules" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Assignment rules retrieved",
  "data": [
    {
      "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
      "name": "DACH leads",
      "matchField": "country",
      "matchOperator": "equals",
      "matchValue": "DE",
      "strategy": "round_robin",
      "poolUserIds": [
        "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
      ],
      "priority": 0,
      "isActive": true,
      "assignedCount": 0,
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    },
    {
      "id": "d9e8f7a6-b5c4-4d3e-8f2a-1b0c9d8e7f6a",
      "name": "Everyone else",
      "strategy": "direct",
      "assignedUserId": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "priority": 1,
      "isActive": true,
      "assignedCount": 42,
      "lastAssignedAt": "2026-11-07T23:29:11.057166Z",
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
POST/api/v1/sales/assignment-rules

Create a lead routing rule

When a contact is created without assignedTo, active rules run in order and the first one that matches and has someone available sets the owner. If none does, the contact stays unassigned.

Who: Owner or manager

JSON body

FieldTypeNotes
namerequiredstringUp to 150 characters.
matchFieldstringThe contact field the rule checks. Leave it out (or send "") for a catch-all rule that matches every contact. One of leadSource, industry, contactType, status, jobTitle, companyName, country, state, city, department, estimatedDealValue, leadScore, or custom.<fieldKey> for a custom field. Up to 80 characters.
matchOperatorstringRequired when matchField is set. equals, contains, is_set, greater_than or less_than.
matchValuestringUp to 500 characters. Required for every operator except is_set. Must be a number for greater_than / less_than.
strategyrequiredstringdirect (always the same person) or round_robin (takes turns through a pool).
assignedUserIduuidRequired for direct. A team member's userId.
poolUserIdsuuid[]Required (at least one) for round_robin. Team members' userIds.
priorityintegerLower runs first. Default 0. Rules with the same priority run oldest first.
isActivebooleanDefault true. Inactive rules never route.
  • Matching. equals ignores case, and compares numbers as numbers (50000 equals 50000.00). contains ignores case. is_set means the field has any value. country compares as the 2-letter code (a name like “Germany” works too); with contains it reads the English name. leadSource and industry accept the value or the label; with contains they read the label.
  • Who can receive leads. Every person in assignedUserId / poolUserIds must be an active or invited member with Sales access (owners always have it), and not a client login. Otherwise 400 “Assignee {userId} is not a member of your organisation” or “Assignee {userId} is … and cannot receive leads”.
  • If a person later loses access, the rule skips them: a pool takes turns among those still eligible, and a direct rule passes the contact on to the next rule.
  • Plan. Lead routing needs the Growth plan or higher. Otherwise create, update, reorder and apply return 403 “Lead routing: available from the Growth plan. Change your plan in Settings → Billing to use it.”, and existing rules don't assign anyone.
  • Other 400s: “assignedUserId is required for a direct rule”, “poolUserIds must be non-empty for a round-robin rule”, “matchOperator is required when matchField is set”, “matchValue is required for the 'equals' operator”, “The 'greater_than' operator needs a numeric matchValue”, “Unsupported match field: {field} (use a standard contact field, leadScore, or custom.<key>)”.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/assignment-rules" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "DACH leads",
    "matchField": "country",
    "matchOperator": "equals",
    "matchValue": "DE",
    "strategy": "round_robin",
    "poolUserIds": [
      "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
    ],
    "priority": 0
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Assignment rule created",
  "data": {
    "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
    "name": "DACH leads",
    "matchField": "country",
    "matchOperator": "equals",
    "matchValue": "DE",
    "strategy": "round_robin",
    "poolUserIds": [
      "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
    ],
    "priority": 0,
    "isActive": true,
    "assignedCount": 0,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/assignment-rules/{id}

Update a lead routing rule

Send only what changes.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 150 characters. Can't be blank.
matchFieldstringSend "" to turn the rule into a catch-all (this also clears matchOperator and matchValue). Same values as on create.
matchOperatorstringRequired when matchField is set. equals, contains, is_set, greater_than or less_than.
matchValuestringUp to 500 characters. Required for every operator except is_set. Must be a number for greater_than / less_than.
strategystringdirect or round_robin.
assignedUserIduuidRequired for direct. A team member's userId.
poolUserIdsuuid[]Replaces the whole pool. Can't be empty for a round_robin rule.
priorityintegerLower runs first. To reorder many rules at once, use reorder rules.
isActiveboolean
  • Membership is checked only for people this call adds. People already on the rule stay even if they have since lost access (the rule just skips them when routing).
  • Setting matchOperator to is_set clears matchValue.
  • Blank name: 400 “name must not be blank”. Blank strategy: 400 “strategy must be one of: direct, round_robin”.
  • Unknown id: 404 “Assignment rule not found: {id}”.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/assignment-rules/c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "poolUserIds": [
      "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d"
    ],
    "isActive": true
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Assignment rule updated",
  "data": {
    "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
    "name": "DACH leads",
    "matchField": "country",
    "matchOperator": "equals",
    "matchValue": "DE",
    "strategy": "round_robin",
    "poolUserIds": [
      "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d"
    ],
    "priority": 0,
    "isActive": true,
    "assignedCount": 0,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/assignment-rules/reorder

Reorder lead routing rules

Sets the run order in one go: the rules get priority 0, 1, 2… in the order sent. Returns the rules in their new order.

Who: Owner or manager

JSON body

FieldTypeNotes
orderedRuleIdsrequireduuid[]Every rule id of your organisation, each exactly once.
  • A missing, extra or repeated id: 400 “orderedRuleIds must list every rule of this organization exactly once”.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/assignment-rules/reorder" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "orderedRuleIds": [
      "d9e8f7a6-b5c4-4d3e-8f2a-1b0c9d8e7f6a",
      "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f"
    ]
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Rules reordered",
  "data": [
    {
      "id": "d9e8f7a6-b5c4-4d3e-8f2a-1b0c9d8e7f6a",
      "name": "Everyone else",
      "strategy": "direct",
      "assignedUserId": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "priority": 0,
      "isActive": true,
      "assignedCount": 42,
      "lastAssignedAt": "2026-11-07T23:29:11.057166Z",
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    },
    {
      "id": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
      "name": "DACH leads",
      "matchField": "country",
      "matchOperator": "equals",
      "matchValue": "DE",
      "strategy": "round_robin",
      "poolUserIds": [
        "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
        "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b"
      ],
      "priority": 1,
      "isActive": true,
      "assignedCount": 0,
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
DELETE/api/v1/sales/assignment-rules/{id}

Delete a lead routing rule

Contacts it already assigned keep their owner.

Who: Owner or manager
  • Unknown id: 404 “Assignment rule not found: {id}”.

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/assignment-rules/c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Assignment rule deleted"
}
POST/api/v1/sales/assignment-rules/apply

Route unassigned contacts now

Runs the active rules over every contact that has no owner yet. Contacts with an owner are never changed. No request body.

Who: Owner or manager
  • The message says what happened: “Assigned {assigned} of {scanned} unassigned contact(s)”. scanned counts every unassigned contact looked at; those no rule could place stay unassigned.
  • Pools take turns exactly as for new leads. Each person who received contacts gets one in-app notification.
  • Your role must also be allowed to edit contacts: otherwise 403 “Your role does not allow you to edit contact records”.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/assignment-rules/apply" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Assigned 3 of 5 unassigned contact(s)",
  "data": {
    "scanned": 5,
    "assigned": 3
  }
}
POST/api/v1/sales/assignment-rules/preview

Preview a rule condition

Counts how many unassigned contacts a condition would match right now. Saves nothing. Use it to catch a typo before saving a rule.

Who: Owner or manager

JSON body

FieldTypeNotes
matchFieldstringAs on create. Leave it out to count a catch-all (matches all).
matchOperatorstringAs on create.
matchValuestringAs on create.
  • Looks at up to 5,000 unassigned contacts, newest first. truncated: true means there were more, and the counts describe only those 5,000.
  • The condition is checked like on create (same 400 messages). Your role must be allowed to edit contacts (otherwise 403).

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/assignment-rules/preview" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "matchField": "country",
    "matchOperator": "equals",
    "matchValue": "DE"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Rule condition previewed",
  "data": {
    "scanned": 120,
    "matched": 18,
    "truncated": false
  }
}
GET/api/v1/sales/assignment-rules/test/{contactId}

Test routing for a contact

Says which rule would route this contact and to whom. Changes nothing (a pool's turn doesn't move).

Who: Owner or manager
  • matched: false means no active rule would assign anyone; ruleId, ruleName, strategy and assigneeUserId are then missing.
  • alreadyAssigned: true means the contact has an owner, so routing wouldn't actually change it.
  • For a pool, assigneeUserId is whoever's turn it is now.
  • A contact you can't see or that doesn't exist: 404 “Contact not found: {contactId}”. Your role must be allowed to edit contacts (otherwise 403).

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/assignment-rules/test/0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Routing prediction",
  "data": {
    "matched": true,
    "ruleId": "c2d3e4f5-a6b7-4c8d-9e0f-1a2b3c4d5e6f",
    "ruleName": "DACH leads",
    "strategy": "round_robin",
    "assigneeUserId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
    "alreadyAssigned": false
  }
}
22

Lead scoring

Rules that score leads so your team knows who to chase first.

GET/api/v1/sales/lead-scoring/rules

List scoring rules

Your organisation's lead-scoring rules, in displayOrder. Not paged.

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/lead-scoring/rules" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Scoring rules retrieved",
  "data": [
    {
      "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e70",
      "name": "Came from the website",
      "field": "leadSource",
      "operator": "equals",
      "value": "website",
      "points": 20,
      "isActive": true,
      "displayOrder": 0,
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
POST/api/v1/sales/lead-scoring/rules

Create a scoring rule

Adds one rule: “if field operator value, add points”.

Who: Owner or manager

JSON body

FieldTypeNotes
namerequiredstringUp to 150 characters.
fieldrequiredstringWhat the rule looks at, up to 80 characters. A contact field: leadSource, industry, contactType, status, jobTitle, companyName, country, state, city, department or estimatedDealValue. A behaviour signal: behaviour.emailOpens30d, behaviour.emailClicks30d or behaviour.daysSinceLastTouch. Or a custom field: custom. + its fieldKey (lower case, e.g. custom.fleet_size).
operatorrequiredstringequals, not_equals, contains, is_set, greater_than or less_than.
valuestringUp to 500 characters. Needed for every operator except is_set. Must be a number for greater_than and less_than.
pointsrequiredinteger−1000 to 1000. Negative points lower the score.
isActivebooleanDefault true. Only active rules score.
displayOrderintegerPosition in the list. Default 0.
  • How the score is worked out. A contact's score is the sum of the points of every active rule it matches, kept between 0 and 100. It is recalculated when the contact is created or edited and every night. If your organisation has no active rules, the leadScore you send on a contact is kept as it is.
  • Text compares ignore upper/lower case and surrounding spaces. A number field with equals compares as numbers (50000 matches 50000.00). country compares as the ISO code, so Germany and DE mean the same. leadSource and industry accept the list value or its label.
  • equals, not_equals and contains never match a contact whose field is empty.
  • Errors (400): “operator must be one of [equals, not_equals, contains, is_set, greater_than, less_than]”; “Unsupported scoring field: … (use a standard contact field, behaviour.<signal> or custom.<key>)”; “A value is required for the 'equals' operator”; “The 'greater_than' operator needs a numeric value”; “A behaviour signal is always a number — use 'greater than' (e.g. greater than 0) instead of 'is set'”.
  • Saving a rule does not re-score existing contacts. Call re-score all contacts afterwards.
  • Plan. Lead scoring is part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Lead scoring: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/lead-scoring/rules" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Came from the website",
    "field": "leadSource",
    "operator": "equals",
    "value": "website",
    "points": 20
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Scoring rule created",
  "data": {
    "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e70",
    "name": "Came from the website",
    "field": "leadSource",
    "operator": "equals",
    "value": "website",
    "points": 20,
    "isActive": true,
    "displayOrder": 0,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/lead-scoring/rules/{id}

Update a scoring rule

Send only the fields you want to change. Left-out fields keep their value.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 150 characters.
fieldstringWhat the rule looks at, up to 80 characters. A contact field: leadSource, industry, contactType, status, jobTitle, companyName, country, state, city, department or estimatedDealValue. A behaviour signal: behaviour.emailOpens30d, behaviour.emailClicks30d or behaviour.daysSinceLastTouch. Or a custom field: custom. + its fieldKey (lower case, e.g. custom.fleet_size).
operatorstringequals, not_equals, contains, is_set, greater_than or less_than.
valuestringUp to 500 characters. Needed for every operator except is_set. Must be a number for greater_than and less_than.
pointsinteger−1000 to 1000. Negative points lower the score.
isActivebooleanDefault true. Only active rules score.
displayOrderintegerPosition in the list.
  • A changed condition is checked with the same rules as create. A new points value outside −1000…1000 returns 400 “points must be between -1000 and 1000”.
  • Unknown id: 404 “Scoring rule not found: <id>”.
  • Plan. Lead scoring is part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Lead scoring: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/lead-scoring/rules/3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e70" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "points": 25
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Scoring rule updated",
  "data": {
    "id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e70",
    "name": "Came from the website",
    "field": "leadSource",
    "operator": "equals",
    "value": "website",
    "points": 25,
    "isActive": true,
    "displayOrder": 0,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
DELETE/api/v1/sales/lead-scoring/rules/{id}

Delete a scoring rule

Removes the rule. Existing scores change on the next recalculation.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/lead-scoring/rules/3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e70" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Scoring rule deleted"
}
POST/api/v1/sales/lead-scoring/recalculate

Re-score all contacts

Applies the current active rules to every contact in your organisation now. No body.

Who: Owner or manager
  • scanned = contacts looked at; updated = contacts whose score changed. The message says the same.
  • Needs the key's role to be allowed to edit contacts (403 otherwise).
  • Plan. Lead scoring is part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Lead scoring: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/lead-scoring/recalculate" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Re-scored 12 of 40 contact(s)",
  "data": {
    "scanned": 40,
    "updated": 12
  }
}
GET/api/v1/sales/lead-scoring/breakdown/{contactId}

Why a contact has its score

The score the current rules give this contact, and which rules matched.

Who: Any member
  • activeRuleCount 0 means scoring is off: the contact's stored score is a manual one.
  • This is worked out live; it can differ from the contact's stored leadScore until the next recalculation.
  • Unknown contact: 404 “Contact not found: <id>”.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/lead-scoring/breakdown/0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Score breakdown",
  "data": {
    "score": 20,
    "activeRuleCount": 3,
    "matched": [
      {
        "ruleId": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e70",
        "name": "Came from the website",
        "field": "leadSource",
        "operator": "equals",
        "value": "website",
        "points": 20
      }
    ]
  }
}
GET/api/v1/sales/lead-scoring/automations

List score automations

Actions that run when a contact's score crosses a threshold. Lowest threshold first. Not paged.

Who: Any member
  • firedCount = how many contacts it has acted on; lastFiredAt is missing until it first fires. targetLabel is the sequence name for enroll_sequence.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/lead-scoring/automations" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Automations retrieved",
  "data": [
    {
      "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a71",
      "name": "Hot lead → owner follow-up",
      "threshold": 70,
      "actionType": "create_task",
      "targetValue": "Call this hot lead",
      "isEnabled": true,
      "firedCount": 0
    }
  ]
}
POST/api/v1/sales/lead-scoring/automations

Create a score automation

“When a contact's score reaches threshold, do actionType.” It fires only on an upward crossing (from below to at or above).

Who: Owner or manager

JSON body

FieldTypeNotes
namerequiredstringUp to 120 characters.
thresholdrequiredinteger1–100. Fires when a contact's score rises from below this number to this number or above.
actionTyperequiredstringenroll_sequence, create_task, set_lifecycle_stage or notify_owner.
targetIduuidThe sequence id. Needed for enroll_sequence; the sequence must be active and have at least one step.
targetValuestringUp to 255 characters. For set_lifecycle_stage (needed): lead, cadence, mql, sql or customer. For create_task (optional): the task title — default “Follow up — lead score reached <threshold>”.
isEnabledbooleanDefault true.
  • What each action does. enroll_sequence: enrols the contact (the same checks as bulk enrol; a contact who can't be enrolled is skipped). create_task: a high-priority follow-up task on the contact, due tomorrow, for the contact's owner — not repeated while the last one is still open. set_lifecycle_stage: moves the contact forward only; never backwards, and never out of nurture or not_interested. notify_owner: an in-app notification to the contact's owner (skipped when the contact has no owner).
  • Errors (400): “actionType must be one of [enroll_sequence, create_task, set_lifecycle_stage, notify_owner]”; “Pick the sequence to enrol the contact in”; “Sequence not found in your organisation”; “The sequence "…" is paused — resume it first”; “The sequence "…" has no steps yet”; “Pick a lifecycle stage: lead, cadence, mql, sql, customer”; “An identical automation already exists at a score of 70”.
  • Existing contacts already above the threshold are not acted on. Use run for contacts already above.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/lead-scoring/automations" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Hot lead → owner follow-up",
    "threshold": 70,
    "actionType": "create_task",
    "targetValue": "Call this hot lead"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Automation created",
  "data": {
    "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a71",
    "name": "Hot lead → owner follow-up",
    "threshold": 70,
    "actionType": "create_task",
    "targetValue": "Call this hot lead",
    "isEnabled": true,
    "firedCount": 0
  }
}
PUT/api/v1/sales/lead-scoring/automations/{id}

Update a score automation

Rename it, change its threshold, or switch it on or off. Send only what changes.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 120 characters. A blank name is ignored.
thresholdinteger1–100.
isEnabledboolean
  • The action and its target can't be changed: delete the automation and create a new one.
  • Unknown id: 404 “Lead score automation not found with id: <id>”.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/lead-scoring/automations/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a71" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "isEnabled": false
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Automation updated",
  "data": {
    "id": "4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a71",
    "name": "Hot lead → owner follow-up",
    "threshold": 70,
    "actionType": "create_task",
    "targetValue": "Call this hot lead",
    "isEnabled": false,
    "firedCount": 0
  }
}
DELETE/api/v1/sales/lead-scoring/automations/{id}

Delete a score automation

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/lead-scoring/automations/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a71" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Automation deleted"
}
POST/api/v1/sales/lead-scoring/automations/{id}/run

Run for contacts already above

Runs the automation for contacts whose stored score is already at or above its threshold, oldest contact first. No body.

Who: Owner or manager

Query parameters

NameTypeWhat it does
afteruuidContinue a run that stopped early: send the nextAfter from the previous answer.
  • One call acts on at most 200 contacts, looks at at most 5,000, and stops after about 20 seconds. Then truncated is true and nextAfter says where to continue.
  • skipped = contacts it did not act on (already enrolled, already at that stage, no owner to notify, …).
  • Errors (400): “Enable this automation before running it”; “Can't continue this run — its position no longer exists. Start a new run.”; for enroll_sequence, the sequence messages listed under create.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/lead-scoring/automations/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a71/run" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Automation run complete",
  "data": {
    "scanned": 3,
    "eligible": 3,
    "fired": 2,
    "skipped": 1,
    "truncated": false
  }
}
23

Sequences

Cadences of follow-up steps, and enrolling contacts in them.

GET/api/v1/sales/sequences

List sequences

All your sequences with their steps, newest first. Not paged.

Who: Any member
  • enrollListId appears when the sequence enrols a contact list's new members (set up in the app).

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/sequences" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Sequences retrieved",
  "data": [
    {
      "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
      "name": "New website leads",
      "description": "Two touches over three days",
      "isActive": true,
      "includeUnsubscribe": true,
      "dailySendCap": 50,
      "removeOnLeave": false,
      "steps": [
        {
          "id": "6c7d8e9f-0a1b-4c2d-9e3f-4a5b6c7d8e93",
          "stepOrder": 1,
          "delayDays": 0,
          "actionType": "email",
          "emailSubject": "Quick question, {{firstName}}",
          "emailBody": "Hi {{firstName|there}}, …",
          "replyToPrevious": false
        },
        {
          "id": "7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4",
          "stepOrder": 2,
          "delayDays": 3,
          "actionType": "task",
          "taskTitle": "Call if no reply",
          "conditionType": "not_clicked",
          "replyToPrevious": false
        }
      ],
      "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
GET/api/v1/sales/sequences/{id}

Get a sequence

One sequence with its steps in run order. Unknown id: 404 “Sequence not found: <id>”.

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/sequences/5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Sequence retrieved",
  "data": {
    "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "name": "New website leads",
    "description": "Two touches over three days",
    "isActive": true,
    "includeUnsubscribe": true,
    "dailySendCap": 50,
    "removeOnLeave": false,
    "steps": [
      {
        "id": "6c7d8e9f-0a1b-4c2d-9e3f-4a5b6c7d8e93",
        "stepOrder": 1,
        "delayDays": 0,
        "actionType": "email",
        "emailSubject": "Quick question, {{firstName}}",
        "emailBody": "Hi {{firstName|there}}, …",
        "replyToPrevious": false
      },
      {
        "id": "7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4",
        "stepOrder": 2,
        "delayDays": 3,
        "actionType": "task",
        "taskTitle": "Call if no reply",
        "conditionType": "not_clicked",
        "replyToPrevious": false
      }
    ],
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
GET/api/v1/sales/sequences/opt-out-lines

P.S. lines

The fixed list of “P.S.” lines a sequence can end its emails with instead of the unsubscribe link. Send the key as optOutLine.

Who: Any member
  • Keys today: not-relevant, not-right-time, wrong-person, prefer-not-to-receive, not-of-interest, stop-following-up, not-interested, reply-stop, wrong-person-or-time.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/sequences/opt-out-lines" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "P.S. lines retrieved",
  "data": [
    {
      "key": "not-right-time",
      "text": "P.S. Not the right time? Just reply \"no thanks\" and I'll stop here."
    }
  ]
}
POST/api/v1/sales/sequences

Create a sequence

Creates an empty sequence. Add steps with add a step.

Who: Owner or manager

JSON body

FieldTypeNotes
namerequiredstringUp to 150 characters.
descriptionstring
isActivebooleanDefault true. false = paused.
includeUnsubscribebooleanDefault true: every email gets an unsubscribe footer and a one-click unsubscribe header.
optOutLinestringThe key of a “P.S.” opt-out line — see P.S. lines. Needed when includeUnsubscribe is false.
dailySendCapinteger1–10,000. The most emails this sequence sends in one day (your organisation's time zone). Leave it out for no limit.
  • Every sequence needs a way to opt out: the unsubscribe link, or a P.S. line. 400 “Choose a P.S. line, or keep the unsubscribe link — every sequence needs one” or “That P.S. line isn't one you can choose”.
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/sequences" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "New website leads",
    "description": "Two touches over three days",
    "dailySendCap": 50
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Sequence created",
  "data": {
    "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "name": "New website leads",
    "description": "Two touches over three days",
    "isActive": true,
    "includeUnsubscribe": true,
    "dailySendCap": 50,
    "removeOnLeave": false,
    "steps": [],
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/sequences/{id}

Update, pause or resume a sequence

Send only the fields you want to change. "isActive": false pauses it; true resumes it.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 150 characters. Can't be blank (400 “A sequence needs a name”).
descriptionstring
isActivebooleanfalse = paused, true = running.
includeUnsubscribeboolean
optOutLinestringA P.S. line key.
dailySendCapinteger1–10,000. Send null to remove the limit; leave it out to keep it.
  • Paused: enrolled contacts wait — no step runs — and carry on where they were once you resume. New enrolments are refused while paused.
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/sequences/5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "isActive": false
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Sequence updated",
  "data": {
    "id": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "name": "New website leads",
    "description": "Two touches over three days",
    "isActive": false,
    "includeUnsubscribe": true,
    "dailySendCap": 50,
    "removeOnLeave": false,
    "steps": [
      {
        "id": "6c7d8e9f-0a1b-4c2d-9e3f-4a5b6c7d8e93",
        "stepOrder": 1,
        "delayDays": 0,
        "actionType": "email",
        "emailSubject": "Quick question, {{firstName}}",
        "emailBody": "Hi {{firstName|there}}, …",
        "replyToPrevious": false
      },
      {
        "id": "7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4",
        "stepOrder": 2,
        "delayDays": 3,
        "actionType": "task",
        "taskTitle": "Call if no reply",
        "conditionType": "not_clicked",
        "replyToPrevious": false
      }
    ],
    "createdBy": "5b7e9a1c-2d3f-4a5b-8c6d-7e8f9a0b1c2d",
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
DELETE/api/v1/sales/sequences/{id}

Delete a sequence

Removes the sequence. Its active enrolments stop at once (stoppedReason: sequence_deleted).

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/sequences/5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Sequence deleted"
}
POST/api/v1/sales/sequences/{id}/steps

Add a step

Adds one email or task step to the sequence. Returns the step.

Who: Owner or manager

JSON body

FieldTypeNotes
actionTyperequiredstringemail (sends an email to the contact) or task (creates a task on the contact for its owner, due that day).
stepOrderintegerThe step's position. Default: after the last step. Two steps can't share a number.
delayDaysintegerDays to wait before this step: after enrolment for the first step, after the previous step for the others. 0 or more. Default 0.
emailSubjectstringUp to 255 characters. Needed for an email step.
emailBodystringThe email text. Can use {{variables}} such as {{firstName}}; {{firstName|there}} uses the text after | when the value is empty.
taskTitlestringUp to 255 characters. Needed for a task step.
taskDescriptionstring
conditionTypestringRun this step only if: opened, not_opened, clicked or not_clicked. Leave it out to always run it.
replyToPreviousbooleanEmail steps: send as a reply to this enrolment's previous email (same conversation). Default false.
  • Conditions look only at emails sent by this enrolment; a click also counts as an open. When the condition is false the step is skipped and the next one is scheduled. Two steps on consecutive numbers with opposite conditions work as an if/else.
  • Steps run in stepOrder. The scheduler checks for due steps every 5 minutes.
  • Errors (400): “actionType must be one of [task, email]”; “emailSubject is required for an email step”; “taskTitle is required for a task step”; “delayDays must not be negative”; “conditionType must be one of [opened, not_opened, clicked, not_clicked]”; “Step order 2 already exists in this sequence”. Unknown sequence: 404 “Sequence not found: <id>”.
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/sequences/5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82/steps" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "actionType": "task",
    "delayDays": 3,
    "taskTitle": "Call if no reply",
    "conditionType": "not_clicked"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Step added",
  "data": {
    "id": "7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4",
    "stepOrder": 2,
    "delayDays": 3,
    "actionType": "task",
    "taskTitle": "Call if no reply",
    "conditionType": "not_clicked",
    "replyToPrevious": false
  }
}
PUT/api/v1/sales/sequences/steps/{stepId}

Update a step

Send only the fields you want to change.

Who: Owner or manager

JSON body

FieldTypeNotes
actionTypestringemail (sends an email to the contact) or task (creates a task on the contact for its owner, due that day).
stepOrderintegerThe step's position. Two steps can't share a number.
delayDaysintegerDays to wait before this step: after enrolment for the first step, after the previous step for the others. 0 or more.
emailSubjectstringUp to 255 characters. Needed for an email step.
emailBodystringThe email text. Can use {{variables}} such as {{firstName}}; {{firstName|there}} uses the text after | when the value is empty.
taskTitlestringUp to 255 characters. Needed for a task step.
taskDescriptionstring
conditionTypestringRun this step only if: opened, not_opened, clicked or not_clicked. Send null to make the step always run; leave it out to keep it.
replyToPreviousbooleanEmail steps: send as a reply to this enrolment's previous email (same conversation).
variantPercentinteger1–99. Only for a step that is one half of an A/B test (set up in the app); the other half gets the rest of 100.
  • Changing the email's subject or body: enrolments made by other people stop sending from those people's own mailboxes and go out from the company address instead.
  • Errors (400): the same as add a step, plus, for an A/B half, “Move the whole step rather than one A/B arm — reorder the sequence instead” and “An A/B arm cannot change its action type — delete the variant first”; for variantPercent on a normal step, “This step has no A/B variant — add one before setting a split”. Unknown step: 404 “Step not found: <id>”.
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/sequences/steps/7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "delayDays": 2
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Step updated",
  "data": {
    "id": "7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4",
    "stepOrder": 2,
    "delayDays": 2,
    "actionType": "task",
    "taskTitle": "Call if no reply",
    "conditionType": "not_clicked",
    "replyToPrevious": false
  }
}
DELETE/api/v1/sales/sequences/steps/{stepId}

Delete a step

Removes the step. Contacts waiting on it move on to the next step.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/sequences/steps/7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Step deleted"
}
PUT/api/v1/sales/sequences/{id}/steps/reorder

Reorder steps

Renumbers the steps 1, 2, 3 … in the order you list them. Returns the steps.

Who: Owner or manager

JSON body

FieldTypeNotes
orderedStepIdsrequireduuid[]Every step id of this sequence, each once, in the new order.
  • A list that misses a step, repeats one or has a foreign id: 400 “orderedStepIds must list every step of this sequence exactly once”.
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/sequences/5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82/steps/reorder" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "orderedStepIds": [
      "7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4",
      "6c7d8e9f-0a1b-4c2d-9e3f-4a5b6c7d8e93"
    ]
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Steps reordered",
  "data": [
    {
      "id": "7d8e9f0a-1b2c-4d3e-a4f5-6b7c8d9e0fa4",
      "stepOrder": 1,
      "delayDays": 3,
      "actionType": "task",
      "taskTitle": "Call if no reply",
      "conditionType": "not_clicked",
      "replyToPrevious": false
    },
    {
      "id": "6c7d8e9f-0a1b-4c2d-9e3f-4a5b6c7d8e93",
      "stepOrder": 2,
      "delayDays": 0,
      "actionType": "email",
      "emailSubject": "Quick question, {{firstName}}",
      "emailBody": "Hi {{firstName|there}}, …",
      "replyToPrevious": false
    }
  ]
}
POST/api/v1/sales/sequences/run-due

Run due steps now

Runs your organisation's due steps now instead of waiting for the next 5-minute pass. Handy for testing a new sequence. No body.

Who: Owner or manager
  • processed = due enrolments looked at; executed = steps that actually ran (an email handed to the provider or a task created).
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/sequences/run-due" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Processed 2 due enrollment(s); ran 1 step(s)",
  "data": {
    "processed": 2,
    "executed": 1
  }
}
GET/api/v1/sales/sequence-enrollments

List enrolments

Enrolments of one contact, or everyone enrolled in one sequence. Newest first. Not paged.

Who: Any member

Query parameters

NameTypeWhat it does
contactIduuidA contact's enrolments in any sequence.
sequenceIduuidEveryone in this sequence. Rows then also carry contactName and contactEmail.
  • Send exactly one of the two, else 400 “Supply exactly one of contactId or sequenceId”.
  • status: active, completed or stopped. A stopped one has stoppedReason, e.g. manual, sequence_deleted, contact_deleted, converted, not_interested, bounced, marked_spam or send_failed. lastError says why a step last failed.
  • enrolledVia: manual, automation (a stage or score automation) or list.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/sequence-enrollments?sequenceId=5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Enrollments retrieved",
  "data": [
    {
      "id": "8e9f0a1b-2c3d-4e4f-b5a6-7c8d9e0f1ab5",
      "sequenceId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
      "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
      "status": "active",
      "currentStepOrder": 1,
      "nextActionAt": "2026-11-07T23:29:11.057166Z",
      "enrolledAt": "2026-11-07T23:29:11.057166Z",
      "attemptCount": 0,
      "contactName": "Lena Schmidt",
      "contactEmail": "lena@example.com",
      "enrolledVia": "manual"
    }
  ]
}
POST/api/v1/sales/sequence-enrollments

Enrol a contact

Puts one contact into a sequence. Its first step is due after the first step's delayDays.

Who: Owner, manager or executive

JSON body

FieldTypeNotes
sequenceIdrequireduuidAn active sequence with at least one step.
contactIdrequireduuid
  • Who can be enrolled. Not a customer (lifecycleStage or contactType customer), not marked not_interested, not erased. If the sequence has an email step, the contact also needs an email address, must not be unsubscribed or suppressed, and needs marketing permission.
  • Errors (400): “Cannot enroll into an inactive sequence”; “Sequence has no steps”; “Unknown contact: <id>”; “That contact is already enrolled in this sequence”; “That contact is already a customer — sequences target prospects.”; “That contact is marked Not interested, so they can't be enrolled.”; “That contact's data was erased, so they can't be enrolled.”; “This sequence sends email, but that contact has no email address.”; “That contact has unsubscribed or been suppressed and cannot be emailed.”; “That contact hasn't given marketing permission, so this sequence can't email them.” Unknown sequence: 404 “Sequence not found: <id>”.
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/sequence-enrollments" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sequenceId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Contact enrolled",
  "data": {
    "id": "8e9f0a1b-2c3d-4e4f-b5a6-7c8d9e0f1ab5",
    "sequenceId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "contactId": "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
    "status": "active",
    "currentStepOrder": 1,
    "nextActionAt": "2026-11-07T23:29:11.057166Z",
    "enrolledAt": "2026-11-07T23:29:11.057166Z",
    "attemptCount": 0,
    "contactName": "Lena Schmidt",
    "contactEmail": "lena@example.com"
  }
}
POST/api/v1/sales/sequence-enrollments/bulk

Enrol many contacts

Enrols up to 100 contacts in one sequence. Contacts that can't be enrolled are skipped and listed; the rest still go in.

Who: Owner, manager or executive

JSON body

FieldTypeNotes
sequenceIdrequireduuidAn active sequence with at least one step.
contactIdsrequireduuid[]1–100 contact ids. Repeats are counted once.
  • Skip reason: already_enrolled, unknown_contact, converted, not_interested, erased, no_email, suppressed or no_permission — the same checks as enrol a contact.
  • More than 100 ids: 400 “Validation failed” (“Enroll at most 100 contacts per request”). An inactive, empty or unknown sequence fails the whole call, as for a single enrolment.
  • Plan. Sequences are part of the Growth and Business plans. On a lower (or lapsed) plan this call returns 403 “Sequences: available from the Growth plan. Change your plan in Settings → Billing to use it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/sequence-enrollments/bulk" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sequenceId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "contactIds": [
      "0f3a6b9c-1d2e-4f5a-8b7c-6d5e4f3a2b1c",
      "e5f6a7b8-c9d0-4e1f-82a3-4d5e6f7a8b1b"
    ]
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "1 contact(s) enrolled, 1 skipped",
  "data": {
    "enrolled": 1,
    "skipped": 1,
    "skippedContacts": [
      {
        "contactId": "e5f6a7b8-c9d0-4e1f-82a3-4d5e6f7a8b1b",
        "reason": "no_email"
      }
    ]
  }
}
DELETE/api/v1/sales/sequence-enrollments/{id}

Stop an enrolment

Takes the contact out of the sequence: no more steps run. The enrolment stays in the list as stopped with stoppedReason manual.

Who: Owner, manager or executive
  • Only an active enrolment can be stopped: 400 “Only an active enrolment can be stopped — this one is completed” (or stopped). Unknown id: 404 “Enrollment not found: <id>”.

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/sequence-enrollments/8e9f0a1b-2c3d-4e4f-b5a6-7c8d9e0f1ab5" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Enrollment stopped"
}
24

Stage automations

What happens automatically when a deal enters a stage.

GET/api/v1/sales/stage-automations

List stage automations

Actions that run when a deal enters a pipeline stage. Oldest first. Not paged.

Who: Owner or manager

Query parameters

NameTypeWhat it does
stageIduuidOnly this stage's automations.
  • firedCount = how many times the action actually happened; lastFiredAt is missing until then.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/stage-automations" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Stage automations retrieved",
  "data": [
    {
      "id": "9f0a1b2c-3d4e-4f5a-86b7-8d9e0f1a2bc6",
      "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
      "stageName": "Qualified",
      "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
      "actionType": "enroll_sequence",
      "targetId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
      "targetName": "New website leads",
      "isEnabled": true,
      "firedCount": 0,
      "createdAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
POST/api/v1/sales/stage-automations

Create a stage automation

“When a deal enters this stage, do this for the deal's main contact.”

Who: Owner or manager

JSON body

FieldTypeNotes
stageIdrequireduuidA stage of one of your Sales pipelines.
actionTyperequiredstringenroll_sequence, send_whatsapp_template or send_email_template.
targetIdrequireduuidThe sequence, WhatsApp template or email template to use. It must be in your organisation.
isEnabledbooleanDefault true.
  • It acts on the deal's contactId; a deal with no contact is skipped. enroll_sequence uses the same checks as bulk enrol and is skipped (not an error) on a plan without Sequences. send_email_template goes from the company address and needs no marketing permission, but never to someone with no address, who unsubscribed or was erased. send_whatsapp_template needs a WhatsApp connection and the contact's WhatsApp permission.
  • It runs once, when a deal moves into the stage (or is created in it). Deals already in the stage are not touched — use run for deals already in the stage.
  • Errors (400): “actionType must be one of [enroll_sequence, send_whatsapp_template, send_email_template]”; “Stage not found in your organisation.”; “Stage automations are available for Sales pipelines only.”; “Automation target not found in your organisation.”; “This automation is already mapped to the stage.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/stage-automations" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "actionType": "enroll_sequence",
    "targetId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Stage automation created",
  "data": {
    "id": "9f0a1b2c-3d4e-4f5a-86b7-8d9e0f1a2bc6",
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "stageName": "Qualified",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "actionType": "enroll_sequence",
    "targetId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "targetName": "New website leads",
    "isEnabled": true,
    "firedCount": 0,
    "createdAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/stage-automations/{id}

Switch a stage automation on or off

Only isEnabled can change. To change the stage, action or target, delete it and create a new one.

Who: Owner or manager

JSON body

FieldTypeNotes
isEnabledboolean
  • Unknown id: 404 “Stage automation not found: <id>”.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/stage-automations/9f0a1b2c-3d4e-4f5a-86b7-8d9e0f1a2bc6" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "isEnabled": false
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Stage automation updated",
  "data": {
    "id": "9f0a1b2c-3d4e-4f5a-86b7-8d9e0f1a2bc6",
    "stageId": "66f3bc09-0000-4156-bb00-dd1f2ca60e97",
    "stageName": "Qualified",
    "pipelineId": "1e2d3c4b-5a69-4788-9a0b-c1d2e3f4a5b6",
    "actionType": "enroll_sequence",
    "targetId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c82",
    "targetName": "New website leads",
    "isEnabled": false,
    "firedCount": 0,
    "createdAt": "2026-11-07T23:29:11.057166Z"
  }
}
DELETE/api/v1/sales/stage-automations/{id}

Delete a stage automation

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/stage-automations/9f0a1b2c-3d4e-4f5a-86b7-8d9e0f1a2bc6" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Stage automation removed"
}
POST/api/v1/sales/stage-automations/{id}/run

Run for deals already in the stage

Runs this automation for the open deals now in its stage, oldest first. No body.

Who: Owner or manager
  • At most 200 deals per call, always the 200 oldest — calling again does not continue past them. totalInStage tells you if there are more.
  • A run does not remember earlier runs: a template email or WhatsApp message goes again to every deal it reaches. (Enrolling is safe to repeat: an enrolled contact is skipped.)
  • skipped = deals where nothing happened (no contact, no address or number, no permission, already enrolled, …).
  • A disabled automation: 400 “Enable the automation before running it.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/stage-automations/9f0a1b2c-3d4e-4f5a-86b7-8d9e0f1a2bc6/run" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Stage automation run complete",
  "data": {
    "totalInStage": 3,
    "attempted": 3,
    "fired": 2,
    "skipped": 1
  }
}
25

Greetings

Birthday and work-anniversary messages.

GET/api/v1/sales/contact-date-campaigns

List greetings

Your birthday and work-anniversary greetings, newest first. Not paged.

Who: Any member
  • contactListId is missing when the greeting goes to everyone with marketing permission.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/contact-date-campaigns" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Greeting campaigns",
  "data": [
    {
      "id": "b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8",
      "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
      "name": "Birthday wishes",
      "occasion": "birthday",
      "subject": "Happy birthday, {{firstName}}!",
      "htmlBody": "<p>Hi {{firstName}}, all the best for your day!</p>",
      "sendTime": "09:00:00",
      "sendTimezone": "Europe/Berlin",
      "useContactTimezone": true,
      "isEnabled": true,
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
GET/api/v1/sales/contact-date-campaigns/{id}

Get a greeting

Unknown id: 404 “Greeting campaign not found: <id>”.

Who: Any member

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/contact-date-campaigns/b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Greeting campaign",
  "data": {
    "id": "b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "name": "Birthday wishes",
    "occasion": "birthday",
    "subject": "Happy birthday, {{firstName}}!",
    "htmlBody": "<p>Hi {{firstName}}, all the best for your day!</p>",
    "sendTime": "09:00:00",
    "sendTimezone": "Europe/Berlin",
    "useContactTimezone": true,
    "isEnabled": true,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
POST/api/v1/sales/contact-date-campaigns

Create a greeting

An email sent automatically on each contact's birthday or work anniversary.

Who: Owner or manager

JSON body

FieldTypeNotes
namerequiredstringUp to 200 characters.
occasionrequiredstringbirthday (uses the contact's dateOfBirth) or work_anniversary (uses workAnniversary). Can't be changed later.
subjectrequiredstringUp to 500 characters. Can use {{variables}}.
htmlBodyrequiredstringThe email, in HTML. Can use {{variables}}, including {{years}}.
sendTimestringLocal time HH:mm, 23:45 at the latest. Default 09:00. Greetings go out on the quarter-hour.
sendTimezonestringAn IANA zone name such as Europe/Berlin (not a fixed offset). Default: your organisation's time zone (else UTC).
useContactTimezonebooleanDefault false. True: use each contact's own timezone when set, else sendTimezone.
contactListIduuidGreet only this contact list's members. Leave it out to greet everyone with marketing permission.
isEnabledbooleanDefault false: a new greeting is off until you switch it on.
  • Who gets it. Contacts with the date set, an email address, marketing permission (consentMarketing true), and not unsubscribed or erased. Each contact gets one per year. A 29 February date is greeted on 1 March in other years.
  • It goes out at or after sendTime on the day, sent as whoever saved the greeting last (their connected mailbox, the company mailbox, or your Email Sender).
  • Only one greeting per occasion can be on: 400 “"Birthday wishes" is already the enabled birthday greeting. Disable it before enabling another.”
  • Switching it on needs a role that can see every Sales contact: 403 “This greeting goes to every contact with marketing permission, including ones you can't see. Only someone who can see every contact can save it while it's on — switch it off, or ask a manager.” (with a list: “This list includes contacts you can't see. Ask a manager to send to it.”).
  • Other errors (400): “Occasion must be one of [birthday, work_anniversary] but was '…'” (the order of the two may vary); “Send time must be 23:45 or earlier. …”; “Send timezone must be a region name such as 'Asia/Kolkata' or 'UTC', not a fixed offset — an offset cannot follow daylight saving.”; “Unknown timezone '…'”; “The selected contact list no longer exists.”

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/sales/contact-date-campaigns" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Birthday wishes",
    "occasion": "birthday",
    "subject": "Happy birthday, {{firstName}}!",
    "htmlBody": "<p>Hi {{firstName}}, all the best for your day!</p>",
    "sendTime": "09:00",
    "sendTimezone": "Europe/Berlin",
    "useContactTimezone": true,
    "isEnabled": true
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Greeting campaign created",
  "data": {
    "id": "b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "name": "Birthday wishes",
    "occasion": "birthday",
    "subject": "Happy birthday, {{firstName}}!",
    "htmlBody": "<p>Hi {{firstName}}, all the best for your day!</p>",
    "sendTime": "09:00:00",
    "sendTimezone": "Europe/Berlin",
    "useContactTimezone": true,
    "isEnabled": true,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
PUT/api/v1/sales/contact-date-campaigns/{id}

Update a greeting

Send only the fields you want to change. occasion can't be changed: delete and create a new one.

Who: Owner or manager

JSON body

FieldTypeNotes
namestringUp to 200 characters.
subjectstringUp to 500 characters. Can use {{variables}}.
htmlBodystringThe email, in HTML. Can use {{variables}}, including {{years}}.
sendTimestringLocal time HH:mm, 23:45 at the latest. Greetings go out on the quarter-hour.
sendTimezonestringAn IANA zone name such as Europe/Berlin (not a fixed offset).
useContactTimezonebooleanDefault false. True: use each contact's own timezone when set, else sendTimezone.
contactListIduuidGreet only this contact list's members.
everyonebooleantrue drops the contact list: greet everyone with marketing permission.
isEnabledboolean
  • name, subject and htmlBody can't be blank: 400 “Validation failed” (“Name cannot be blank”, “Subject cannot be blank”, “Message body cannot be blank”).
  • Whoever saves a greeting becomes the person it is sent as. Saving one that stays on needs a role that can see every Sales contact (403, as on create); switching it off does not.

Example

curl -s -X PUT "https://crm.verdeshell.com/api/v1/sales/contact-date-campaigns/b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8" \
  -H "X-API-Key: $VERDESHELL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sendTime": "08:30"
  }'

Response 200

{
  "status": "SUCCESS",
  "message": "Greeting campaign updated",
  "data": {
    "id": "b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8",
    "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
    "name": "Birthday wishes",
    "occasion": "birthday",
    "subject": "Happy birthday, {{firstName}}!",
    "htmlBody": "<p>Hi {{firstName}}, all the best for your day!</p>",
    "sendTime": "08:30:00",
    "sendTimezone": "Europe/Berlin",
    "useContactTimezone": true,
    "isEnabled": true,
    "createdAt": "2026-11-07T23:29:11.057166Z",
    "updatedAt": "2026-11-07T23:29:11.057166Z"
  }
}
DELETE/api/v1/sales/contact-date-campaigns/{id}

Delete a greeting

Removes the greeting; it never sends again.

Who: Owner or manager

Example

curl -s -X DELETE "https://crm.verdeshell.com/api/v1/sales/contact-date-campaigns/b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Greeting campaign deleted"
}
GET/api/v1/sales/contact-date-campaigns/{id}/failures

Greetings that didn't go out

Greetings this campaign tried to send and could not, newest first.

Who: Owner, manager, executive or staff

Query parameters

NameTypeWhat it does
limitinteger1–100. Default 20.
  • outcome: failed (nothing went out) or unconfirmed (the mail server never confirmed it — it may have arrived, and was not sent again). reason is the provider's answer, with anything that looks like a password or key removed.
  • A failed contact counts as greeted for this year; fix the address and send by hand if needed.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/sales/contact-date-campaigns/b1c2d3e4-f5a6-4b7c-88d9-0f1a2b3c4de8/failures" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Greeting failures",
  "data": [
    {
      "email": "old@example.com",
      "subject": "Happy birthday, Lena!",
      "attemptedAt": "2026-11-07T23:29:11.057166Z",
      "reason": "550 Mailbox not found",
      "outcome": "failed"
    }
  ]
}
26

Webhook subscriptions

Read and test the webhook addresses an owner has set up.

GET/api/v1/integration/webhook-subscriptions

List webhook subscriptions

The addresses your organisation sends webhooks to, newest first. Not paged. The signing secret is never returned — hasSecret says one is set.

Who: Owner or manager

Query parameters

NameTypeWhat it does
templateSlugstringsales-crm, service-crm, interior-crm or nutrition-crm: that module's subscriptions plus the all-module ones. Leave it out for all.
  • A subscription with no templateSlug receives events from every module.
  • Another templateSlug: 400 “templateSlug must be one of sales-crm, service-crm, interior-crm or nutrition-crm (or "" for every module)”.
  • Adding, changing and deleting subscriptions needs a signed-in owner: an API key gets 403 “API keys can't do this — sign in to change it.”

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/integration/webhook-subscriptions" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Subscriptions retrieved",
  "data": [
    {
      "id": "c3d4e5f6-a7b8-4c9d-a0e1-2b3c4d5e6ff9",
      "organizationId": "8d0c2f4e-6a1b-4c3d-9e8f-0a1b2c3d4e5f",
      "templateSlug": "sales-crm",
      "eventTypes": [
        "deal.created",
        "deal.won"
      ],
      "targetUrl": "https://your-system.example.com/verdeshell",
      "hasSecret": true,
      "enabled": true,
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "updatedAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
GET/api/v1/integration/webhook-subscriptions/{id}/deliveries

Recent deliveries

The subscription's last 50 deliveries, newest first. The payload is never included.

Who: Owner or manager
  • status: pending, success or failed. A failed one with nextRetryAt will be tried again. responseCode is your server's HTTP answer; lastError is a cleaned-up error text.
  • Unknown id: 404 “Webhook subscription not found: <id>”.

Example

curl -s -X GET "https://crm.verdeshell.com/api/v1/integration/webhook-subscriptions/c3d4e5f6-a7b8-4c9d-a0e1-2b3c4d5e6ff9/deliveries" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deliveries retrieved",
  "data": [
    {
      "id": "d4e5f6a7-b8c9-4d0e-b1f2-3c4d5e6f7a0a",
      "subscriptionId": "c3d4e5f6-a7b8-4c9d-a0e1-2b3c4d5e6ff9",
      "eventType": "deal.won",
      "status": "success",
      "attempts": 1,
      "responseCode": 200,
      "createdAt": "2026-11-07T23:29:11.057166Z",
      "deliveredAt": "2026-11-07T23:29:11.057166Z"
    }
  ]
}
POST/api/v1/integration/webhook-subscriptions/run-due

Send due deliveries now

Sends your organisation's waiting deliveries (new ones and due retries) now, instead of on the next scheduled pass. Up to 25 per call. No body.

Who: Owner only
  • processed = deliveries tried in this call. more is 1 when more are waiting — call again — else 0.
  • Handy for testing your receiver. The scheduled pass runs every 30 seconds anyway.

Example

curl -s -X POST "https://crm.verdeshell.com/api/v1/integration/webhook-subscriptions/run-due" \
  -H "X-API-Key: $VERDESHELL_API_KEY"

Response 200

{
  "status": "SUCCESS",
  "message": "Deliveries processed",
  "data": {
    "processed": 1,
    "more": 0
  }
}
Part 5 of 5

Reference

Every call on one screen, and a file for your tools.

27

Quick reference

Every call in this handbook. “Who” is the role the key's creator needs.

PathWhatWho
GET/api/v1/core/organization-users/meWho the key acts asAny member
GET/api/v1/core/organization-users/assignableTeam members you can assignOwner, manager, executive or staff
GET/api/v1/core/pipelinesList pipelinesAny member
GET/api/v1/core/pipeline-stagesList a pipeline's stagesAny member
GET/api/v1/sales/contact-field-optionsLead source and industry listsAny member
GET/api/v1/sales/contactsList contactsAny member
GET/api/v1/sales/contacts/{id}Get a contactAny member
POST/api/v1/sales/contactsCreate a contactOwner, manager or executive
PUT/api/v1/sales/contacts/{id}Update a contactOwner, manager or executive
DELETE/api/v1/sales/contacts/{id}Delete a contactOwner or manager
POST/api/v1/sales/contacts/lifecycle-stageSet the lifecycle stage of many contactsOwner, manager or executive
GET/api/v1/core/accountsList accountsAny member
GET/api/v1/core/accounts/{id}Get an accountAny member
POST/api/v1/core/accountsCreate an accountOwner, manager or executive
PUT/api/v1/core/accounts/{id}Update an accountOwner, manager or executive
DELETE/api/v1/core/accounts/{id}Delete an accountOwner or manager
GET/api/v1/sales/dealsList dealsAny member
GET/api/v1/sales/deals/{id}Get a dealAny member
POST/api/v1/sales/dealsCreate a dealOwner, manager or executive
PUT/api/v1/sales/deals/{id}Update a dealOwner, manager or executive
DELETE/api/v1/sales/deals/{id}Delete a dealOwner or manager
GET/api/v1/sales/deals/{id}/historyA deal's historyAny member except client logins
GET/api/v1/sales/deals/changesDeals that changed recentlyAny member except client logins
GET/api/v1/sales/deal-line-itemsList a deal's line itemsAny member
POST/api/v1/sales/deal-line-itemsAdd a line itemOwner, manager or executive
PUT/api/v1/sales/deal-line-items/{id}Update a line itemOwner, manager or executive
DELETE/api/v1/sales/deal-line-items/{id}Remove a line itemOwner, manager or executive
GET/api/v1/sales/deal-notesList a deal's notesAny member except client logins
POST/api/v1/sales/deal-notesAdd a note to a dealOwner, manager or executive
PUT/api/v1/sales/deal-notes/{id}Edit a noteIts author (owner, manager or executive), or any owner or manager
DELETE/api/v1/sales/deal-notes/{id}Delete a noteOwner or manager
GET/api/v1/sales/tasksList tasksAny member
GET/api/v1/sales/tasks/{id}Get a taskAny member
POST/api/v1/sales/tasksCreate a taskOwner, manager or executive
PUT/api/v1/sales/tasks/{id}Update or complete a taskOwner, manager or executive
DELETE/api/v1/sales/tasks/{id}Delete a taskOwner or manager
GET/api/v1/sales/activitiesList activitiesAny member except client logins
GET/api/v1/sales/activities/{id}Get an activityAny member except client logins
POST/api/v1/sales/activitiesLog an activityOwner, manager or executive
PUT/api/v1/sales/activities/{id}Update an activityIts author (owner, manager or executive), or any owner or manager
DELETE/api/v1/sales/activities/{id}Delete an activityOwner or manager
GET/api/v1/sales/productsList productsAny member
POST/api/v1/sales/productsCreate a productOwner or manager
PUT/api/v1/sales/products/{id}Update a productOwner or manager
DELETE/api/v1/sales/products/{id}Delete a productOwner or manager
GET/api/v1/core/custom-fieldsList custom fieldsAny member
GET/api/v1/core/labelsList labelsAny member
GET/api/v1/core/entity-labelsLabels on a recordAny member
PUT/api/v1/core/entity-labelsSet the labels on a recordOwner, manager or executive
POST/api/v1/integration/ingest/contactsPush contacts (create or update)Owner, manager or executive
POST/api/v1/integration/ingest/accountsPush accounts (create or update)Owner, manager or executive
POST/api/v1/integration/import/contacts/previewPreview a CSV fileOwner, manager or executive
POST/api/v1/integration/import/contactsImport a CSV fileOwner, manager or executive
GET/api/v1/core/pipelines/{id}Get a pipelineAny member
POST/api/v1/core/pipelinesCreate a pipelineOwner or manager
PUT/api/v1/core/pipelines/{id}Update a pipelineOwner or manager
PUT/api/v1/core/pipelines/{id}/defaultMake a pipeline the defaultOwner or manager
DELETE/api/v1/core/pipelines/{id}Delete a pipelineOwner or manager
GET/api/v1/core/pipeline-stages/{id}Get a stageAny member
POST/api/v1/core/pipeline-stagesAdd a stageOwner or manager
PUT/api/v1/core/pipeline-stages/{id}Update a stageOwner or manager
DELETE/api/v1/core/pipeline-stages/{id}Delete a stageOwner or manager
PUT/api/v1/core/pipeline-stages/reorderReorder stagesOwner or manager
GET/api/v1/core/pipeline-stages/{stageId}/approval-configGet a stage's approval gateAny member
PUT/api/v1/core/pipeline-stages/{stageId}/approval-configSet a stage's approval gateOwner only
GET/api/v1/sales/board-settingsGet the deal card fieldsAny member
PUT/api/v1/sales/board-settingsChoose the deal card fieldsOwner or manager
GET/api/v1/sales/targetsList targetsAny member
GET/api/v1/sales/targets/{id}Get a targetAny member
POST/api/v1/sales/targetsCreate a targetOwner or manager
PUT/api/v1/sales/targets/{id}Update a targetOwner or manager
DELETE/api/v1/sales/targets/{id}Delete a targetOwner or manager
POST/api/v1/core/custom-fieldsCreate a custom fieldOwner or manager
PUT/api/v1/core/custom-fields/{id}Update a custom fieldOwner or manager
DELETE/api/v1/core/custom-fields/{id}Delete a custom fieldOwner or manager
GET/api/v1/core/custom-fields/usageRecords using each custom fieldOwner or manager
GET/api/v1/core/custom-fields/filter-usageLists and views using each custom fieldOwner or manager
POST/api/v1/core/labelsCreate a labelOwner or manager
PUT/api/v1/core/labels/{id}Update a labelOwner or manager
DELETE/api/v1/core/labels/{id}Delete a labelOwner or manager
POST/api/v1/sales/contact-field-optionsAdd a lead source or industryOwner only
PUT/api/v1/sales/contact-field-options/{id}Rename or archive a lead source or industryOwner only
PUT/api/v1/sales/contact-field-options/orderReorder a lead source or industry listOwner only
GET/api/v1/sales/assignment-rulesList lead routing rulesAny member
POST/api/v1/sales/assignment-rulesCreate a lead routing ruleOwner or manager
PUT/api/v1/sales/assignment-rules/{id}Update a lead routing ruleOwner or manager
PUT/api/v1/sales/assignment-rules/reorderReorder lead routing rulesOwner or manager
DELETE/api/v1/sales/assignment-rules/{id}Delete a lead routing ruleOwner or manager
POST/api/v1/sales/assignment-rules/applyRoute unassigned contacts nowOwner or manager
POST/api/v1/sales/assignment-rules/previewPreview a rule conditionOwner or manager
GET/api/v1/sales/assignment-rules/test/{contactId}Test routing for a contactOwner or manager
GET/api/v1/sales/lead-scoring/rulesList scoring rulesAny member
POST/api/v1/sales/lead-scoring/rulesCreate a scoring ruleOwner or manager
PUT/api/v1/sales/lead-scoring/rules/{id}Update a scoring ruleOwner or manager
DELETE/api/v1/sales/lead-scoring/rules/{id}Delete a scoring ruleOwner or manager
POST/api/v1/sales/lead-scoring/recalculateRe-score all contactsOwner or manager
GET/api/v1/sales/lead-scoring/breakdown/{contactId}Why a contact has its scoreAny member
GET/api/v1/sales/lead-scoring/automationsList score automationsAny member
POST/api/v1/sales/lead-scoring/automationsCreate a score automationOwner or manager
PUT/api/v1/sales/lead-scoring/automations/{id}Update a score automationOwner or manager
DELETE/api/v1/sales/lead-scoring/automations/{id}Delete a score automationOwner or manager
POST/api/v1/sales/lead-scoring/automations/{id}/runRun for contacts already aboveOwner or manager
GET/api/v1/sales/sequencesList sequencesAny member
GET/api/v1/sales/sequences/{id}Get a sequenceAny member
GET/api/v1/sales/sequences/opt-out-linesP.S. linesAny member
POST/api/v1/sales/sequencesCreate a sequenceOwner or manager
PUT/api/v1/sales/sequences/{id}Update, pause or resume a sequenceOwner or manager
DELETE/api/v1/sales/sequences/{id}Delete a sequenceOwner or manager
POST/api/v1/sales/sequences/{id}/stepsAdd a stepOwner or manager
PUT/api/v1/sales/sequences/steps/{stepId}Update a stepOwner or manager
DELETE/api/v1/sales/sequences/steps/{stepId}Delete a stepOwner or manager
PUT/api/v1/sales/sequences/{id}/steps/reorderReorder stepsOwner or manager
POST/api/v1/sales/sequences/run-dueRun due steps nowOwner or manager
GET/api/v1/sales/sequence-enrollmentsList enrolmentsAny member
POST/api/v1/sales/sequence-enrollmentsEnrol a contactOwner, manager or executive
POST/api/v1/sales/sequence-enrollments/bulkEnrol many contactsOwner, manager or executive
DELETE/api/v1/sales/sequence-enrollments/{id}Stop an enrolmentOwner, manager or executive
GET/api/v1/sales/stage-automationsList stage automationsOwner or manager
POST/api/v1/sales/stage-automationsCreate a stage automationOwner or manager
PUT/api/v1/sales/stage-automations/{id}Switch a stage automation on or offOwner or manager
DELETE/api/v1/sales/stage-automations/{id}Delete a stage automationOwner or manager
POST/api/v1/sales/stage-automations/{id}/runRun for deals already in the stageOwner or manager
GET/api/v1/sales/contact-date-campaignsList greetingsAny member
GET/api/v1/sales/contact-date-campaigns/{id}Get a greetingAny member
POST/api/v1/sales/contact-date-campaignsCreate a greetingOwner or manager
PUT/api/v1/sales/contact-date-campaigns/{id}Update a greetingOwner or manager
DELETE/api/v1/sales/contact-date-campaigns/{id}Delete a greetingOwner or manager
GET/api/v1/sales/contact-date-campaigns/{id}/failuresGreetings that didn't go outOwner, manager, executive or staff
GET/api/v1/integration/webhook-subscriptionsList webhook subscriptionsOwner or manager
GET/api/v1/integration/webhook-subscriptions/{id}/deliveriesRecent deliveriesOwner or manager
POST/api/v1/integration/webhook-subscriptions/run-dueSend due deliveries nowOwner only
⬇OpenAPI file. Load openapi.json into your API tool or code generator to get every call above ready to try.
🤝Need a hand? Email support@verdeshell.com with what you're building — we're happy to help.