(alle endpoints)Standard svar-struktur
GET list: { data, page, limit, total }. GET single: { data }. POST: { data: { _id } }. PUT/PATCH/DELETE: { ok: true }. Fejl: { error }.
API REFERENCE
336 dokumenterede endpoints. Base URL: https://app.salesbase.dk/api/v1. Maskinlæsbar JSON: /api/v1/docs?full=true
Alle endpoints returnerer JSON med konsistent struktur.
(alle endpoints)GET list: { data, page, limit, total }. GET single: { data }. POST: { data: { _id } }. PUT/PATCH/DELETE: { ok: true }. Fejl: { error }.
Integration endpoints use a workspace API key (Bearer sb_…). API keys are created in the Salesbase app under Settings → Workspace → Automation → API Keys. Mobile app endpoints (voice, notifications, timers, assistant, devices, workspaces switch) require JWT login and are not part of this integration reference.
(alle endpoints)Authorization: Bearer <YOUR_API_KEY>. Nøgler starter med sb_.
(alle endpoints)120 requests per minute, 50,000 requests per day. HTTP 429 ved overskridelse.
Create companies, people, leads, and deals in one request. Ideal for form submissions and integrations.
/api/v1/inboundCreate or find-and-update company/person/lead/deal from a single payload. Supports JSON, form-urlencoded, and Elementor webhook formats.
Request body
{
"companyName": {
"type": "string",
"description": "Company name (for company lookup/creation)"
},
"companyCvr": {
"type": "string",
"description": "Danish CVR number (for exact company match)"
},
"companyEmail": {
"type": "string"
},
"companyPhone": {
"type": "string"
},
"personFirstName": {
"type": "string"
},
"personLastName": {
"type": "string"
},
"personEmail": {
"type": "string"
},
"personPhone": {
"type": "string"
},
"personTitle": {
"type": "string"
},
"leadTitle": {
"type": "string",
"description": "Lead title (auto-generated if not provided)"
},
"leadSource": {
"type": "string"
},
"leadStatus": {
"type": "string"
},
"leadNotes": {
"type": "string"
},
"dealTitle": {
"type": "string"
},
"dealValue": {
"type": "number"
},
"dealFlowId": {
"type": "string",
"description": "Pipeline ID"
},
"dealStageId": {
"type": "string",
"description": "Stage ID within pipeline"
},
"customFields": {
"type": "object",
"description": "Key-value pairs for custom fields"
},
"tags": {
"type": "string[]",
"description": "Array of tag names to apply"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/inbound' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/inboundReturns API documentation for the inbound endpoint
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/inbound' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/searchSearch across all entity types (companies, people, leads, deals)
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| q | string | Ja | Search query (minimum 2 characters) |
| types | string | Nej | Comma-separated entity types to search: company,person,lead,deal (default: all) |
| limit | number | Nej | Max results per entity type (max 50) |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/search' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companiesList companies
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| search | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/companies' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companiesCreate a company
Request body
{
"name": {
"type": "string",
"required": true
},
"cvr": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"zip": {
"type": "string"
},
"country": {
"type": "string"
},
"website": {
"type": "string"
},
"industry": {
"type": "string"
},
"employees": {
"type": "number"
},
"customFields": {
"type": "array"
},
"tags": {
"type": "string[]"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/companies' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:idGet company by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:idUpdate company
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/companies/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:idDelete company
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/companies/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:id/peopleList people connected to company
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/people' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:id/dealsList deals connected to company
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/deals' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:id/activitiesList activities for company
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/activities' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:id/activity-feedUnified activity feed for company
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/activity-feed' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:id/peopleLink person to company
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/companies/{id}/people' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/companies/:id/peopleUnlink person from company
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/companies/{id}/people' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/peopleList people
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/people' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/peopleCreate a person
Request body
{
"firstName": {
"type": "string",
"required": true
},
"lastName": {
"type": "string"
},
"emails": {
"type": "array",
"description": "[{ email, label }]"
},
"phones": {
"type": "array",
"description": "[{ phone, label }]"
},
"title": {
"type": "string"
},
"companyId": {
"type": "string"
},
"customFields": {
"type": "array"
},
"tags": {
"type": "string[]"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/people' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/people/:idGet person by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/people/:idUpdate person
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/people/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/people/:idDelete person
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/people/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/people/:id/companiesList companies connected to person
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/companies' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/people/:id/dealsList deals connected to person
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/deals' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/people/:id/activitiesList activities for person
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/activities' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/people/:id/activity-feedUnified activity feed for person
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/activity-feed' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/leadsList leads
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| status | string | Nej | |
| source | string | Nej | |
| search | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/leads' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/leadsCreate a lead
Request body
{
"title": {
"type": "string",
"required": true
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"status": {
"type": "string"
},
"source": {
"type": "string"
},
"score": {
"type": "number"
},
"value": {
"type": "number"
},
"notes": {
"type": "string"
},
"companyRef": {
"type": "string",
"description": "Company ID"
},
"personRef": {
"type": "string",
"description": "Person ID"
},
"customFields": {
"type": "object"
},
"tags": {
"type": "string[]"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/leads' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/leads/:idGet lead by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/leads/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/leads/:idUpdate lead
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/leads/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/leads/:idDelete lead
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/leads/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/leads/:id/activity-feedUnified activity feed for lead
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/leads/{id}/activity-feed' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/leads/:id/activitiesList activities for lead
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/leads/{id}/activities' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/dealsList deals
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| flowId | string | Nej | Filter by pipeline |
| stageId | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/deals' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/dealsCreate a deal
Request body
{
"title": {
"type": "string",
"required": true
},
"value": {
"type": "number"
},
"flowId": {
"type": "string"
},
"stageId": {
"type": "string"
},
"priority": {
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
"probability": {
"type": "number"
},
"company": {
"type": "string",
"description": "Company ID"
},
"personRef": {
"type": "string",
"description": "Person ID"
},
"leadRef": {
"type": "string",
"description": "Lead ID"
},
"customFields": {
"type": "object"
},
"tags": {
"type": "string[]"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/deals' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/deals/:idGet deal by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/deals/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/deals/:idUpdate deal (logs field/stage changes to activity feed, same as UI)
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/deals/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/deals/:idDelete deal
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/deals/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/deals/:id/moveMove deal to a different stage
Request body
{
"stageId": {
"type": "string",
"required": true
},
"flowId": {
"type": "string"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/deals/{id}/move' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/deals/:id/activitiesList activities for deal
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/deals/{id}/activities' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/deals/:id/activity-feedUnified activity feed for deal
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/deals/{id}/activity-feed' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Aktiviteter / activity feed — list and create feed rows (noter, opkald, deals m.m.)
/api/v1/activitiesList activities (aktiviteter)
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/activities' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/activitiesCreate activity / aktivitet (creates a feed row). Body: type (required), summary or title, description, companyId/personId/dealId/leadId, entityType+entityId, noteRef, date, metadata
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/activities' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/activities/:idGet activity by ID (aktivitet)
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/activities/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/tasksList tasks
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/tasks' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/tasksCreate task
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/tasks' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/tasks/:idGet task
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/tasks/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/tasks/:idUpdate task
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/tasks/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/tasks/:idDelete task
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/tasks/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/notesList notes
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/notes' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/notesCreate note (also creates linked activity for Noter tab / activity feed). Requires entity ref: company, personRef, leadRef, dealRef, or customObjectRecord
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/notes' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/notes/:idGet note
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/notes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/notes/:idUpdate note (syncs linked activity)
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/notes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/notes/:idDelete note (removes linked activity)
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/notes/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/callsList calls
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/calls' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/callsCreate call record (also creates call activity in feed)
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/calls' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/calls/:idGet call by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/calls/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/calls/:idUpdate call (syncs linked activity)
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/calls/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/calls/:idDelete call (removes linked activity)
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/calls/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/eventsList events
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/events' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/eventsCreate event
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/events' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/events/:idGet event
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/events/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/events/:idUpdate event
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/events/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/events/:idDelete event
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/events/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-fieldsList custom field definitions
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| entityType | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-fields' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-fieldsCreate custom field definition
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/custom-fields' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-fields/:idGet custom field
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-fields/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-fields/:idUpdate custom field
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/custom-fields/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-fields/:idDelete custom field
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/custom-fields/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-fields/searchSearch entities by custom field values
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/custom-fields/search' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-fields/searchReturns search endpoint documentation
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-fields/search' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flowsList pipelines
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/flows' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flowsCreate pipeline
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/flows' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flows/:idGet pipeline
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/flows/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flows/:idUpdate pipeline
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/flows/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flows/:idDelete pipeline
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/flows/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flows/:id/stagesCreate stage in pipeline
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/flows/{id}/stages' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flows/:id/stagesUpdate stage
Request body
{
"id": {
"type": "string",
"required": true
},
"title": {
"type": "string"
},
"order": {
"type": "number"
}
}Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/flows/{id}/stages' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/flows/:id/stagesDelete stage
Request body
{
"id": {
"type": "string",
"required": true
}
}Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/flows/{id}/stages' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/listsList all lists
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/lists' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/listsCreate list
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/lists' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lists/:idGet list
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/lists/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lists/:idUpdate list
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/lists/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lists/:idDelete list
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/lists/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lists/:id/itemsList items in a list
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/lists/{id}/items' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lists/:id/itemsAdd items to list
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/lists/{id}/items' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lists/:id/itemsRemove items from list
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/lists/{id}/items' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/emailsList emails
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/emails' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/emailsSend email
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/emails' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/emails/:idGet email
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/emails/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/emails/threads/:threadIdGet email thread
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/emails/threads/:threadId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-accountsList connected email accounts
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/email-accounts' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Create and manage email templates with custom HTML (compiledHtml). Supports {{contact.*}} placeholders and default filter syntax {{field | default:"fallback"}}.
/api/v1/email-templatesList email templates
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/email-templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-templatesCreate email template (admin scope)
Request body
{
"name": {
"type": "string",
"required": true
},
"category": {
"type": "string",
"enum": [
"marketing",
"transactional",
"quote",
"other"
]
},
"compiledHtml": {
"type": "string",
"description": "Full HTML body with {{placeholders}}"
},
"plainText": {
"type": "string"
},
"metadata": {
"type": "object",
"description": "{ subject, preheader }"
},
"layoutSettings": {
"type": "object",
"description": "containerWidth, backgroundColor, layoutMode"
},
"tags": {
"type": "string[]"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/email-templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-templates/:idGet template by ID (includes compiledHtml, projectData)
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/email-templates/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-templates/:idUpdate template (admin scope)
Eksempel
curl -X PATCH 'https://app.salesbase.dk/api/v1/email-templates/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-templates/:idDelete template (admin scope)
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/email-templates/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/smsList SMS messages
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sms' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/smsSend SMS
Request body
{
"to": {
"type": "string",
"required": true
},
"message": {
"type": "string",
"required": true
},
"from": {
"type": "string",
"description": "Sender number"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sms' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sms/:idGet SMS by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sms/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sms/bulkSend bulk SMS
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sms/bulk' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sms/scheduleSchedule SMS for later
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sms/schedule' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sms/scheduledList scheduled SMS
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sms/scheduled' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sms/scheduled/:idCancel scheduled SMS
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/sms/scheduled/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sms/threads/:phoneNumberGet SMS thread by phone number
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sms/threads/:phoneNumber' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sms-templatesList SMS templates
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sms-templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Subscribe to CRM events via outbound webhooks. See the Webhooks section for available events.
/api/v1/webhooks/subscriptionsList webhook subscriptions
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptionsCreate webhook subscription
Request body
{
"url": {
"type": "string",
"required": true
},
"events": {
"type": "string[]",
"required": true,
"description": "Array of event names to subscribe to"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean",
"default": true
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptions/:idGet subscription (secret masked)
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptions/:idUpdate subscription
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptions/:idDelete subscription
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/zapierZapier inbound webhook — creates person, lead, and deal in one request (Bearer API key)
Request body
{
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": "string"
},
"leadTitle": {
"type": "string"
},
"dealTitle": {
"type": "string"
},
"dealValue": {
"type": "number"
},
"source": {
"type": "string",
"default": "zapier"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/zapier' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Lookup and connect CRM data with external systems
/api/v1/crm-connect/lookupLook up entity by phone/email
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/crm-connect/lookup' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/crm-connect/callsLog or connect call events for integration
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/crm-connect/calls' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Create draft offers linked to offer types and templates. Send creates an immutable snapshot and public link.
/api/v1/offersList offers
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/offers' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offersCreate offer
Request body
{
"title": {
"type": "string",
"required": true
},
"offerTypeId": {
"type": "ObjectId"
},
"templateId": {
"type": "ObjectId"
},
"companyRef": {
"type": "ObjectId"
},
"personRef": {
"type": "ObjectId"
},
"dealRef": {
"type": "ObjectId"
},
"quoteInput": {
"type": "object",
"description": "{ contact, address, facts, calculatorInputs }"
},
"calculatorResult": {
"type": "object",
"description": "{ lineItems, subtotal, vatAmount, total }"
},
"validUntil": {
"type": "Date"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offers' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:idGet offer (by _id or publicId)
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/offers/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:idUpdate draft offer
Request body
{
"title": {
"type": "string"
},
"templateId": {
"type": "ObjectId"
},
"offerTypeId": {
"type": "ObjectId"
},
"quoteInput": {
"type": "object"
},
"calculatorResult": {
"type": "object"
}
}Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/offers/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:idDelete draft offer
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/offers/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:id/sendSend offer — snapshot, activity, automations, offer.sent webhook. Returns publicId.
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/send' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:id/cancelCancel offer
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/cancel' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:id/send-emailSend or resend offer email to customer
Request body
{
"emailTo": {
"type": "string",
"description": "Optional recipient override"
},
"senderAccountId": {
"type": "ObjectId",
"description": "Optional sender email account"
},
"templateId": {
"type": "ObjectId",
"description": "Optional email template"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/send-email' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:id/send-smsSend or resend offer link via SMS
Request body
{
"phoneTo": {
"type": "string",
"description": "Optional phone override"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/send-sms' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offers/:id/preview-tokenPreview URL for draft offers (short-lived token) or public link when sent
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/offers/{id}/preview-token' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Visual page-builder templates with pages[], headerElements, footerElements, branding, and custom HTML elements. See ?section=offerTemplates for element types and A-Polering reference.
/api/v1/offer-templatesList templates (summary without full pages)
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/offer-templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-templatesCreate template with full layout (admin scope)
Request body
{
"name": {
"type": "string",
"required": true
},
"pages": {
"type": "array",
"description": "Page[] with elements (text, heading, html, columns, line_items, totals, video, …)"
},
"headerElements": {
"type": "array"
},
"footerElements": {
"type": "array"
},
"branding": {
"type": "object",
"description": "colors, typography, logo"
},
"defaultTerms": {
"type": "string"
},
"defaultPaymentTerms": {
"type": "string"
},
"isDefault": {
"type": "boolean"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offer-templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-templates/:idGet full template including pages and elements
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/offer-templates/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-templates/:idUpdate template (admin scope)
Eksempel
curl -X PATCH 'https://app.salesbase.dk/api/v1/offer-templates/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-templates/:idDelete template (admin scope)
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/offer-templates/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-templates/:id/duplicateDuplicate template (admin scope)
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offer-templates/{id}/duplicate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-typesList offer types
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/offer-types' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-typesCreate offer type (admin scope)
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/offer-types' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-types/:idGet offer type
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/offer-types/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-types/:idUpdate offer type (admin scope)
Eksempel
curl -X PATCH 'https://app.salesbase.dk/api/v1/offer-types/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/offer-types/:idDelete offer type (admin scope)
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/offer-types/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/productsList products
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/products' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/productsCreate product
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/products' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/products/:idGet product
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/products/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/products/:idUpdate product
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/products/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/products/:idDelete product
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/products/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/catalogList catalog items
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/catalog' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/catalogCreate catalog item
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/catalog' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/catalog/:idGet catalog item
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/catalog/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/catalog/:idUpdate catalog item
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/catalog/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/catalog/:idDelete catalog item
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/catalog/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projectsList projects
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/projects' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projectsCreate project
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/projects' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:idGet project
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:idUpdate project
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/projects/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:idDelete project
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/projects/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/moveMove project to different stage
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/move' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/statsGet project statistics
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/stats' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/tasksList project tasks
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/tasks' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/tasksCreate project task
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/tasks' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/tasks/:taskIdGet project task
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/tasks/:taskIdUpdate project task
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/tasks/:taskIdDelete project task
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/tasks/:taskId/moveMove project task
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId/move' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/time-entriesList time entries
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/time-entries' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/time-entriesCreate time entry
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/time-entries' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/time-entries/:entryIdUpdate time entry
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/projects/time-entries/:entryId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/time-entries/:entryIdDelete time entry
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/projects/time-entries/:entryId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/expensesList expenses
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/expenses' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/projects/:id/expensesCreate expense
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/expenses' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookingsList bookings
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/bookings' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookingsCreate booking
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/bookings' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookings/:idGet booking by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/bookings/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookings/:id/cancelCancel booking
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/cancel' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookings/:id/approveApprove pending booking
Request body
{
"notes": {
"type": "string"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/approve' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookings/:id/rejectReject pending booking
Request body
{
"reason": {
"type": "string"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/reject' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookings/:id/rescheduleReschedule booking
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/reschedule' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/bookings/available-slotsGet available time slots
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/bookings/available-slots' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/booking-configsList booking configurations
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/booking-configs' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/booking-configs/:idGet booking configuration
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/booking-configs/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/booking-configs/:idUpdate booking configuration (admin scope)
Eksempel
curl -X PATCH 'https://app.salesbase.dk/api/v1/booking-configs/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/pipelinePipeline report
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/pipeline' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/leadsLeads report
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/leads' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/offersOffers report
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/offers' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/supportSupport report
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/support' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/historyHistory/activity report
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/history' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/organizationOrganization overview
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/organization' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/usersUsers report
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/users' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/reports/users/:userIdIndividual user report
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/reports/users/:userId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-scoring/rulesList lead scoring rules
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/lead-scoring/rules' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-scoring/rulesCreate scoring rule
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/lead-scoring/rules' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-scoring/rules/:idUpdate scoring rule
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/lead-scoring/rules/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-scoring/rules/:idDelete scoring rule
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/lead-scoring/rules/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-routing/rulesList lead routing rules
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/lead-routing/rules' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-routing/rulesCreate routing rule
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/lead-routing/rules' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-routing/rules/:idUpdate routing rule
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/lead-routing/rules/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/lead-routing/rules/:idDelete routing rule
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/lead-routing/rules/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/import/companiesImport companies from CSV/data
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/import/companies' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/import/peopleImport people
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/import/people' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/import/leadsImport leads
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/import/leads' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/import/dealsImport deals
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/import/deals' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/import/validateValidate import data before importing
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/import/validate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/import/historyList import history
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/import/history' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/export/leadsExport leads
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/export/leads' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/export/dealsExport deals
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/export/deals' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/export/peopleExport people
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/export/people' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/export/companiesExport companies
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/export/companies' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/export/lists/:listIdExport list items
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/export/lists/:listId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/filesList files
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/files' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/filesUpload file
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/files' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/files/:idGet file metadata
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/files/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/files/:idDelete file
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/files/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/files/:id/linkCreate signed download link
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/files/{id}/link' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/files/:id/linkRevoke signed download link
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/files/{id}/link' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/foldersList folders
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/folders' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/foldersCreate folder
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/folders' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/folders/:idDelete folder
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/folders/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Manage workspace members
/api/v1/usersList workspace members
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| search | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/users' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/users/:idGet user by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/users/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/users/:idUpdate user (name, phone)
Request body
{
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"phone": {
"type": "string"
},
"defaultUserPhone": {
"type": "string"
}
}Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/users/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Manage customer support tickets with conversations
/api/v1/support-ticketsList support tickets
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| status | string | Nej | |
| priority | string | Nej | |
| assignee | string | Nej | |
| category | string | Nej | |
| search | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/support-tickets' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-ticketsCreate support ticket
Request body
{
"title": {
"type": "string",
"required": true
},
"description": {
"type": "string"
},
"priority": {
"type": "string",
"enum": [
"low",
"medium",
"high",
"urgent"
]
},
"category": {
"type": "string"
},
"assignee": {
"type": "string",
"description": "User ID"
},
"company": {
"type": "string",
"description": "Company ID"
},
"personRef": {
"type": "string",
"description": "Person ID"
},
"tags": {
"type": "string[]"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/support-tickets' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:idGet support ticket by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/support-tickets/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:idUpdate support ticket
Request body
{
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"priority": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"open",
"in_progress",
"waiting",
"resolved",
"closed"
]
},
"category": {
"type": "string"
},
"assignee": {
"type": "string"
},
"tags": {
"type": "string[]"
},
"resolution": {
"type": "string"
}
}Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/support-tickets/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:idDelete support ticket
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/support-tickets/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:id/replyAdd reply to ticket
Request body
{
"content": {
"type": "string",
"required": true
},
"type": {
"type": "string",
"enum": [
"agent_reply",
"internal_note"
],
"default": "agent_reply"
},
"visibility": {
"type": "string",
"enum": [
"public",
"internal"
],
"default": "public"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/support-tickets/{id}/reply' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:id/moveMove ticket to kanban stage
Request body
{
"stageId": {
"type": "number",
"required": true
},
"flowId": {
"type": "string",
"description": "Optional support flow ID"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/support-tickets/{id}/move' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:id/messagesList ticket messages
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| limit | number | Nej | |
| visibility | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/support-tickets/{id}/messages' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:id/time-entriesList time entries on ticket
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/support-tickets/{id}/time-entries' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/support-tickets/:id/time-entriesCreate time entry on ticket
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/support-tickets/{id}/time-entries' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Manage sales/call scripts for the dialer
/api/v1/scriptsList scripts
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| search | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/scripts' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/scriptsCreate script
Request body
{
"name": {
"type": "string",
"required": true
},
"content": {
"type": "string",
"required": true
},
"description": {
"type": "string"
},
"targetCallType": {
"type": "string",
"enum": [
"cold_call",
"discovery",
"demo",
"closing",
"follow_up",
"other"
]
},
"isShared": {
"type": "boolean"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/scripts' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/scripts/:idGet script by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/scripts/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/scripts/:idUpdate script
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/scripts/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/scripts/:idDelete script
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/scripts/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Saved filter configurations for lists and views
/api/v1/filter-presetsList filter presets
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| area | string | Nej | Filter by area (e.g. companies, leads, deals) |
| page | string | Nej | |
| limit | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/filter-presets' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/filter-presetsCreate filter preset
Request body
{
"name": {
"type": "string",
"required": true
},
"area": {
"type": "string"
},
"columnFilters": {
"type": "object"
},
"filterTree": {
"type": "object"
},
"filterMode": {
"type": "string",
"enum": [
"and",
"or"
]
},
"sorting": {
"type": "array"
},
"visibility": {
"type": "string",
"enum": [
"workspace",
"private",
"group",
"user"
]
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/filter-presets' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/filter-presets/:idGet filter preset
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/filter-presets/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/filter-presets/:idUpdate filter preset
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/filter-presets/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/filter-presets/:idDelete filter preset
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/filter-presets/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-signaturesList email signatures
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/email-signatures' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-signaturesCreate signature
Request body
{
"name": {
"type": "string",
"required": true
},
"content": {
"type": "string",
"required": true,
"description": "HTML content"
},
"textContent": {
"type": "string"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/email-signatures' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-signatures/:idGet signature
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/email-signatures/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-signatures/:idUpdate signature
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/email-signatures/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/email-signatures/:idDelete signature
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/email-signatures/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Manage prepaid service hour cards for projects
/api/v1/clip-cardsList clip cards
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| status | string | Nej | |
| projectId | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/clip-cards' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/clip-cardsCreate clip card
Request body
{
"project": {
"type": "string",
"required": true,
"description": "Project ID"
},
"title": {
"type": "string"
},
"totalHours": {
"type": "number",
"required": true
},
"hourlyRate": {
"type": "number",
"required": true
},
"allowOverdraft": {
"type": "boolean"
},
"overdraftRate": {
"type": "number"
},
"expiresAt": {
"type": "string",
"description": "ISO date"
},
"notes": {
"type": "string"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/clip-cards' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/clip-cards/:idGet clip card
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/clip-cards/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/clip-cards/:idUpdate clip card
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/clip-cards/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/clip-cards/:idDelete clip card
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/clip-cards/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Manage saved dashboard configurations
/api/v1/dashboard-layoutsList dashboard layouts
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/dashboard-layouts' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/dashboard-layoutsCreate layout
Request body
{
"name": {
"type": "string",
"required": true
},
"layout": {
"type": "object"
},
"visibleComponents": {
"type": "string[]"
},
"chartWidgets": {
"type": "array"
},
"visibility": {
"type": "string",
"enum": [
"workspace",
"private",
"group",
"user"
]
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/dashboard-layouts' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/dashboard-layouts/:idGet layout
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/dashboard-layouts/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/dashboard-layouts/:idUpdate layout
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/dashboard-layouts/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/dashboard-layouts/:idDelete layout
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/dashboard-layouts/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Workspace-defined object types and records. Schema/field mutations require admin scope; record CRUD uses write scope.
/api/v1/custom-objectsList custom object definitions
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objectsCreate custom object definition (admin scope)
Request body
{
"slug": {
"type": "string",
"required": true
},
"singular": {
"type": "string",
"required": true
},
"plural": {
"type": "string",
"required": true
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"color": {
"type": "string"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/custom-objects' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/searchSearch records across all searchable objects
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| q | string | Ja | |
| limit | number | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/search' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slugGet definition with field schemas
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/:slug' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slugUpdate definition metadata (admin scope)
Eksempel
curl -X PATCH 'https://app.salesbase.dk/api/v1/custom-objects/:slug' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slugDelete object and all records (admin scope)
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/custom-objects/:slug' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/fieldsAdd field (admin scope)
Request body
{
"slug": {
"type": "string",
"required": true
},
"label": {
"type": "string",
"required": true
},
"type": {
"type": "string",
"required": true
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/custom-objects/:slug/fields' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/fields/:fieldSlugUpdate field (admin scope)
Eksempel
curl -X PATCH 'https://app.salesbase.dk/api/v1/custom-objects/:slug/fields/:fieldSlug' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/fields/:fieldSlugDelete field (admin scope)
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/custom-objects/:slug/fields/:fieldSlug' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/recordsList records with pagination or cursor search
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | number | Nej | |
| limit | number | Nej | |
| q | string | Nej | Search query (alias: search) |
| search | string | Nej | Alias for q |
| cursor | string | Nej | Cursor for next page when searching |
| sort | string | Nej | Field slug to sort by |
| dir | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/recordsCreate record
Request body
{
"type": "object",
"description": "Field slug keys → values"
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/records/bulkBulk update records
Request body
{
"ids": {
"type": "string[]",
"required": true
},
"patch": {
"type": "object",
"required": true
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records/bulk' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/records/:idGet record by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/records/:idPartial update of record
Eksempel
curl -X PATCH 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/records/:idReplace record
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/records/:idDelete record
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/records/:id/activity-feedActivity feed for a record
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records/{id}/activity-feed' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/custom-objects/:slug/records/:id/relatedRelated custom object records linked via native entity refs
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records/{id}/related' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/export/custom-objects/:slugExport records (export + admin scope)
Request body
{
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"limit": {
"type": "number"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/export/custom-objects/:slug' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/import/custom-objects/:slugImport records from rows array (import + admin scope)
Request body
{
"rows": {
"type": "array",
"required": true
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/import/custom-objects/:slug' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Read calculator templates tied to offer types and run stateless price calculations.
/api/v1/calculator-templatesList calculator templates
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/calculator-templates' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/calculator-templates/:idGet template with pricing rules
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/calculator-templates/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/calculator-templates/:id/calculateRun calculation without persisting
Request body
{
"inputs": {
"type": "object",
"required": true
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/calculator-templates/{id}/calculate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/calculator-submissionsList calculator submissions
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | string | Nej | |
| limit | string | Nej | |
| templateId | string | Nej | |
| offerId | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/calculator-submissions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Read integration connection status. OAuth connect flows remain in-app only.
/api/v1/integrationsList connected providers and sync health (no secrets)
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/integrations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/integrations/:provider/syncTrigger manual sync (admin scope)
Request body
{
"fullSync": {
"type": "boolean"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/integrations/:provider/sync' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Automations are event-driven flows that execute actions when specific triggers fire. Each automation has exactly one trigger node and one or more action/condition/delay/AI nodes connected by edges. Automations are stored as ReactFlow graphs (nodes + edges) and executed by a cron-based step processor.
/api/v1/automationsList all automations in the workspace
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | number | Nej | Page number |
| limit | number | Nej | Items per page |
| isActive | string | Nej | Filter by active status |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/automations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automationsCreate a new automation
Request body
{
"name": {
"type": "string",
"required": true,
"description": "Automation name"
},
"description": {
"type": "string",
"required": false,
"description": "Description of what this automation does"
},
"nodes": {
"type": "Node[]",
"required": false,
"description": "Array of flow nodes (see Node Structure below)"
},
"edges": {
"type": "Edge[]",
"required": false,
"description": "Array of edges connecting nodes (see Edge Structure below)"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/automations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:idGet a single automation by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/automations/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:idUpdate an automation
Request body
{
"name": {
"type": "string",
"required": false
},
"description": {
"type": "string",
"required": false
},
"nodes": {
"type": "Node[]",
"required": false
},
"edges": {
"type": "Edge[]",
"required": false
},
"executionSettings": {
"type": "ExecutionSettings",
"required": false
},
"rateLimits": {
"type": "RateLimits",
"required": false
}
}Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/automations/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:idDelete an automation. Fails if there are running executions.
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/automations/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:id/toggleToggle automation active/inactive
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/toggle' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:id/executionsList executions for an automation
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | number | Nej | |
| limit | number | Nej | |
| status | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/automations/{id}/executions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/executions/:executionIdGet a single execution with full step log
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/automations/executions/:executionId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/statsGet aggregate automation statistics for the workspace
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/automations/stats' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:id/duplicateDuplicate an automation (creates inactive copy)
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/duplicate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:id/testRun automation in test mode with sample context
Request body
{
"testContext": {
"type": "object",
"description": "Optional context overrides"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/test' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/:id/triggerManually trigger an active automation
Request body
{
"context": {
"type": "object",
"description": "Trigger context payload"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/trigger' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/automations/executions/:executionId/cancelCancel a running automation execution
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/automations/executions/:executionId/cancel' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Sequences are entity-centric outreach flows for personalized sales communication. Unlike automations (which are event-triggered), sequences are started by enrolling an entity (Lead, People, Deal, or Company). Each sequence has a Start node, communication nodes (email, SMS), timing nodes (wait), action nodes (tasks, recalls, field updates), logic nodes (conditions, AI), and Stop nodes.
/api/v1/sequencesList all sequences in the workspace
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | number | Nej | |
| limit | number | Nej | |
| isActive | string | Nej | Filter by active status |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sequences' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequencesCreate a new sequence
Request body
{
"name": {
"type": "string",
"required": true,
"description": "Sequence name"
},
"description": {
"type": "string",
"required": false
},
"nodes": {
"type": "Node[]",
"required": false,
"description": "Array of step nodes (see Step Types below). A default Start node is created if nodes are omitted."
},
"edges": {
"type": "Edge[]",
"required": false,
"description": "Array of edges connecting nodes"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sequences' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:idGet a single sequence by ID
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:idUpdate a sequence
Request body
{
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"nodes": {
"type": "Node[]"
},
"edges": {
"type": "Edge[]"
},
"allowedEntityTypes": {
"type": "string[]",
"description": "Array of entity types that can be enrolled: 'Lead', 'People', 'Deal', 'Company'"
},
"exitConditions": {
"type": "ExitConditions",
"description": "See Exit Conditions section"
},
"sendSettings": {
"type": "SendSettings",
"description": "See Send Settings section"
},
"trackingSettings": {
"type": "TrackingSettings"
},
"aiSettings": {
"type": "AiSettings"
},
"executionSettings": {
"type": "ExecutionSettings"
},
"triggers": {
"type": "Trigger[]",
"description": "Auto-enrollment triggers"
},
"defaultSenderType": {
"type": "string",
"enum": [
"fixed",
"owner"
]
},
"defaultSenderId": {
"type": "string",
"description": "Email account ID for fixed sender"
},
"defaultSmsNumber": {
"type": "string",
"description": "Twilio number for SMS"
}
}Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/sequences/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:idDelete a sequence. Fails if there are active enrollments.
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/sequences/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:id/toggleToggle sequence active/inactive. Activation requires a start node and at least one action node.
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/{id}/toggle' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:id/duplicateDuplicate a sequence (creates inactive copy)
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/{id}/duplicate' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:id/enroll-eligibilityCheck if an entity can be enrolled before calling enroll
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| entityType | string | Ja | |
| entityId | string | Ja |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}/enroll-eligibility' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:id/enrollEnroll one or more entities into the sequence
Request body
{
"entityType": {
"type": "string",
"required": true,
"enum": [
"Lead",
"People",
"Deal",
"Company"
]
},
"entityId": {
"type": "string",
"description": "Single entity ID (for single enrollment)"
},
"entityIds": {
"type": "string[]",
"description": "Array of entity IDs (for bulk enrollment)"
},
"source": {
"type": "string",
"default": "api",
"description": "Enrollment source identifier"
},
"forceRestart": {
"type": "boolean",
"default": false,
"description": "Re-enroll even if entity was previously enrolled"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/{id}/enroll' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:id/enrollmentsList enrollments for a sequence
Parametre
| Navn | Type | Påkrævet | Beskrivelse |
|---|---|---|---|
| page | number | Nej | |
| limit | number | Nej | |
| status | string | Nej |
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}/enrollments' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/:id/statsGet aggregate statistics for a sequence
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}/stats' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/enrollments/:enrollmentId/pausePause an active enrollment
Request body
{
"durationDays": {
"type": "number",
"description": "Optional: auto-resume after X days"
}
}Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/enrollments/:enrollmentId/pause' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/enrollments/:enrollmentId/resumeResume a paused enrollment
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/enrollments/:enrollmentId/resume' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/sequences/enrollments/:enrollmentId/unenrollRemove an entity from the sequence (only if active or paused)
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/enrollments/:enrollmentId/unenroll' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'Subscribe to CRM events and receive HTTP POST notifications at your URL. Each webhook delivery includes an HMAC signature for verification. Manage subscriptions via the /api/v1/webhooks/subscriptions endpoints.
/api/v1/webhooks/subscriptionsList subscriptions
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptionsCreate subscription (returns secret)
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptions/:idGet subscription
Eksempel
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptions/:idUpdate subscription
Eksempel
curl -X PUT 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/subscriptions/:idDelete subscription
Eksempel
curl -X DELETE 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/webhooks/automation/:automationIdTrigger a webhook-type automation. The JSON body becomes available as webhookData.* placeholders in the automation flow.
Eksempel
curl -X POST 'https://app.salesbase.dk/api/webhooks/automation/:automationId' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'/api/v1/webhooks/zapierZapier inbound — creates person, lead, and deal. Bearer API key with inbound scope.
Eksempel
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/zapier' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json'company.createdA company was created
company.updatedA company was updated
company.deletedA company was deleted
person.createdA person was created
person.updatedA person was updated
person.deletedA person was deleted
deal.createdA deal was created
deal.updatedA deal was updated
deal.deletedA deal was deleted
deal.stage_changedA deal moved to a different pipeline stage
deal.wonA deal was marked as won
deal.lostA deal was marked as lost
lead.createdA lead was created
lead.updatedA lead was updated
lead.deletedA lead was deleted
call.createdA call record was created
call.updatedA call record was updated
note.createdA note was created
note.updatedA note was updated
task.createdA task was created
task.updatedA task was updated
task.completedA task was marked as completed
activity.createdAn activity was logged
custom_object.createdA custom object record was created
custom_object.updatedA custom object record was updated
Opret en API-nøgle i dashboardet og kør jeres første kald.