Get connected
A key, one request, and the rules every call shares.
Get your API key
A key lets your own scripts and systems read and write your Sales data.
- Sign in as the owner of your organisation. Only owners can create keys. API access is part of every plan.
- Open Settings › API keys and choose Create key. Give it a name that says what uses it, e.g. billing-sync.
- Copy the key straight away. It starts with vsk_ and is shown only once.
- Store it as a secret (an environment variable or your secret manager), never in code or a browser page.
401.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"
}
}statusisSUCCESSorERROR;messageis a readable sentence; the record or list is indata.- 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-lettercurrency. - Unknown fields in a request are ignored. Text is stored with
<and>turned into<and>, so don't send HTML.
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
pageuntillastistrue. - Asking for more than 100 gives you 100 — no error.
- Each list has its own
sortvalues, 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.
Errors and limits
Read the HTTP status first, then message for the detail.
| Status | What it means |
|---|---|
400 | Something 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). |
401 | No 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."}. |
403 | The 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.” |
404 | No such record, or it was deleted: “Sales Contact not found with id: …”. |
409 | Conflict. “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…”. |
429 | Too many requests — see the limit below. The Retry-After header says how many seconds to wait. |
500 / 503 | Our 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 aRetry-Afterheader: 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.
IDs and lists you'll need
Look these up once and cache them: owners, pipelines, stages, and the values your organisation accepts.
/api/v1/core/organization-users/meWho the key acts as
Returns the key creator's membership: your organizationId (needed by the pipelines call) and their userId and role.
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
}
}/api/v1/core/organization-users/assignableTeam 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.
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"
}
]
}/api/v1/core/pipelinesList pipelines
Your Sales pipelines, in board order. Not paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
templateSlugrequired | string | sales-crm |
organizationIdrequired | uuid | Your 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
}
]
}/api/v1/core/pipeline-stagesList 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.
Query parameters
| Name | Type | What it does |
|---|---|---|
pipelineIdrequired | uuid | From the pipelines list. |
approvalGateEnabled: truemeans 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
}
]
}/api/v1/sales/contact-field-optionsLead source and industry lists
The values your organisation accepts for a contact's leadSource and industry. Send the value.
Query parameters
| Name | Type | What it does |
|---|---|---|
fieldrequired | string | lead_source or industry. |
includeArchived | boolean | Default 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"
}
]
}Read and write records
Contacts, accounts, deals and everything attached to them.
Contacts
People you sell to.
/api/v1/sales/contactsList contacts
Search and filter your contacts. Paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
search | string | Matches first name, last name, email, company, phone and tags (ignores case and accents). |
status | string | e.g. active. |
contactType | string | e.g. lead. |
lifecycleStage | string | e.g. mql. |
leadSource | string | A lead source value. |
industry | string | An industry value. |
assignedTo | uuid | Owner's userId. |
unassigned | boolean | Only contacts with no owner. |
labelIds | uuid[] | Contacts with any of these labels. Repeat the parameter for more than one. |
minScore | integer | Lead score at least this. |
maxScore | integer | Lead score at most this. |
createdAfter | date-time | ISO-8601, e.g. 2026-11-01T00:00:00Z. |
sort | string | created (default), updated, name, company or score. |
dir | string | desc (default) or asc. |
page | integer | Page number, starting at 0. Default 0. |
size | integer | Rows 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
}
}/api/v1/sales/contacts/{id}Get a contact
One contact by id. A deleted contact returns 404.
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
}
}/api/v1/sales/contactsCreate a contact
Creates one contact. To push many at once with matching, use bulk push instead.
Query parameters
| Name | Type | What it does |
|---|---|---|
checkDuplicates | boolean | When 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)
| Field | Type | Notes |
|---|---|---|
firstNamerequired | string | Up to 100 characters. |
lastName | string | Up to 100 characters. |
email | string | A valid email address. Stored without surrounding spaces. |
phone | string | Up to 20 characters. |
mobile | string | Up to 20 characters. |
companyName | string | If it matches exactly one of your accounts by name, the contact is linked to it. |
jobTitle | string | |
department | string | |
contactTyperequired | string | lead, prospect, customer, partner or vendor. |
statusrequired | string | active, inactive, unqualified or converted. |
lifecycleStage | string | lead (default), cadence, mql, sql, customer, nurture or not_interested. |
leadSource | string | A value from your lead source list — see IDs and lists. |
industry | string | A value from your industry list. |
leadScore | integer | 0–100. If your organisation has lead-scoring rules, the score is recalculated and may replace this value. |
estimatedDealValue | number | 0 or more. |
assignedTo | uuid | Owner'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. |
accountId | uuid | The Sales account (company) this person works for. |
website | string | An http(s) link or a bare domain such as example.com. |
linkedinUrl | string | http(s) link. |
personalLinkedin | string | http(s) link. |
companyLinkedin | string | http(s) link. |
twitterHandle | string | |
instagram | string | |
whatsappNumber | string | Up to 20 characters. |
addressLine1 | string | |
addressLine2 | string | |
city | string | |
state | string | |
postalCode | string | |
country | string | A country name, or a 2- or 3-letter ISO code. Always returned as the 2-letter code, e.g. DE. |
taxId | string | Up to 50 characters. |
timezone | string | An IANA zone name such as Europe/Berlin (not a fixed offset). |
dateOfBirth | date | YYYY-MM-DD, between 1900-01-01 and today. |
workAnniversary | date | YYYY-MM-DD, between 1900-01-01 and one year from today. |
tags | string[] | Free-text tags. |
notes | string | |
consentMarketing | boolean | Leave it out to use your organisation's setting for new contacts. |
consentWhatsapp | boolean | Leave it out to use your organisation's setting for new contacts. |
lawfulBasis | string | Up to 50 characters. |
externalId | string | Your system's id for this person. |
externalSource | string | Your system's name, e.g. billing-app. |
customFields | object | Your custom fields, keyed by fieldKey — see custom fields. |
- Duplicate check. With
checkDuplicates=truea match returns 409 “This looks like an existing contact” anddata={"duplicates":[{"id","name","email","phone","ownerName","reason"}],"hidden":0}.hiddencounts matches the key's user can't see. - Permissions. Leave
consentMarketingandconsentWhatsappout and the contact follows your organisation's setting for new contacts. Sendfalseif this person has said no. - Response
createdAtcan 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
}
}/api/v1/sales/contacts/{id}Update a contact
Send only the fields you want to change.
JSON body (43 fields)
| Field | Type | Notes |
|---|---|---|
expectedVersion | integer | The entityVersion you last read. If someone saved since, you get 409 with the current record in data. Leave it out for last-write-wins. |
firstName | string | Up to 100 characters. |
lastName | string | Up to 100 characters. |
email | string | A valid email address. Stored without surrounding spaces. |
phone | string | Up to 20 characters. |
mobile | string | Up to 20 characters. |
companyName | string | If it matches exactly one of your accounts by name, the contact is linked to it. |
jobTitle | string | |
department | string | |
contactType | string | lead, prospect, customer, partner or vendor. |
status | string | active, inactive, unqualified or converted. |
lifecycleStage | string | lead, cadence, mql, sql, customer, nurture or not_interested. |
leadSource | string | A value from your lead source list — see IDs and lists. |
industry | string | A value from your industry list. |
leadScore | integer | 0–100. If your organisation has lead-scoring rules, the score is recalculated and may replace this value. |
estimatedDealValue | number | 0 or more. |
assignedTo | string | Owner's userId. "" removes the owner. |
accountId | string | The Sales account. "" unlinks it. |
website | string | An http(s) link or a bare domain such as example.com. |
linkedinUrl | string | http(s) link. |
personalLinkedin | string | http(s) link. |
companyLinkedin | string | http(s) link. |
twitterHandle | string | |
instagram | string | |
whatsappNumber | string | Up to 20 characters. |
addressLine1 | string | |
addressLine2 | string | |
city | string | |
state | string | |
postalCode | string | |
country | string | A country name, or a 2- or 3-letter ISO code. Always returned as the 2-letter code, e.g. DE. |
taxId | string | Up to 50 characters. |
timezone | string | An IANA zone name such as Europe/Berlin (not a fixed offset). |
dateOfBirth | date | YYYY-MM-DD, between 1900-01-01 and today. |
workAnniversary | date | YYYY-MM-DD, between 1900-01-01 and one year from today. |
tags | string[] | Free-text tags. |
notes | string | |
consentMarketing | boolean | false also stops email to this address everywhere in the CRM. |
consentWhatsapp | boolean | |
lawfulBasis | string | Up to 50 characters. |
externalId | string | Your system's id for this person. |
externalSource | string | Your system's name, e.g. billing-app. |
customFields | object | Your 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,statusandlifecycleStagecan be changed but not cleared."assignedTo": ""removes the owner;"accountId": ""unlinks the account. dateOfBirth,workAnniversaryandtimezone: sendnullto clear.customFieldsreplaces 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
}
}/api/v1/sales/contacts/{id}Delete a contact
Removes the contact. It no longer appears in lists and returns 404.
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"
}/api/v1/sales/contacts/lifecycle-stageSet the lifecycle stage of many contacts
Moves up to 1,000 contacts to one lifecycle stage.
JSON body
| Field | Type | Notes |
|---|---|---|
contactIdsrequired | uuid[] | 1–1,000 contact ids. |
stagerequired | string | lead, 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
}
}Accounts
The companies your contacts work for (Accounts in the app).
/api/v1/core/accountsList accounts
Companies your contacts belong to. Newest first. Paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
templateSlug | string | Send sales-crm to get Sales accounts only. |
search | string | Matches name, domain or email. |
accountType | string | |
status | string | |
labelIds | uuid[] | |
page | integer | Page number, starting at 0. Default 0. |
size | integer | Rows 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
}
}/api/v1/core/accounts/{id}Get an account
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
}
}/api/v1/core/accountsCreate an account
JSON body (27 fields)
| Field | Type | Notes |
|---|---|---|
templateSlugrequired | string | Always sales-crm for Sales. Can't be changed later. |
namerequired | string | Up to 255 characters. |
legalName | string | |
domain | string | e.g. example.com. |
website | string | |
industry | string | Free text. |
employeeCount | integer | 0 or more. |
annualRevenue | number | 0 or more. |
phone | string | |
email | string | A valid email address. |
addressLine1 | string | |
addressLine2 | string | |
city | string | |
state | string | |
postalCode | string | |
country | string | Country name or ISO code; returned as the 2-letter code. |
linkedinUrl | string | |
description | string | |
accountType | string | prospect (default), customer, partner or vendor. |
status | string | active (default) or inactive. |
assignedTo | uuid | Owner's userId. |
parentAccountId | uuid | Parent account, for groups of companies. |
source | string | |
tags | string[] | |
externalId | string | |
externalSource | string | |
customFields | object | Keyed 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
}
}/api/v1/core/accounts/{id}Update an account
Send only the fields you want to change. Left-out fields keep their value.
JSON body (26 fields)
| Field | Type | Notes |
|---|---|---|
name | string | Up to 255 characters. |
legalName | string | |
domain | string | e.g. example.com. |
website | string | |
industry | string | Free text. |
employeeCount | integer | 0 or more. |
annualRevenue | number | 0 or more. |
phone | string | |
email | string | A valid email address. |
addressLine1 | string | |
addressLine2 | string | |
city | string | |
state | string | |
postalCode | string | |
country | string | Country name or ISO code; returned as the 2-letter code. |
linkedinUrl | string | |
description | string | |
accountType | string | prospect, customer, partner or vendor. |
status | string | active or inactive. |
assignedTo | uuid | Owner's userId. Can be changed but not removed ("" is ignored). |
parentAccountId | uuid | Parent account, for groups of companies. |
source | string | |
tags | string[] | |
externalId | string | |
externalSource | string | |
customFields | object | Keyed by fieldKey. |
""is saved as an empty value (and clearscountry).accountTypeandstatuscan 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"
}
}/api/v1/core/accounts/{id}Delete an account
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"
}Deals
Opportunities moving through your pipeline.
/api/v1/sales/dealsList deals
Filter, sort and page through deals.
Query parameters
| Name | Type | What it does |
|---|---|---|
search | string | Matches the deal title and the contact's name or company. |
status | string | open, won, lost or abandoned. |
tab | string | A ready-made view: open, mine, closingThisMonth, pastClose, idle, noCloseDate, won, lost, all or changed. |
pipelineId | uuid | |
stageId | string | A stage id, or none for deals without a stage. |
assignedTo | uuid | |
unassigned | boolean | |
contactId | uuid | |
labelIds | uuid[] | |
ids | uuid[] | Only these deals. |
close | string | thisMonth, next30, past or none (expected close date). |
attention | string | overdue, idle or noCloseDate (open deals only). |
sort | string | created (default), title, contact, stage, value, weighted, probability, close_date, days_in_stage, last_update, next_step, assigned_to, source or board. |
dir | string | desc (default) or asc. |
then | string | Second sort key (same values as sort). |
thenDir | string | desc (default) or asc. |
tz | string | IANA zone that defines “today” for close-date and overdue filters. Default UTC. |
page | integer | Page number, starting at 0. Default 0. |
size | integer | Rows per page, 1–100. Default 20. Larger values are cut to 100. |
- List rows also carry
contactName,contactCompany,contactEmail,labels,lastActivityAt,nextTaskTitle,nextTaskDueDateandstageEnteredAt.
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
}
}/api/v1/sales/deals/{id}Get a deal
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
}
}/api/v1/sales/dealsCreate a deal
JSON body (15 fields)
| Field | Type | Notes |
|---|---|---|
dealTitlerequired | string | Up to 255 characters. |
statusrequired | string | open, 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. |
dealValue | number | 0 or more. Stored with 2 decimals (extra decimals are rounded). |
currency | string | A 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.” |
pipelineId | uuid | Only used to pick the starting stage when you don't send stageId. |
stageId | uuid | A stage of one of your Sales pipelines. The deal's pipeline always follows its stage. |
probability | integer | 0–100. Leave it out to use the stage's probability. |
expectedCloseDate | date | YYYY-MM-DD. |
contactId | uuid | Main contact. |
accountId | uuid | Account (company). |
assignedTo | uuid | Owner's userId; must be a member of your organisation. |
description | string | |
leadSource | string | Up to 100 characters. |
tags | string[] | |
customFields | object | Keyed by fieldKey. |
- No
stageId? Anopendeal starts in the first open stage ofpipelineId, or of your default pipeline. - If the starting stage has an approval gate, the deal is saved without a stage and
pendingApprovalRequestIdis set until someone approves. Awon/loststatus sent with it is saved asopenuntil then. - A deal created
wonorlostgets itswonAt/lostAtat once (its expected close date when that is in the past); created won also sends thedeal.wonwebhook — 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
}
}/api/v1/sales/deals/{id}Update a deal
Send only the fields you want to change: move stage, change value, win or lose.
JSON body (16 fields)
| Field | Type | Notes |
|---|---|---|
dealTitle | string | Up to 255 characters. |
status | string | open, 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. |
dealValue | number | 0 or more. Stored with 2 decimals (extra decimals are rounded). |
currency | string | A currency code such as EUR; it can't be emptied (400). For a deal, its line items follow. |
stageId | uuid | A stage of one of your Sales pipelines. The deal's pipeline always follows its stage. |
probability | integer | 0–100. |
expectedCloseDate | date | YYYY-MM-DD. |
contactId | uuid | Main contact. |
accountId | uuid | The Sales account. "" unlinks it. |
assignedTo | string | Owner's userId. "" removes the owner. |
description | string | |
leadSource | string | Up to 100 characters. |
tags | string[] | |
customFields | object | Keyed by fieldKey. |
lostReason | string | Why it was lost. |
lostReasonDetails | string |
- Left-out or
nullfields keep their value."assignedTo": ""removes the owner. - Win, lose or reopen: move the deal to a won, lost or open stage — send just
stageIdand the status follows (a won stage makes itwon, an open stage reopens a won or lost deal). Send juststatusand 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). AstageIdsent 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.wonsetswonAt;lost/abandonedsetlostAt; 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
}
}/api/v1/sales/deals/{id}Delete a deal
Removes the deal and cancels any approval waiting on it.
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"
}/api/v1/sales/deals/{id}/historyA deal's history
Stage moves, value changes and close-date changes, newest first. Not paged.
eventType:created,stage,valueorclose_date.source:user,approvalorsystem.
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"
}
]
}/api/v1/sales/deals/changesDeals 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.
Query parameters
| Name | Type | What it does |
|---|---|---|
days | integer | Default 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"
}
]
}Deal line items and notes
What's in a deal, and what your team wrote about it.
/api/v1/sales/deal-line-itemsList a deal's line items
Not paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
dealIdrequired | uuid |
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
}
]
}/api/v1/sales/deal-line-itemsAdd a line item
JSON body
| Field | Type | Notes |
|---|---|---|
dealIdrequired | uuid | |
namerequired | string | Up to 255 characters. |
productId | uuid | A 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 …”). |
quantity | number | More than 0. Default 1. |
unitPrice | number | 0 or more. Default: the product's price (same currency only), else 0. |
discountPercent | number | 0–100. Default 0. |
currency | string | Always 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. |
displayOrder | integer | Default 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
}
}/api/v1/sales/deal-line-items/{id}Update a line item
Send only what changes. The deal and product can't be changed.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | |
quantity | number | |
unitPrice | number | |
discountPercent | number | |
currency | string | Only the deal's currency is accepted (a line can't change currency on its own). |
displayOrder | integer |
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
}'/api/v1/sales/deal-line-items/{id}Remove a line item
Deletes it permanently.
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"
}/api/v1/sales/deal-notesList a deal's notes
Newest first. Paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
dealIdrequired | uuid | |
page | integer | Page number, starting at 0. Default 0. |
size | integer | Rows 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
}
}/api/v1/sales/deal-notesAdd a note to a deal
JSON body
| Field | Type | Notes |
|---|---|---|
dealIdrequired | uuid | |
contentrequired | string | |
isPrivaterequired | boolean |
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
}'/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.
JSON body
| Field | Type | Notes |
|---|---|---|
content | string | |
isPrivate | boolean |
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)."
}'/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.
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"
}Tasks
Follow-ups for your team, on a deal, a contact, or on their own.
/api/v1/sales/tasksList tasks
Paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
entityType | string | deal or contact. |
entityId | uuid | |
status | string | A status, or open for anything not completed or cancelled. |
assignedTo | uuid | |
dueBefore | date | Due on or before (YYYY-MM-DD). |
dueAfter | date | Due on or after. |
sort | string | createdAt (default, newest first) or dueDate (soonest first, undated last). |
page | integer | Page number, starting at 0. Default 0. |
size | integer | Rows 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
}
}/api/v1/sales/tasks/{id}Get a task
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"
}
}/api/v1/sales/tasksCreate a task
JSON body
| Field | Type | Notes |
|---|---|---|
titlerequired | string | Up to 255 characters. |
priorityrequired | string | low, medium, high or urgent. |
statusrequired | string | pending, in_progress, completed or cancelled. |
isEscalatedrequired | boolean | Send false for a normal task. |
entityType | string | deal or contact. Leave both entityType and entityId out for a standalone task. |
entityId | uuid | The deal or contact id. It must exist in your organisation. |
description | string | |
taskType | string | Free text up to 50 characters, e.g. call. |
dueDate | date | YYYY-MM-DD (a date, no time). |
recurrence | string | daily, weekly or monthly. Completing the task creates the next one. |
reminderDate | date-time | When to remind the owner in the app. |
assignedTo | uuid | Owner's userId. |
escalatedTo | uuid | Who 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"
}
}/api/v1/sales/tasks/{id}Update or complete a task
Send only what changes.
JSON body
| Field | Type | Notes |
|---|---|---|
title | string | Up to 255 characters. |
priority | string | low, medium, high or urgent. |
status | string | pending, in_progress, completed or cancelled. |
isEscalated | boolean | Send false for a normal task. |
entityType | string | deal or contact. Leave both entityType and entityId out for a standalone task. |
entityId | uuid | The deal or contact id. It must exist in your organisation. |
description | string | |
taskType | string | Free text up to 50 characters, e.g. call. |
dueDate | date | YYYY-MM-DD (a date, no time). |
recurrence | string | daily, weekly or monthly. Completing the task creates the next one. |
reminderDate | date-time | When to remind the owner in the app. |
assignedTo | string | Owner's userId. "" removes the owner. |
escalatedTo | uuid | Who to escalate to, when isEscalated is true. |
clearReminder | boolean | true removes the reminder. |
"status": "completed"setscompletedAtandcompletedBy, and for a repeating task creates the next one."assignedTo": ""removes the owner;"entityType": ""detaches the task;"recurrence": ""stops it repeating."isEscalated": falseclears 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"
}
}/api/v1/sales/tasks/{id}Delete a task
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"
}Activities
The log of calls, meetings and other touchpoints.
/api/v1/sales/activitiesList activities
Calls, meetings, emails and other logged activity. Newest first. Paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
entityType | string | |
entityId | uuid | |
activityType | string | e.g. call. |
page | integer | Page number, starting at 0. Default 0. |
size | integer | Rows per page, 1–100. Default 20. Larger values are cut to 100. |
- Some activities are added automatically (stage moves, notes, emails). Those have
autoSourceset; on update don't send theirsubject,activityType,entityTypeorentityId, even unchanged (400). Send only the fields you're changing, e.g.notesoroutcome.
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
}
}/api/v1/sales/activities/{id}Get an activity
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"
}
}/api/v1/sales/activitiesLog an activity
JSON body
| Field | Type | Notes |
|---|---|---|
entityTyperequired | string | deal or contact. |
entityIdrequired | uuid | The deal or contact id. |
activityTyperequired | string | call, email, meeting, demo, note, task, follow_up, whatsapp or other. |
subjectrequired | string | Up to 255 characters. |
notes | string | |
durationMinutes | integer | More than 0. |
outcome | string | Up to 100 characters. |
location | string | Up to 255 characters. |
scheduledAt | date-time | |
completedAt | date-time | |
assignedTo | uuid | |
participants | uuid[] | Team members' userIds. |
- A
whatsappactivity on a contact needs that contact's WhatsApp permission (403 otherwise). - An unknown
activityTypereturns 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"
}
}/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).
JSON body
| Field | Type | Notes |
|---|---|---|
entityType | string | deal or contact. |
entityId | uuid | The deal or contact id. |
activityType | string | call, email, meeting, demo, note, task, follow_up, whatsapp or other. |
subject | string | Up to 255 characters. |
notes | string | |
durationMinutes | integer | More than 0. |
outcome | string | Up to 100 characters. |
location | string | Up to 255 characters. |
scheduledAt | date-time | |
completedAt | date-time | |
assignedTo | uuid | Owner's userId. "" removes the owner. |
participants | uuid[] | 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"
}'/api/v1/sales/activities/{id}Delete an activity
Deletes it permanently.
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"
}Products
Your catalogue, used by deal line items.
/api/v1/sales/productsList products
Sorted by name. Not paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
activeOnly | boolean | Default 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"
}
]
}/api/v1/sales/productsCreate a product
JSON body
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 255 characters. |
sku | string | Up to 100 characters. Not required to be unique. |
description | string | |
unit | string | e.g. licence, hour. |
unitPrice | number | 0 or more. Default 0. |
currency | string | A currency code such as EUR. Leave it out and the product takes your organisation's currency. |
category | string | |
isActive | boolean | Default 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"
}'/api/v1/sales/products/{id}Update a product
Send only what changes.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 255 characters. |
sku | string | Up to 100 characters. Not required to be unique. |
description | string | |
unit | string | e.g. licence, hour. |
unitPrice | number | 0 or more. |
currency | string | A currency code such as EUR; it can't be emptied (400). For a deal, its line items follow. |
category | string | |
isActive | boolean |
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
}'/api/v1/sales/products/{id}Delete a product
Existing line items keep their name and price.
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"
}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
}
}| dataType | Send |
|---|---|
text | a string |
number | a number |
boolean | true / false |
date | "YYYY-MM-DD" |
select | one of the field's options |
multiselect | an 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,
customFieldsreplaces the whole set — leaving an active field out clears it. Read the record first and send the full set back.
/api/v1/core/custom-fieldsList custom fields
Your own fields on contacts, deals or accounts. Not paged. Includes switched-off fields (isActive: false); write only active ones.
Query parameters
| Name | Type | What it does |
|---|---|---|
templateSlugrequired | string | sales-crm |
entityTyperequired | string | contact, 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
}
]
}/api/v1/core/labelsList labels
Not paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
activeOnly | boolean | Default 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"
}
]
}/api/v1/core/entity-labelsLabels on a record
Query parameters
| Name | Type | What it does |
|---|---|---|
entityTyperequired | string | contact, account or deal. |
entityIdrequired | uuid |
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"
}
]
}/api/v1/core/entity-labelsSet the labels on a record
Replaces the record's labels with exactly this list. [] removes them all.
JSON body
| Field | Type | Notes |
|---|---|---|
entityTyperequired | string | contact, account or deal. |
entityIdrequired | uuid | |
labelIdsrequired | uuid[] |
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"
}
]
}Bulk loads and staying in sync
Push many records at once, import a file, and hear about changes.
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
externalSource+externalId— your system's own id. Use a real name for the source, e.g. billing-app. The generic namesapi,csvandwebhookdon't count, and their ids are not stored.- Email, ignoring case and spaces.
- 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
nullor 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 byaccountDomain, thencompanyName, 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
externalIdis 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.
/api/v1/integration/ingest/contactsPush 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.
Query parameters
| Name | Type | What it does |
|---|---|---|
module | string | sales (default). |
source | string | Written to externalSource on records that don't name their own. Default api. |
Body: a JSON array of objects with these fields (33 fields)
| Field | Type | Notes |
|---|---|---|
firstName | string | If missing, the email (or “Unknown”) is used for a new contact. |
lastName | string | |
email | string | Used to find an existing contact. |
phone | string | Used to find an existing contact (last 10 digits). |
mobile | string | |
companyName | string | Finds or creates the account. |
accountDomain | string | Finds the account by domain first. |
jobTitle | string | |
department | string | |
industry | string | Unknown values are added to your list. |
leadSource | string | Unknown values are added to your list. |
contactType | string | Used only when creating. Default lead. |
website | string | |
linkedinUrl | string | Personal LinkedIn. |
companyLinkedin | string | |
twitterHandle | string | |
instagram | string | |
whatsappNumber | string | |
addressLine1 | string | |
addressLine2 | string | |
city | string | |
state | string | |
postalCode | string | |
country | string | Name or ISO code; an unknown country is dropped with a warning. |
estimatedDealValue | number | |
leadScore | integer | |
tags | string[] | |
notes | string | |
dateOfBirth | date | |
workAnniversary | date | |
timezone | string | |
externalSource | string | Your system's name. Needed for externalId matching. |
externalId | string | Your 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": []
}
}/api/v1/integration/ingest/accountsPush accounts (create or update)
Up to 1,000 accounts per call. Matched by externalId, then domain, then name.
Query parameters
| Name | Type | What it does |
|---|---|---|
module | string | sales (default). |
source | string |
Body: a JSON array of objects with these fields (23 fields)
| Field | Type | Notes |
|---|---|---|
name | string | If missing, the domain is used for a new account. |
domain | string | Matched after externalId; normalised (no scheme, path or www.). |
website | string | |
industry | string | |
phone | string | |
email | string | |
legalName | string | |
employeeCount | integer | |
annualRevenue | number | |
addressLine1 | string | |
addressLine2 | string | |
city | string | |
state | string | |
postalCode | string | |
country | string | |
linkedinUrl | string | |
description | string | |
accountType | string | |
status | string | |
source | string | |
tags | string[] | |
externalSource | string | |
externalId | string |
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": []
}
}Import a CSV file
For one-off loads from a spreadsheet.
/api/v1/integration/import/contacts/previewPreview a CSV file
Reads the header row and the first 5 rows, and suggests which column goes to which field.
Form fields (multipart/form-data)
| Name | Type | What it does |
|---|---|---|
filerequired | file | A 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"
}
}
}/api/v1/integration/import/contactsImport 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.
Form fields (multipart/form-data)
| Name | Type | What it does |
|---|---|---|
filerequired | file | The CSV file. |
mappingrequired | string | JSON text: {"field": "CSV header"}, e.g. from the preview's suggestedMapping. Custom fields as cf.<fieldKey>. |
module | string | sales (default). |
onDuplicate | string | update (default), skip or create. |
source | string | Default csv. |
- Empty cells never clear a value.
- Extra CSV-only fields:
ownerEmail(a team member with Sales access) andlifecycleStage(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": []
}
}Webhooks
Get told when something changes, instead of asking — and a no-code way to receive leads.
Notifications to your system
Sales › IntegrationsAn owner adds your https:// address, chooses the events and sets a signing secret. Then, after each change, we POST to your address:
| Event | When |
|---|---|
contact.created | A contact is created (not by bulk push or CSV import). |
contact.updated | A contact is edited. |
deal.created | A deal is created. |
deal.updated | A deal is edited, moves stage, or is marked lost (status: lost). |
deal.won | A 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"
}
}datais a short summary: contacts sendfirstName,lastName,email,status; deals senddealTitle,status,dealValue,currency,contactId. Fetch the record byentityIdfor 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-Deliveryto ignore repeats. - Check
X-Verdeshell-Signature-V2and 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 › IntegrationsThe 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.
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
updatedAtyou saw as the next starting point. Compare times as dates, not as text: the number of fraction digits varies. - Deals:
sort=last_updateorders by the later ofupdatedAtandlastActivityAt(both on list rows). Stop when both are at or before your last sync, and treat a deal as changed when itsupdatedAtis 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
- Give every record your own
externalSource+externalId, so the next push updates instead of duplicating. - Send changes in batches of up to 1,000 with bulk push, and log the report's
errorsandwarnings. - 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.
Configure Sales
Pipelines, fields, labels, lead routing and scoring, sequences, automations and greetings — set up from code.
Pipelines and stages
Create pipelines, shape their stages, choose what deal cards show, and put approval gates on stages.
/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: …”.
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
}
}/api/v1/core/pipelinesCreate 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.
Query parameters
| Name | Type | What it does |
|---|---|---|
organizationIdrequired | uuid | Your 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
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 100 characters. |
description | string | Up to 255 characters. |
templateSlugrequired | string | sales-crm for Sales. Up to 50 characters. Can't be changed later. |
isDefault | boolean | true makes it the default pipeline; the old default stops being one. Your first pipeline is always the default. |
displayOrder | integer | Position 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: truemoves the default to the new pipeline. templateSlugisn't checked against a list: send exactlysales-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
}
}/api/v1/core/pipelines/{id}Update a pipeline
Send only the fields you want to change. Left-out fields keep their value.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 100 characters. |
description | string | Up to 255 characters. |
displayOrder | integer | Position among your pipelines (lower comes first). |
isActive | boolean | false marks the pipeline inactive. |
isDefault | boolean | true makes it the default pipeline. false is ignored — to change the default, make another pipeline the default. |
- There is no
expectedVersionhere: 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
}
}/api/v1/core/pipelines/{id}/defaultMake a pipeline the default
Makes this pipeline the default for its module; the previous default stops being one. No body.
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
}
}/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.
- 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"
}/api/v1/core/pipeline-stages/{id}Get a stage
One stage by id. A deleted stage returns 404 “Pipeline stage not found with id: …”.
- Unlike the stage list, this answer has no
automationCountorapprovalGateEnabled.
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
}
}/api/v1/core/pipeline-stagesAdd a stage
Adds one stage to a pipeline.
Query parameters
| Name | Type | What it does |
|---|---|---|
organizationIdrequired | uuid | Your organisation id. Another id returns 403. |
JSON body
| Field | Type | Notes |
|---|---|---|
pipelineId | uuid | The 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. |
pipelineKeyrequired | string | Up to 100 characters. An internal key; the built-in Sales stages use sales-crm_pipeline. |
stageNamerequired | string | Up to 100 characters. |
stageColor | string | A hex colour such as #22aa66 (up to 7 characters). |
displayOrderrequired | integer | Position in the pipeline (lower comes first). Other stages are not renumbered. |
probability | integer | 0–100. New deals in this stage take it when they don't send their own. |
idleAfterDays | integer | 1–365. Days with no activity or edit before a deal here counts as idle. Leave it out for the default (30). |
isClosedWon | boolean | true for a won stage. Send true or false. |
isClosedLost | boolean | true for a lost stage. Send true or false. |
templateSlugrequired | string | sales-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
displayOrderand 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
}
}/api/v1/core/pipeline-stages/{id}Update a stage
Send only the fields you want to change. Left-out fields keep their value.
JSON body
| Field | Type | Notes |
|---|---|---|
stageName | string | Up to 100 characters. |
stageColor | string | Hex colour, up to 7 characters. |
displayOrder | integer | Position in the pipeline (lower comes first). |
probability | integer | 0–100. |
idleAfterDays | integer | 1–365, or 0 to go back to the default (30). |
isClosedWon | boolean | Changing it is refused while the stage has an automation or approval gate switched on. |
isClosedLost | boolean | Same rule as isClosedWon. |
pipelineId | uuid | Moves the stage to another of your pipelines. Refused while the stage has an automation or approval gate switched on. |
pipelineKey | string | Up to 100 characters. |
templateSlug | string | Up 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
}
}/api/v1/core/pipeline-stages/{id}Delete a stage
Removes the stage.
- 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"
}/api/v1/core/pipeline-stages/reorderReorder 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).
Query parameters
| Name | Type | What it does |
|---|---|---|
pipelineId | uuid | The 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 byorganizationId+templateSlugquery 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"
}/api/v1/core/pipeline-stages/{stageId}/approval-configGet 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.
- This call doesn't check that the stage exists: an unknown
stageIdalso 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"
}
}/api/v1/core/pipeline-stages/{stageId}/approval-configSet 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.
JSON body
| Field | Type | Notes |
|---|---|---|
isEnabled | boolean | true turns the gate on, false off. On a stage that has never had a gate saved, leaving it out means true. |
decisionMode | string | any (default): the first approver's decision settles it. all: every named approver must approve; one rejection ends it. |
approverIds | uuid[] | 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"
}
}/api/v1/sales/board-settingsGet the deal card fields
Which fields the cards on the deal board show (the deal title always shows). One setting for your whole organisation.
- Until a manager chooses, you get the defaults with
isDefault: trueand noentityVersion: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
}
}/api/v1/sales/board-settingsChoose the deal card fields
Replaces the list of fields deal cards show, for everyone in your organisation.
JSON body
| Field | Type | Notes |
|---|---|---|
cardFieldsrequired | string[] | 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. |
expectedVersion | integer | The entityVersion you last read. If someone saved since, you get 409. Leave it out for last-write-wins. |
expectNoSettings | boolean | Send 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
cardFieldsreturns 400 “Validation failed”. - 409 conflicts: a stale
expectedVersiongives “Someone else changed the card fields since you opened them. Reload and try again.”;expectNoSettings: truewhen 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
}
}Sales targets
Revenue and deal targets for people and teams.
/api/v1/sales/targetsList targets
Your targets, newest first. Paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
period | string | Exact period, e.g. 2026-Q4. |
targetType | string | revenue, deals or leads. |
page | integer | Page number, starting at 0. Default 0. |
size | integer | Rows 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
}
}/api/v1/sales/targets/{id}Get a target
One target by id. A deleted target returns 404 “Sales Target not found with id: …”.
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"
}
}/api/v1/sales/targetsCreate a target
Sets a revenue, deal or lead goal for one period, for one person or the whole team.
JSON body
| Field | Type | Notes |
|---|---|---|
periodrequired | string | A year (2026), a quarter (2026-Q2) or a month (2026-06). Up to 20 characters. |
targetTyperequired | string | revenue (sum of won deal values), deals (number of won deals) or leads (number of new lead contacts). |
targetValuerequired | number | 0 or more. |
achievedValue | number | 0 or more. Default 0. Not used for progress — see the notes. |
currency | string | Up 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. |
assignedTo | uuid | A 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
targetTypeoutside 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.
achievedValueis 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"
}
}/api/v1/sales/targets/{id}Update a target
Send only the fields you want to change. Left-out fields keep their value.
JSON body
| Field | Type | Notes |
|---|---|---|
period | string | A year, quarter or month, as on create. |
targetType | string | revenue, deals or leads. |
targetValue | number | 0 or more. |
achievedValue | number | 0 or more. |
currency | string | Up to 3 characters. Can be changed but not cleared. |
assignedTo | uuid | A team member's userId. Can be changed but not cleared. |
- Same checks as on create for
period, the values,targetTypeandassignedTo.
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"
}
}/api/v1/sales/targets/{id}Delete a target
Removes the target. It no longer appears in lists and returns 404.
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"
}Custom fields, labels and lists
Your own fields, colour labels, and the lead source and industry lists.
/api/v1/core/custom-fieldsCreate a custom field
Adds your own field to contacts, deals or accounts. Records then store its value in customFields under the fieldKey.
JSON body
| Field | Type | Notes |
|---|---|---|
templateSlugrequired | string | sales-crm. Can't be changed later. |
entityTyperequired | string | contact, deal or account. Can't be changed later. |
fieldKeyrequired | string | The 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. |
labelrequired | string | The name people see. Up to 150 characters. |
dataTyperequired | string | text, number, date, boolean, select or multiselect. Can't be changed later. |
options | string[] | The choices, as plain strings. Required (at least one) for select and multiselect. |
required | boolean | Default false. When true, a save that sends customFields must include a value for this field. |
displayOrder | integer | Position 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→ aYYYY-MM-DDstring;select→ one string fromoptions;multiselect→ an array of strings fromoptions, 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,tokenandsecretare reserved: 400 “fieldKey 'code' is reserved — choose another key”. - A
select/multiselectfield without options: 400 “options are required for a select / multiselect field”. - An unknown
entityTypeordataType: 400, e.g. “dataType must be one of [text, number, date, boolean, select, multiselect]”. requiredonly applies when a save sendscustomFields. A record created withoutcustomFieldsat 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"
}
}/api/v1/core/custom-fields/{id}Update a custom field
Send only what changes. fieldKey, dataType, entityType and templateSlug can't be changed.
JSON body
| Field | Type | Notes |
|---|---|---|
label | string | Up to 150 characters. |
options | string[] | Replaces the whole list. A select/multiselect field can't be left with none. |
required | boolean | |
displayOrder | integer | Lower comes first. This is how you reorder fields. |
isActive | boolean | false 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"
}
}/api/v1/core/custom-fields/{id}Delete a custom field
Removes the field definition. Its key can then be used again.
- Values already stored on records are not erased: they stay in each record's
customFieldsunder 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"
}/api/v1/core/custom-fields/usageRecords using each custom field
How many records carry a value under each key. Keys with no records are left out.
Query parameters
| Name | Type | What it does |
|---|---|---|
templateSlugrequired | string | sales-crm |
entityTyperequired | string | contact, 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
}
}/api/v1/core/custom-fields/filter-usageLists 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.
Query parameters
| Name | Type | What it does |
|---|---|---|
templateSlugrequired | string | sales-crm |
entityTyperequired | string | contact, 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
}
}
}/api/v1/core/labelsCreate a label
Adds a label to your organisation's list. Put it on records with set the labels on a record.
JSON body
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 60 characters. Spaces around it are trimmed. Unique in your organisation, ignoring case. |
color | string | Up to 20 characters, e.g. #f59e0b. Not checked for format. |
description | string | Up to 255 characters. |
displayOrder | integer | Lower comes first. Default 0. |
isActive | boolean | Default 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"
}
}/api/v1/core/labels/{id}Update a label
Rename, recolour, describe, reorder or archive a label. Send only what changes.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 60 characters. Unique in your organisation, ignoring case. |
color | string | Up to 20 characters. |
description | string | Up to 255 characters. |
displayOrder | integer | Lower comes first. |
isActive | boolean | false archives the label; true restores it. Records keep it either way. |
coloranddescriptioncan 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"
}
}/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).
- 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"
}/api/v1/sales/contact-field-optionsAdd 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.
JSON body
| Field | Type | Notes |
|---|---|---|
fieldrequired | string | lead_source or industry. |
labelrequired | string | The name people see. 1–100 characters after trimming spaces. |
- The
valueis 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 getsopt_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"
}
}/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.
JSON body
| Field | Type | Notes |
|---|---|---|
label | string | New name, 1–100 characters. The stored value never changes, so no contact is touched. |
archived | boolean | true 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"
}
}/api/v1/sales/contact-field-options/orderReorder 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.
JSON body
| Field | Type | Notes |
|---|---|---|
fieldrequired | string | lead_source or industry. |
idsrequired | uuid[] | 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"
}
]
}Lead routing
Rules that choose who owns a new lead.
/api/v1/sales/assignment-rulesList lead routing rules
All rules, in the order they run (lowest priority first, then oldest). Not paged.
assignedCountis how many contacts the rule has assigned;lastAssignedAtis 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"
}
]
}/api/v1/sales/assignment-rulesCreate 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.
JSON body
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 150 characters. |
matchField | string | The 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. |
matchOperator | string | Required when matchField is set. equals, contains, is_set, greater_than or less_than. |
matchValue | string | Up to 500 characters. Required for every operator except is_set. Must be a number for greater_than / less_than. |
strategyrequired | string | direct (always the same person) or round_robin (takes turns through a pool). |
assignedUserId | uuid | Required for direct. A team member's userId. |
poolUserIds | uuid[] | Required (at least one) for round_robin. Team members' userIds. |
priority | integer | Lower runs first. Default 0. Rules with the same priority run oldest first. |
isActive | boolean | Default true. Inactive rules never route. |
- Matching.
equalsignores case, and compares numbers as numbers (50000equals50000.00).containsignores case.is_setmeans the field has any value.countrycompares as the 2-letter code (a name like “Germany” works too); withcontainsit reads the English name.leadSourceandindustryaccept the value or the label; withcontainsthey read the label. - Who can receive leads. Every person in
assignedUserId/poolUserIdsmust 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
directrule 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"
}
}/api/v1/sales/assignment-rules/{id}Update a lead routing rule
Send only what changes.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 150 characters. Can't be blank. |
matchField | string | Send "" to turn the rule into a catch-all (this also clears matchOperator and matchValue). Same values as on create. |
matchOperator | string | Required when matchField is set. equals, contains, is_set, greater_than or less_than. |
matchValue | string | Up to 500 characters. Required for every operator except is_set. Must be a number for greater_than / less_than. |
strategy | string | direct or round_robin. |
assignedUserId | uuid | Required for direct. A team member's userId. |
poolUserIds | uuid[] | Replaces the whole pool. Can't be empty for a round_robin rule. |
priority | integer | Lower runs first. To reorder many rules at once, use reorder rules. |
isActive | boolean |
- 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
matchOperatortois_setclearsmatchValue. - Blank
name: 400 “name must not be blank”. Blankstrategy: 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"
}
}/api/v1/sales/assignment-rules/reorderReorder 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.
JSON body
| Field | Type | Notes |
|---|---|---|
orderedRuleIdsrequired | uuid[] | 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"
}
]
}/api/v1/sales/assignment-rules/{id}Delete a lead routing rule
Contacts it already assigned keep their owner.
- 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"
}/api/v1/sales/assignment-rules/applyRoute 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.
- The message says what happened: “Assigned {assigned} of {scanned} unassigned contact(s)”.
scannedcounts 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
}
}/api/v1/sales/assignment-rules/previewPreview 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.
JSON body
| Field | Type | Notes |
|---|---|---|
matchField | string | As on create. Leave it out to count a catch-all (matches all). |
matchOperator | string | As on create. |
matchValue | string | As on create. |
- Looks at up to 5,000 unassigned contacts, newest first.
truncated: truemeans 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
}
}/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).
matched: falsemeans no active rule would assign anyone;ruleId,ruleName,strategyandassigneeUserIdare then missing.alreadyAssigned: truemeans the contact has an owner, so routing wouldn't actually change it.- For a pool,
assigneeUserIdis 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
}
}Lead scoring
Rules that score leads so your team knows who to chase first.
/api/v1/sales/lead-scoring/rulesList scoring rules
Your organisation's lead-scoring rules, in displayOrder. Not paged.
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"
}
]
}/api/v1/sales/lead-scoring/rulesCreate a scoring rule
Adds one rule: “if field operator value, add points”.
JSON body
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 150 characters. |
fieldrequired | string | What 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). |
operatorrequired | string | equals, not_equals, contains, is_set, greater_than or less_than. |
value | string | Up to 500 characters. Needed for every operator except is_set. Must be a number for greater_than and less_than. |
pointsrequired | integer | −1000 to 1000. Negative points lower the score. |
isActive | boolean | Default true. Only active rules score. |
displayOrder | integer | Position 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
leadScoreyou send on a contact is kept as it is. - Text compares ignore upper/lower case and surrounding spaces. A number field with
equalscompares as numbers (50000matches50000.00).countrycompares as the ISO code, soGermanyandDEmean the same.leadSourceandindustryaccept the list value or its label. equals,not_equalsandcontainsnever 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"
}
}/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.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 150 characters. |
field | string | What 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). |
operator | string | equals, not_equals, contains, is_set, greater_than or less_than. |
value | string | Up to 500 characters. Needed for every operator except is_set. Must be a number for greater_than and less_than. |
points | integer | −1000 to 1000. Negative points lower the score. |
isActive | boolean | Default true. Only active rules score. |
displayOrder | integer | Position in the list. |
- A changed condition is checked with the same rules as create. A new
pointsvalue 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"
}
}/api/v1/sales/lead-scoring/rules/{id}Delete a scoring rule
Removes the rule. Existing scores change on the next recalculation.
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"
}/api/v1/sales/lead-scoring/recalculateRe-score all contacts
Applies the current active rules to every contact in your organisation now. No body.
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
}
}/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.
activeRuleCount0 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
leadScoreuntil 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
}
]
}
}/api/v1/sales/lead-scoring/automationsList score automations
Actions that run when a contact's score crosses a threshold. Lowest threshold first. Not paged.
firedCount= how many contacts it has acted on;lastFiredAtis missing until it first fires.targetLabelis the sequence name forenroll_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
}
]
}/api/v1/sales/lead-scoring/automationsCreate 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).
JSON body
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 120 characters. |
thresholdrequired | integer | 1–100. Fires when a contact's score rises from below this number to this number or above. |
actionTyperequired | string | enroll_sequence, create_task, set_lifecycle_stage or notify_owner. |
targetId | uuid | The sequence id. Needed for enroll_sequence; the sequence must be active and have at least one step. |
targetValue | string | Up 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>”. |
isEnabled | boolean | Default 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 ofnurtureornot_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
}
}/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.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 120 characters. A blank name is ignored. |
threshold | integer | 1–100. |
isEnabled | boolean |
- 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
}
}/api/v1/sales/lead-scoring/automations/{id}Delete a score automation
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"
}/api/v1/sales/lead-scoring/automations/{id}/runRun for contacts already above
Runs the automation for contacts whose stored score is already at or above its threshold, oldest contact first. No body.
Query parameters
| Name | Type | What it does |
|---|---|---|
after | uuid | Continue 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
truncatedis true andnextAftersays 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
}
}Sequences
Cadences of follow-up steps, and enrolling contacts in them.
/api/v1/sales/sequencesList sequences
All your sequences with their steps, newest first. Not paged.
enrollListIdappears 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"
}
]
}/api/v1/sales/sequences/{id}Get a sequence
One sequence with its steps in run order. Unknown id: 404 “Sequence not found: <id>”.
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"
}
}/api/v1/sales/sequences/opt-out-linesP.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.
- 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."
}
]
}/api/v1/sales/sequencesCreate a sequence
Creates an empty sequence. Add steps with add a step.
JSON body
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 150 characters. |
description | string | |
isActive | boolean | Default true. false = paused. |
includeUnsubscribe | boolean | Default true: every email gets an unsubscribe footer and a one-click unsubscribe header. |
optOutLine | string | The key of a “P.S.” opt-out line — see P.S. lines. Needed when includeUnsubscribe is false. |
dailySendCap | integer | 1–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"
}
}/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.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 150 characters. Can't be blank (400 “A sequence needs a name”). |
description | string | |
isActive | boolean | false = paused, true = running. |
includeUnsubscribe | boolean | |
optOutLine | string | A P.S. line key. |
dailySendCap | integer | 1–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"
}
}/api/v1/sales/sequences/{id}Delete a sequence
Removes the sequence. Its active enrolments stop at once (stoppedReason: sequence_deleted).
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"
}/api/v1/sales/sequences/{id}/stepsAdd a step
Adds one email or task step to the sequence. Returns the step.
JSON body
| Field | Type | Notes |
|---|---|---|
actionTyperequired | string | email (sends an email to the contact) or task (creates a task on the contact for its owner, due that day). |
stepOrder | integer | The step's position. Default: after the last step. Two steps can't share a number. |
delayDays | integer | Days to wait before this step: after enrolment for the first step, after the previous step for the others. 0 or more. Default 0. |
emailSubject | string | Up to 255 characters. Needed for an email step. |
emailBody | string | The email text. Can use {{variables}} such as {{firstName}}; {{firstName|there}} uses the text after | when the value is empty. |
taskTitle | string | Up to 255 characters. Needed for a task step. |
taskDescription | string | |
conditionType | string | Run this step only if: opened, not_opened, clicked or not_clicked. Leave it out to always run it. |
replyToPrevious | boolean | Email 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
}
}/api/v1/sales/sequences/steps/{stepId}Update a step
Send only the fields you want to change.
JSON body
| Field | Type | Notes |
|---|---|---|
actionType | string | email (sends an email to the contact) or task (creates a task on the contact for its owner, due that day). |
stepOrder | integer | The step's position. Two steps can't share a number. |
delayDays | integer | Days to wait before this step: after enrolment for the first step, after the previous step for the others. 0 or more. |
emailSubject | string | Up to 255 characters. Needed for an email step. |
emailBody | string | The email text. Can use {{variables}} such as {{firstName}}; {{firstName|there}} uses the text after | when the value is empty. |
taskTitle | string | Up to 255 characters. Needed for a task step. |
taskDescription | string | |
conditionType | string | Run 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. |
replyToPrevious | boolean | Email steps: send as a reply to this enrolment's previous email (same conversation). |
variantPercent | integer | 1–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
variantPercenton 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
}
}/api/v1/sales/sequences/steps/{stepId}Delete a step
Removes the step. Contacts waiting on it move on to the next step.
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"
}/api/v1/sales/sequences/{id}/steps/reorderReorder steps
Renumbers the steps 1, 2, 3 … in the order you list them. Returns the steps.
JSON body
| Field | Type | Notes |
|---|---|---|
orderedStepIdsrequired | uuid[] | 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
}
]
}/api/v1/sales/sequences/run-dueRun 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.
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
}
}/api/v1/sales/sequence-enrollmentsList enrolments
Enrolments of one contact, or everyone enrolled in one sequence. Newest first. Not paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
contactId | uuid | A contact's enrolments in any sequence. |
sequenceId | uuid | Everyone 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,completedorstopped. A stopped one hasstoppedReason, e.g.manual,sequence_deleted,contact_deleted,converted,not_interested,bounced,marked_spamorsend_failed.lastErrorsays why a step last failed.enrolledVia:manual,automation(a stage or score automation) orlist.
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"
}
]
}/api/v1/sales/sequence-enrollmentsEnrol a contact
Puts one contact into a sequence. Its first step is due after the first step's delayDays.
JSON body
| Field | Type | Notes |
|---|---|---|
sequenceIdrequired | uuid | An active sequence with at least one step. |
contactIdrequired | uuid |
- Who can be enrolled. Not a customer (
lifecycleStageorcontactTypecustomer), not markednot_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"
}
}/api/v1/sales/sequence-enrollments/bulkEnrol 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.
JSON body
| Field | Type | Notes |
|---|---|---|
sequenceIdrequired | uuid | An active sequence with at least one step. |
contactIdsrequired | uuid[] | 1–100 contact ids. Repeats are counted once. |
- Skip
reason:already_enrolled,unknown_contact,converted,not_interested,erased,no_email,suppressedorno_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"
}
]
}
}/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.
- 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"
}Stage automations
What happens automatically when a deal enters a stage.
/api/v1/sales/stage-automationsList stage automations
Actions that run when a deal enters a pipeline stage. Oldest first. Not paged.
Query parameters
| Name | Type | What it does |
|---|---|---|
stageId | uuid | Only this stage's automations. |
firedCount= how many times the action actually happened;lastFiredAtis 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"
}
]
}/api/v1/sales/stage-automationsCreate a stage automation
“When a deal enters this stage, do this for the deal's main contact.”
JSON body
| Field | Type | Notes |
|---|---|---|
stageIdrequired | uuid | A stage of one of your Sales pipelines. |
actionTyperequired | string | enroll_sequence, send_whatsapp_template or send_email_template. |
targetIdrequired | uuid | The sequence, WhatsApp template or email template to use. It must be in your organisation. |
isEnabled | boolean | Default true. |
- It acts on the deal's
contactId; a deal with no contact is skipped.enroll_sequenceuses the same checks as bulk enrol and is skipped (not an error) on a plan without Sequences.send_email_templategoes from the company address and needs no marketing permission, but never to someone with no address, who unsubscribed or was erased.send_whatsapp_templateneeds 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"
}
}/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.
JSON body
| Field | Type | Notes |
|---|---|---|
isEnabled | boolean |
- 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"
}
}/api/v1/sales/stage-automations/{id}Delete a stage automation
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"
}/api/v1/sales/stage-automations/{id}/runRun for deals already in the stage
Runs this automation for the open deals now in its stage, oldest first. No body.
- At most 200 deals per call, always the 200 oldest — calling again does not continue past them.
totalInStagetells 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
}
}Greetings
Birthday and work-anniversary messages.
/api/v1/sales/contact-date-campaignsList greetings
Your birthday and work-anniversary greetings, newest first. Not paged.
contactListIdis 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"
}
]
}/api/v1/sales/contact-date-campaigns/{id}Get a greeting
Unknown id: 404 “Greeting campaign not found: <id>”.
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"
}
}/api/v1/sales/contact-date-campaignsCreate a greeting
An email sent automatically on each contact's birthday or work anniversary.
JSON body
| Field | Type | Notes |
|---|---|---|
namerequired | string | Up to 200 characters. |
occasionrequired | string | birthday (uses the contact's dateOfBirth) or work_anniversary (uses workAnniversary). Can't be changed later. |
subjectrequired | string | Up to 500 characters. Can use {{variables}}. |
htmlBodyrequired | string | The email, in HTML. Can use {{variables}}, including {{years}}. |
sendTime | string | Local time HH:mm, 23:45 at the latest. Default 09:00. Greetings go out on the quarter-hour. |
sendTimezone | string | An IANA zone name such as Europe/Berlin (not a fixed offset). Default: your organisation's time zone (else UTC). |
useContactTimezone | boolean | Default false. True: use each contact's own timezone when set, else sendTimezone. |
contactListId | uuid | Greet only this contact list's members. Leave it out to greet everyone with marketing permission. |
isEnabled | boolean | Default false: a new greeting is off until you switch it on. |
- Who gets it. Contacts with the date set, an email address, marketing permission (
consentMarketingtrue), 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
sendTimeon 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"
}
}/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.
JSON body
| Field | Type | Notes |
|---|---|---|
name | string | Up to 200 characters. |
subject | string | Up to 500 characters. Can use {{variables}}. |
htmlBody | string | The email, in HTML. Can use {{variables}}, including {{years}}. |
sendTime | string | Local time HH:mm, 23:45 at the latest. Greetings go out on the quarter-hour. |
sendTimezone | string | An IANA zone name such as Europe/Berlin (not a fixed offset). |
useContactTimezone | boolean | Default false. True: use each contact's own timezone when set, else sendTimezone. |
contactListId | uuid | Greet only this contact list's members. |
everyone | boolean | true drops the contact list: greet everyone with marketing permission. |
isEnabled | boolean |
name,subjectandhtmlBodycan'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"
}
}/api/v1/sales/contact-date-campaigns/{id}Delete a greeting
Removes the greeting; it never sends again.
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"
}/api/v1/sales/contact-date-campaigns/{id}/failuresGreetings that didn't go out
Greetings this campaign tried to send and could not, newest first.
Query parameters
| Name | Type | What it does |
|---|---|---|
limit | integer | 1–100. Default 20. |
outcome:failed(nothing went out) orunconfirmed(the mail server never confirmed it — it may have arrived, and was not sent again).reasonis 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"
}
]
}Webhook subscriptions
Read and test the webhook addresses an owner has set up.
/api/v1/integration/webhook-subscriptionsList webhook subscriptions
The addresses your organisation sends webhooks to, newest first. Not paged. The signing secret is never returned — hasSecret says one is set.
Query parameters
| Name | Type | What it does |
|---|---|---|
templateSlug | string | sales-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
templateSlugreceives 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"
}
]
}/api/v1/integration/webhook-subscriptions/{id}/deliveriesRecent deliveries
The subscription's last 50 deliveries, newest first. The payload is never included.
status:pending,successorfailed. A failed one withnextRetryAtwill be tried again.responseCodeis your server's HTTP answer;lastErroris 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"
}
]
}/api/v1/integration/webhook-subscriptions/run-dueSend 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.
processed= deliveries tried in this call.moreis1when more are waiting — call again — else0.- 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
}
}Reference
Every call on one screen, and a file for your tools.
Quick reference
Every call in this handbook. “Who” is the role the key's creator needs.
| Path | What | Who | |
|---|---|---|---|
| GET | /api/v1/core/organization-users/me | Who the key acts as | Any member |
| GET | /api/v1/core/organization-users/assignable | Team members you can assign | Owner, manager, executive or staff |
| GET | /api/v1/core/pipelines | List pipelines | Any member |
| GET | /api/v1/core/pipeline-stages | List a pipeline's stages | Any member |
| GET | /api/v1/sales/contact-field-options | Lead source and industry lists | Any member |
| GET | /api/v1/sales/contacts | List contacts | Any member |
| GET | /api/v1/sales/contacts/{id} | Get a contact | Any member |
| POST | /api/v1/sales/contacts | Create a contact | Owner, manager or executive |
| PUT | /api/v1/sales/contacts/{id} | Update a contact | Owner, manager or executive |
| DELETE | /api/v1/sales/contacts/{id} | Delete a contact | Owner or manager |
| POST | /api/v1/sales/contacts/lifecycle-stage | Set the lifecycle stage of many contacts | Owner, manager or executive |
| GET | /api/v1/core/accounts | List accounts | Any member |
| GET | /api/v1/core/accounts/{id} | Get an account | Any member |
| POST | /api/v1/core/accounts | Create an account | Owner, manager or executive |
| PUT | /api/v1/core/accounts/{id} | Update an account | Owner, manager or executive |
| DELETE | /api/v1/core/accounts/{id} | Delete an account | Owner or manager |
| GET | /api/v1/sales/deals | List deals | Any member |
| GET | /api/v1/sales/deals/{id} | Get a deal | Any member |
| POST | /api/v1/sales/deals | Create a deal | Owner, manager or executive |
| PUT | /api/v1/sales/deals/{id} | Update a deal | Owner, manager or executive |
| DELETE | /api/v1/sales/deals/{id} | Delete a deal | Owner or manager |
| GET | /api/v1/sales/deals/{id}/history | A deal's history | Any member except client logins |
| GET | /api/v1/sales/deals/changes | Deals that changed recently | Any member except client logins |
| GET | /api/v1/sales/deal-line-items | List a deal's line items | Any member |
| POST | /api/v1/sales/deal-line-items | Add a line item | Owner, manager or executive |
| PUT | /api/v1/sales/deal-line-items/{id} | Update a line item | Owner, manager or executive |
| DELETE | /api/v1/sales/deal-line-items/{id} | Remove a line item | Owner, manager or executive |
| GET | /api/v1/sales/deal-notes | List a deal's notes | Any member except client logins |
| POST | /api/v1/sales/deal-notes | Add a note to a deal | Owner, manager or executive |
| PUT | /api/v1/sales/deal-notes/{id} | Edit a note | Its author (owner, manager or executive), or any owner or manager |
| DELETE | /api/v1/sales/deal-notes/{id} | Delete a note | Owner or manager |
| GET | /api/v1/sales/tasks | List tasks | Any member |
| GET | /api/v1/sales/tasks/{id} | Get a task | Any member |
| POST | /api/v1/sales/tasks | Create a task | Owner, manager or executive |
| PUT | /api/v1/sales/tasks/{id} | Update or complete a task | Owner, manager or executive |
| DELETE | /api/v1/sales/tasks/{id} | Delete a task | Owner or manager |
| GET | /api/v1/sales/activities | List activities | Any member except client logins |
| GET | /api/v1/sales/activities/{id} | Get an activity | Any member except client logins |
| POST | /api/v1/sales/activities | Log an activity | Owner, manager or executive |
| PUT | /api/v1/sales/activities/{id} | Update an activity | Its author (owner, manager or executive), or any owner or manager |
| DELETE | /api/v1/sales/activities/{id} | Delete an activity | Owner or manager |
| GET | /api/v1/sales/products | List products | Any member |
| POST | /api/v1/sales/products | Create a product | Owner or manager |
| PUT | /api/v1/sales/products/{id} | Update a product | Owner or manager |
| DELETE | /api/v1/sales/products/{id} | Delete a product | Owner or manager |
| GET | /api/v1/core/custom-fields | List custom fields | Any member |
| GET | /api/v1/core/labels | List labels | Any member |
| GET | /api/v1/core/entity-labels | Labels on a record | Any member |
| PUT | /api/v1/core/entity-labels | Set the labels on a record | Owner, manager or executive |
| POST | /api/v1/integration/ingest/contacts | Push contacts (create or update) | Owner, manager or executive |
| POST | /api/v1/integration/ingest/accounts | Push accounts (create or update) | Owner, manager or executive |
| POST | /api/v1/integration/import/contacts/preview | Preview a CSV file | Owner, manager or executive |
| POST | /api/v1/integration/import/contacts | Import a CSV file | Owner, manager or executive |
| GET | /api/v1/core/pipelines/{id} | Get a pipeline | Any member |
| POST | /api/v1/core/pipelines | Create a pipeline | Owner or manager |
| PUT | /api/v1/core/pipelines/{id} | Update a pipeline | Owner or manager |
| PUT | /api/v1/core/pipelines/{id}/default | Make a pipeline the default | Owner or manager |
| DELETE | /api/v1/core/pipelines/{id} | Delete a pipeline | Owner or manager |
| GET | /api/v1/core/pipeline-stages/{id} | Get a stage | Any member |
| POST | /api/v1/core/pipeline-stages | Add a stage | Owner or manager |
| PUT | /api/v1/core/pipeline-stages/{id} | Update a stage | Owner or manager |
| DELETE | /api/v1/core/pipeline-stages/{id} | Delete a stage | Owner or manager |
| PUT | /api/v1/core/pipeline-stages/reorder | Reorder stages | Owner or manager |
| GET | /api/v1/core/pipeline-stages/{stageId}/approval-config | Get a stage's approval gate | Any member |
| PUT | /api/v1/core/pipeline-stages/{stageId}/approval-config | Set a stage's approval gate | Owner only |
| GET | /api/v1/sales/board-settings | Get the deal card fields | Any member |
| PUT | /api/v1/sales/board-settings | Choose the deal card fields | Owner or manager |
| GET | /api/v1/sales/targets | List targets | Any member |
| GET | /api/v1/sales/targets/{id} | Get a target | Any member |
| POST | /api/v1/sales/targets | Create a target | Owner or manager |
| PUT | /api/v1/sales/targets/{id} | Update a target | Owner or manager |
| DELETE | /api/v1/sales/targets/{id} | Delete a target | Owner or manager |
| POST | /api/v1/core/custom-fields | Create a custom field | Owner or manager |
| PUT | /api/v1/core/custom-fields/{id} | Update a custom field | Owner or manager |
| DELETE | /api/v1/core/custom-fields/{id} | Delete a custom field | Owner or manager |
| GET | /api/v1/core/custom-fields/usage | Records using each custom field | Owner or manager |
| GET | /api/v1/core/custom-fields/filter-usage | Lists and views using each custom field | Owner or manager |
| POST | /api/v1/core/labels | Create a label | Owner or manager |
| PUT | /api/v1/core/labels/{id} | Update a label | Owner or manager |
| DELETE | /api/v1/core/labels/{id} | Delete a label | Owner or manager |
| POST | /api/v1/sales/contact-field-options | Add a lead source or industry | Owner only |
| PUT | /api/v1/sales/contact-field-options/{id} | Rename or archive a lead source or industry | Owner only |
| PUT | /api/v1/sales/contact-field-options/order | Reorder a lead source or industry list | Owner only |
| GET | /api/v1/sales/assignment-rules | List lead routing rules | Any member |
| POST | /api/v1/sales/assignment-rules | Create a lead routing rule | Owner or manager |
| PUT | /api/v1/sales/assignment-rules/{id} | Update a lead routing rule | Owner or manager |
| PUT | /api/v1/sales/assignment-rules/reorder | Reorder lead routing rules | Owner or manager |
| DELETE | /api/v1/sales/assignment-rules/{id} | Delete a lead routing rule | Owner or manager |
| POST | /api/v1/sales/assignment-rules/apply | Route unassigned contacts now | Owner or manager |
| POST | /api/v1/sales/assignment-rules/preview | Preview a rule condition | Owner or manager |
| GET | /api/v1/sales/assignment-rules/test/{contactId} | Test routing for a contact | Owner or manager |
| GET | /api/v1/sales/lead-scoring/rules | List scoring rules | Any member |
| POST | /api/v1/sales/lead-scoring/rules | Create a scoring rule | Owner or manager |
| PUT | /api/v1/sales/lead-scoring/rules/{id} | Update a scoring rule | Owner or manager |
| DELETE | /api/v1/sales/lead-scoring/rules/{id} | Delete a scoring rule | Owner or manager |
| POST | /api/v1/sales/lead-scoring/recalculate | Re-score all contacts | Owner or manager |
| GET | /api/v1/sales/lead-scoring/breakdown/{contactId} | Why a contact has its score | Any member |
| GET | /api/v1/sales/lead-scoring/automations | List score automations | Any member |
| POST | /api/v1/sales/lead-scoring/automations | Create a score automation | Owner or manager |
| PUT | /api/v1/sales/lead-scoring/automations/{id} | Update a score automation | Owner or manager |
| DELETE | /api/v1/sales/lead-scoring/automations/{id} | Delete a score automation | Owner or manager |
| POST | /api/v1/sales/lead-scoring/automations/{id}/run | Run for contacts already above | Owner or manager |
| GET | /api/v1/sales/sequences | List sequences | Any member |
| GET | /api/v1/sales/sequences/{id} | Get a sequence | Any member |
| GET | /api/v1/sales/sequences/opt-out-lines | P.S. lines | Any member |
| POST | /api/v1/sales/sequences | Create a sequence | Owner or manager |
| PUT | /api/v1/sales/sequences/{id} | Update, pause or resume a sequence | Owner or manager |
| DELETE | /api/v1/sales/sequences/{id} | Delete a sequence | Owner or manager |
| POST | /api/v1/sales/sequences/{id}/steps | Add a step | Owner or manager |
| PUT | /api/v1/sales/sequences/steps/{stepId} | Update a step | Owner or manager |
| DELETE | /api/v1/sales/sequences/steps/{stepId} | Delete a step | Owner or manager |
| PUT | /api/v1/sales/sequences/{id}/steps/reorder | Reorder steps | Owner or manager |
| POST | /api/v1/sales/sequences/run-due | Run due steps now | Owner or manager |
| GET | /api/v1/sales/sequence-enrollments | List enrolments | Any member |
| POST | /api/v1/sales/sequence-enrollments | Enrol a contact | Owner, manager or executive |
| POST | /api/v1/sales/sequence-enrollments/bulk | Enrol many contacts | Owner, manager or executive |
| DELETE | /api/v1/sales/sequence-enrollments/{id} | Stop an enrolment | Owner, manager or executive |
| GET | /api/v1/sales/stage-automations | List stage automations | Owner or manager |
| POST | /api/v1/sales/stage-automations | Create a stage automation | Owner or manager |
| PUT | /api/v1/sales/stage-automations/{id} | Switch a stage automation on or off | Owner or manager |
| DELETE | /api/v1/sales/stage-automations/{id} | Delete a stage automation | Owner or manager |
| POST | /api/v1/sales/stage-automations/{id}/run | Run for deals already in the stage | Owner or manager |
| GET | /api/v1/sales/contact-date-campaigns | List greetings | Any member |
| GET | /api/v1/sales/contact-date-campaigns/{id} | Get a greeting | Any member |
| POST | /api/v1/sales/contact-date-campaigns | Create a greeting | Owner or manager |
| PUT | /api/v1/sales/contact-date-campaigns/{id} | Update a greeting | Owner or manager |
| DELETE | /api/v1/sales/contact-date-campaigns/{id} | Delete a greeting | Owner or manager |
| GET | /api/v1/sales/contact-date-campaigns/{id}/failures | Greetings that didn't go out | Owner, manager, executive or staff |
| GET | /api/v1/integration/webhook-subscriptions | List webhook subscriptions | Owner or manager |
| GET | /api/v1/integration/webhook-subscriptions/{id}/deliveries | Recent deliveries | Owner or manager |
| POST | /api/v1/integration/webhook-subscriptions/run-due | Send due deliveries now | Owner only |