Salesbase

API REFERENCE

Salesbase REST API v1.0

336 dokumenterede endpoints. Base URL: https://app.salesbase.dk/api/v1. Maskinlæsbar JSON: /api/v1/docs?full=true

Svar-format

Alle endpoints returnerer JSON med konsistent struktur.

GET(alle endpoints)

Standard svar-struktur

GET list: { data, page, limit, total }. GET single: { data }. POST: { data: { _id } }. PUT/PATCH/DELETE: { ok: true }. Fejl: { error }.

Autentifikation & rate limits

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.

GET(alle endpoints)

API-nøgle

Authorization: Bearer <YOUR_API_KEY>. Nøgler starter med sb_.

GET(alle endpoints)

Rate limits

120 requests per minute, 50,000 requests per day. HTTP 429 ved overskridelse.

Inbound

Create companies, people, leads, and deals in one request. Ideal for form submissions and integrations.

POST/api/v1/inbound

Create or find-and-update company/person/lead/deal from a single payload

Create or find-and-update company/person/lead/deal from a single payload. Supports JSON, form-urlencoded, and Elementor webhook formats.

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/inbound' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/inbound

Returns API documentation for the inbound endpoint

Returns API documentation for the inbound endpoint

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/inbound' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Virksomheder

GET/api/v1/companies

List companies

List companies

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
searchstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/companies' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/companies

Create a company

Create a company

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/companies' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/companies/:id

Get company by ID

Get company by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/companies/:id

Update company

Update company

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/companies/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/companies/:id

Delete company

Delete company

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/companies/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/companies/:id/people

List people connected to company

List people connected to company

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/people' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/companies/:id/deals

List deals connected to company

List deals connected to company

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/deals' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/companies/:id/activities

List activities for company

List activities for company

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/activities' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/companies/:id/activity-feed

Unified activity feed for company

Unified activity feed for company

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/companies/{id}/activity-feed' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/companies/:id/people

Link person to company

Link person to company

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/companies/{id}/people' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/companies/:id/people

Unlink person from company

Unlink person from company

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/companies/{id}/people' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Personer

GET/api/v1/people

List people

List people

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/people' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/people

Create a person

Create a person

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/people' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/people/:id

Get person by ID

Get person by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/people/:id

Update person

Update person

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/people/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/people/:id

Delete person

Delete person

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/people/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/people/:id/companies

List companies connected to person

List companies connected to person

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/companies' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/people/:id/deals

List deals connected to person

List deals connected to person

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/deals' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/people/:id/activities

List activities for person

List activities for person

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/activities' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/people/:id/activity-feed

Unified activity feed for person

Unified activity feed for person

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/people/{id}/activity-feed' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Leads

GET/api/v1/leads

List leads

List leads

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
statusstringNej
sourcestringNej
searchstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/leads' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/leads

Create a lead

Create a lead

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/leads' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/leads/:id

Get lead by ID

Get lead by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/leads/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/leads/:id

Update lead

Update lead

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/leads/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/leads/:id

Delete lead

Delete lead

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/leads/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/leads/:id/activity-feed

Unified activity feed for lead

Unified activity feed for lead

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/leads/{id}/activity-feed' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/leads/:id/activities

List activities for lead

List activities for lead

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/leads/{id}/activities' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Deals

GET/api/v1/deals

List deals

List deals

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
flowIdstringNejFilter by pipeline
stageIdstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/deals' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/deals

Create a deal

Create a deal

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/deals' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/deals/:id

Get deal by ID

Get deal by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/deals/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/deals/:id

Update deal (logs field/stage changes to activity feed, same as UI)

Update deal (logs field/stage changes to activity feed, same as UI)

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/deals/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/deals/:id

Delete deal

Delete deal

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/deals/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/deals/:id/move

Move deal to a different stage

Move deal to a different stage

Request body

json
{
  "stageId": {
    "type": "string",
    "required": true
  },
  "flowId": {
    "type": "string"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/deals/{id}/move' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/deals/:id/activities

List activities for deal

List activities for deal

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/deals/{id}/activities' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/deals/:id/activity-feed

Unified activity feed for deal

Unified activity feed for deal

Eksempel

curl
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

Aktiviteter / activity feed — list and create feed rows (noter, opkald, deals m.m.)

GET/api/v1/activities

List activities (aktiviteter)

List activities (aktiviteter)

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/activities' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/activities

Create activity / aktivitet (creates a feed row)

Create activity / aktivitet (creates a feed row). Body: type (required), summary or title, description, companyId/personId/dealId/leadId, entityType+entityId, noteRef, date, metadata

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/activities' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/activities/:id

Get activity by ID (aktivitet)

Get activity by ID (aktivitet)

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/activities/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Opgaver

GET/api/v1/tasks

List tasks

List tasks

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/tasks' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/tasks

Create task

Create task

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/tasks' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/tasks/:id

Get task

Get task

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/tasks/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/tasks/:id

Update task

Update task

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/tasks/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/tasks/:id

Delete task

Delete task

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/tasks/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Noter

GET/api/v1/notes

List notes

List notes

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/notes' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/notes

Create note (also creates linked activity for Noter tab / activity feed)

Create note (also creates linked activity for Noter tab / activity feed). Requires entity ref: company, personRef, leadRef, dealRef, or customObjectRecord

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/notes' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/notes/:id

Get note

Get note

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/notes/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/notes/:id

Update note (syncs linked activity)

Update note (syncs linked activity)

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/notes/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/notes/:id

Delete note (removes linked activity)

Delete note (removes linked activity)

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/notes/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Opkald

GET/api/v1/calls

List calls

List calls

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/calls' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/calls

Create call record (also creates call activity in feed)

Create call record (also creates call activity in feed)

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/calls' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/calls/:id

Get call by ID

Get call by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/calls/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/calls/:id

Update call (syncs linked activity)

Update call (syncs linked activity)

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/calls/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/calls/:id

Delete call (removes linked activity)

Delete call (removes linked activity)

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/calls/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Begivenheder

GET/api/v1/events

List events

List events

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/events' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/events

Create event

Create event

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/events' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/events/:id

Get event

Get event

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/events/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/events/:id

Update event

Update event

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/events/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/events/:id

Delete event

Delete event

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/events/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Tags

GET/api/v1/tags

List unique tags

List unique tags

Parametre

NavnTypePåkrævetBeskrivelse
entityTypestringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/tags' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/tags/bulk

Bulk add/remove tags on multiple entities

Bulk add/remove tags on multiple entities

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/tags/bulk' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Custom Fields

GET/api/v1/custom-fields

List custom field definitions

List custom field definitions

Parametre

NavnTypePåkrævetBeskrivelse
entityTypestringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/custom-fields' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/custom-fields

Create custom field definition

Create custom field definition

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/custom-fields' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/custom-fields/:id

Get custom field

Get custom field

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/custom-fields/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/custom-fields/:id

Update custom field

Update custom field

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/custom-fields/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/custom-fields/:id

Delete custom field

Delete custom field

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/custom-fields/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/custom-fields/search

Search entities by custom field values

Search entities by custom field values

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/custom-fields/search' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Flows & Stages

GET/api/v1/flows

List pipelines

List pipelines

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/flows' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/flows

Create pipeline

Create pipeline

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/flows' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/flows/:id

Get pipeline

Get pipeline

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/flows/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/flows/:id

Update pipeline

Update pipeline

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/flows/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/flows/:id

Delete pipeline

Delete pipeline

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/flows/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/flows/:id/stages

Create stage in pipeline

Create stage in pipeline

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/flows/{id}/stages' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/flows/:id/stages

Update stage

Update stage

Request body

json
{
  "id": {
    "type": "string",
    "required": true
  },
  "title": {
    "type": "string"
  },
  "order": {
    "type": "number"
  }
}

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/flows/{id}/stages' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/flows/:id/stages

Delete stage

Delete stage

Request body

json
{
  "id": {
    "type": "string",
    "required": true
  }
}

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/flows/{id}/stages' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Lister & Items

GET/api/v1/lists

List all lists

List all lists

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/lists' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/lists

Create list

Create list

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/lists' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/lists/:id

Get list

Get list

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/lists/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/lists/:id

Update list

Update list

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/lists/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/lists/:id

Delete list

Delete list

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/lists/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/lists/:id/items

List items in a list

List items in a list

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/lists/{id}/items' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/lists/:id/items

Add items to list

Add items to list

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/lists/{id}/items' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/lists/:id/items

Remove items from list

Remove items from list

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/lists/{id}/items' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Emails

GET/api/v1/emails

List emails

List emails

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/emails' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/emails

Send email

Send email

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/emails' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/emails/:id

Get email

Get email

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/emails/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/emails/threads/:threadId

Get email thread

Get email thread

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/emails/threads/:threadId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Email Accounts

GET/api/v1/email-accounts

List connected email accounts

List connected email accounts

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/email-accounts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Email Templates

Create and manage email templates with custom HTML (compiledHtml). Supports {{contact.*}} placeholders and default filter syntax {{field | default:"fallback"}}.

GET/api/v1/email-templates

List email templates

List email templates

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/email-templates' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/email-templates

Create email template (admin scope)

Create email template (admin scope)

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/email-templates' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/email-templates/:id

Get template by ID (includes compiledHtml, projectData)

Get template by ID (includes compiledHtml, projectData)

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/email-templates/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PATCH/api/v1/email-templates/:id

Update template (admin scope)

Update template (admin scope)

Eksempel

curl
curl -X PATCH 'https://app.salesbase.dk/api/v1/email-templates/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/email-templates/:id

Delete template (admin scope)

Delete template (admin scope)

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/email-templates/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

SMS

GET/api/v1/sms

List SMS messages

List SMS messages

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sms' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sms

Send SMS

Send SMS

Request body

json
{
  "to": {
    "type": "string",
    "required": true
  },
  "message": {
    "type": "string",
    "required": true
  },
  "from": {
    "type": "string",
    "description": "Sender number"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sms' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/sms/:id

Get SMS by ID

Get SMS by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sms/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sms/bulk

Send bulk SMS

Send bulk SMS

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sms/bulk' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sms/schedule

Schedule SMS for later

Schedule SMS for later

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sms/schedule' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/sms/scheduled

List scheduled SMS

List scheduled SMS

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sms/scheduled' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/sms/scheduled/:id

Cancel scheduled SMS

Cancel scheduled SMS

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/sms/scheduled/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/sms/threads/:phoneNumber

Get SMS thread by phone number

Get SMS thread by phone number

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sms/threads/:phoneNumber' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

SMS Templates

GET/api/v1/sms-templates

List SMS templates

List SMS templates

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sms-templates' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Webhook-abonnementer

Subscribe to CRM events via outbound webhooks. See the Webhooks section for available events.

GET/api/v1/webhooks/subscriptions

List webhook subscriptions

List webhook subscriptions

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/webhooks/subscriptions

Create webhook subscription

Create webhook subscription

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/webhooks/subscriptions/:id

Get subscription (secret masked)

Get subscription (secret masked)

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/webhooks/subscriptions/:id

Update subscription

Update subscription

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/webhooks/subscriptions/:id

Delete subscription

Delete subscription

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/webhooks/zapier

Zapier inbound webhook — creates person, lead, and deal in one request (Bearer A

Zapier inbound webhook — creates person, lead, and deal in one request (Bearer API key)

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/zapier' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

CRM Connect

Lookup and connect CRM data with external systems

GET/api/v1/crm-connect/lookup

Look up entity by phone/email

Look up entity by phone/email

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/crm-connect/lookup' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/crm-connect/calls

Log or connect call events for integration

Log or connect call events for integration

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/crm-connect/calls' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Offers (quotes/proposals)

Create draft offers linked to offer types and templates. Send creates an immutable snapshot and public link.

GET/api/v1/offers

List offers

List offers

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/offers' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offers

Create offer

Create offer

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/offers' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/offers/:id

Get offer (by _id or publicId)

Get offer (by _id or publicId)

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/offers/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/offers/:id

Update draft offer

Update draft offer

Request body

json
{
  "title": {
    "type": "string"
  },
  "templateId": {
    "type": "ObjectId"
  },
  "offerTypeId": {
    "type": "ObjectId"
  },
  "quoteInput": {
    "type": "object"
  },
  "calculatorResult": {
    "type": "object"
  }
}

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/offers/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/offers/:id

Delete draft offer

Delete draft offer

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/offers/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offers/:id/send

Send offer — snapshot, activity, automations, offer

Send offer — snapshot, activity, automations, offer.sent webhook. Returns publicId.

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/send' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offers/:id/cancel

Cancel offer

Cancel offer

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/cancel' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offers/:id/send-email

Send or resend offer email to customer

Send or resend offer email to customer

Request body

json
{
  "emailTo": {
    "type": "string",
    "description": "Optional recipient override"
  },
  "senderAccountId": {
    "type": "ObjectId",
    "description": "Optional sender email account"
  },
  "templateId": {
    "type": "ObjectId",
    "description": "Optional email template"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/send-email' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offers/:id/send-sms

Send or resend offer link via SMS

Send or resend offer link via SMS

Request body

json
{
  "phoneTo": {
    "type": "string",
    "description": "Optional phone override"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/offers/{id}/send-sms' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/offers/:id/preview-token

Preview URL for draft offers (short-lived token) or public link when sent

Preview URL for draft offers (short-lived token) or public link when sent

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/offers/{id}/preview-token' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Offer Templates (tilbudsskabeloner)

Visual page-builder templates with pages[], headerElements, footerElements, branding, and custom HTML elements. See ?section=offerTemplates for element types and A-Polering reference.

GET/api/v1/offer-templates

List templates (summary without full pages)

List templates (summary without full pages)

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/offer-templates' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offer-templates

Create template with full layout (admin scope)

Create template with full layout (admin scope)

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/offer-templates' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/offer-templates/:id

Get full template including pages and elements

Get full template including pages and elements

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/offer-templates/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PATCH/api/v1/offer-templates/:id

Update template (admin scope)

Update template (admin scope)

Eksempel

curl
curl -X PATCH 'https://app.salesbase.dk/api/v1/offer-templates/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/offer-templates/:id

Delete template (admin scope)

Delete template (admin scope)

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/offer-templates/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offer-templates/:id/duplicate

Duplicate template (admin scope)

Duplicate template (admin scope)

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/offer-templates/{id}/duplicate' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Offer Types

GET/api/v1/offer-types

List offer types

List offer types

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/offer-types' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/offer-types

Create offer type (admin scope)

Create offer type (admin scope)

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/offer-types' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/offer-types/:id

Get offer type

Get offer type

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/offer-types/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PATCH/api/v1/offer-types/:id

Update offer type (admin scope)

Update offer type (admin scope)

Eksempel

curl
curl -X PATCH 'https://app.salesbase.dk/api/v1/offer-types/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/offer-types/:id

Delete offer type (admin scope)

Delete offer type (admin scope)

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/offer-types/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Products & Catalog

GET/api/v1/products

List products

List products

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/products' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/products

Create product

Create product

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/products' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/products/:id

Get product

Get product

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/products/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/products/:id

Update product

Update product

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/products/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/products/:id

Delete product

Delete product

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/products/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/catalog

List catalog items

List catalog items

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/catalog' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/catalog

Create catalog item

Create catalog item

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/catalog' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/catalog/:id

Get catalog item

Get catalog item

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/catalog/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/catalog/:id

Update catalog item

Update catalog item

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/catalog/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/catalog/:id

Delete catalog item

Delete catalog item

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/catalog/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Projects

GET/api/v1/projects

List projects

List projects

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/projects' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/projects

Create project

Create project

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/projects' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/projects/:id

Get project

Get project

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/projects/:id

Update project

Update project

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/projects/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/projects/:id

Delete project

Delete project

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/projects/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/projects/:id/move

Move project to different stage

Move project to different stage

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/move' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/projects/:id/stats

Get project statistics

Get project statistics

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/projects/:id/tasks

List project tasks

List project tasks

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/tasks' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/projects/:id/tasks

Create project task

Create project task

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/tasks' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/projects/tasks/:taskId

Get project task

Get project task

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/projects/tasks/:taskId

Update project task

Update project task

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/projects/tasks/:taskId

Delete project task

Delete project task

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/projects/tasks/:taskId/move

Move project task

Move project task

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/projects/tasks/:taskId/move' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/projects/:id/time-entries

List time entries

List time entries

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/time-entries' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/projects/:id/time-entries

Create time entry

Create time entry

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/time-entries' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/projects/time-entries/:entryId

Update time entry

Update time entry

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/projects/time-entries/:entryId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/projects/time-entries/:entryId

Delete time entry

Delete time entry

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/projects/time-entries/:entryId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/projects/:id/expenses

List expenses

List expenses

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/projects/{id}/expenses' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/projects/:id/expenses

Create expense

Create expense

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/projects/{id}/expenses' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Bookings

GET/api/v1/bookings

List bookings

List bookings

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/bookings' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/bookings

Create booking

Create booking

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/bookings' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/bookings/:id

Get booking by ID

Get booking by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/bookings/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/bookings/:id/cancel

Cancel booking

Cancel booking

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/cancel' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/bookings/:id/approve

Approve pending booking

Approve pending booking

Request body

json
{
  "notes": {
    "type": "string"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/approve' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/bookings/:id/reject

Reject pending booking

Reject pending booking

Request body

json
{
  "reason": {
    "type": "string"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/reject' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/bookings/:id/reschedule

Reschedule booking

Reschedule booking

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/bookings/{id}/reschedule' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/bookings/available-slots

Get available time slots

Get available time slots

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/bookings/available-slots' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/booking-configs

List booking configurations

List booking configurations

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/booking-configs' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/booking-configs/:id

Get booking configuration

Get booking configuration

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/booking-configs/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PATCH/api/v1/booking-configs/:id

Update booking configuration (admin scope)

Update booking configuration (admin scope)

Eksempel

curl
curl -X PATCH 'https://app.salesbase.dk/api/v1/booking-configs/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Reports

GET/api/v1/reports/pipeline

Pipeline report

Pipeline report

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/pipeline' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/reports/leads

Leads report

Leads report

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/leads' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/reports/offers

Offers report

Offers report

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/offers' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/reports/support

Support report

Support report

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/support' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/reports/history

History/activity report

History/activity report

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/history' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/reports/organization

Organization overview

Organization overview

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/organization' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/reports/users

Users report

Users report

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/users' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/reports/users/:userId

Individual user report

Individual user report

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/reports/users/:userId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Lead Scoring

GET/api/v1/lead-scoring/rules

List lead scoring rules

List lead scoring rules

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/lead-scoring/rules' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/lead-scoring/rules

Create scoring rule

Create scoring rule

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/lead-scoring/rules' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/lead-scoring/rules/:id

Update scoring rule

Update scoring rule

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/lead-scoring/rules/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/lead-scoring/rules/:id

Delete scoring rule

Delete scoring rule

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/lead-scoring/rules/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Lead Routing

GET/api/v1/lead-routing/rules

List lead routing rules

List lead routing rules

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/lead-routing/rules' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/lead-routing/rules

Create routing rule

Create routing rule

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/lead-routing/rules' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/lead-routing/rules/:id

Update routing rule

Update routing rule

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/lead-routing/rules/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/lead-routing/rules/:id

Delete routing rule

Delete routing rule

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/lead-routing/rules/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Import & Export

POST/api/v1/import/companies

Import companies from CSV/data

Import companies from CSV/data

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/import/companies' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/import/people

Import people

Import people

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/import/people' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/import/leads

Import leads

Import leads

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/import/leads' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/import/deals

Import deals

Import deals

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/import/deals' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/import/validate

Validate import data before importing

Validate import data before importing

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/import/validate' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/import/history

List import history

List import history

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/import/history' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/export/leads

Export leads

Export leads

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/export/leads' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/export/deals

Export deals

Export deals

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/export/deals' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/export/people

Export people

Export people

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/export/people' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/export/companies

Export companies

Export companies

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/export/companies' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/export/lists/:listId

Export list items

Export list items

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/export/lists/:listId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Files & Folders

GET/api/v1/files

List files

List files

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/files' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/files

Upload file

Upload file

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/files' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/files/:id

Get file metadata

Get file metadata

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/files/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/files/:id

Delete file

Delete file

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/files/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/files/:id/link

Create signed download link

Create signed download link

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/files/{id}/link' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/folders

List folders

List folders

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/folders' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/folders

Create folder

Create folder

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/folders' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/folders/:id

Delete folder

Delete folder

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/folders/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Users (Team Members)

Manage workspace members

GET/api/v1/users

List workspace members

List workspace members

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
searchstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/users' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/users/:id

Get user by ID

Get user by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/users/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/users/:id

Update user (name, phone)

Update user (name, phone)

Request body

json
{
  "firstName": {
    "type": "string"
  },
  "lastName": {
    "type": "string"
  },
  "phone": {
    "type": "string"
  },
  "defaultUserPhone": {
    "type": "string"
  }
}

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/users/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Support Tickets

Manage customer support tickets with conversations

GET/api/v1/support-tickets

List support tickets

List support tickets

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
statusstringNej
prioritystringNej
assigneestringNej
categorystringNej
searchstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/support-tickets' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/support-tickets

Create support ticket

Create support ticket

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/support-tickets' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/support-tickets/:id

Get support ticket by ID

Get support ticket by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/support-tickets/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/support-tickets/:id

Update support ticket

Update support ticket

Request body

json
{
  "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
curl -X PUT 'https://app.salesbase.dk/api/v1/support-tickets/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/support-tickets/:id

Delete support ticket

Delete support ticket

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/support-tickets/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/support-tickets/:id/reply

Add reply to ticket

Add reply to ticket

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/support-tickets/{id}/reply' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/support-tickets/:id/move

Move ticket to kanban stage

Move ticket to kanban stage

Request body

json
{
  "stageId": {
    "type": "number",
    "required": true
  },
  "flowId": {
    "type": "string",
    "description": "Optional support flow ID"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/support-tickets/{id}/move' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/support-tickets/:id/messages

List ticket messages

List ticket messages

Parametre

NavnTypePåkrævetBeskrivelse
limitnumberNej
visibilitystringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/support-tickets/{id}/messages' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/support-tickets/:id/time-entries

List time entries on ticket

List time entries on ticket

Eksempel

curl
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'
POST/api/v1/support-tickets/:id/time-entries

Create time entry on ticket

Create time entry on ticket

Eksempel

curl
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'

Scripts (Call Scripts)

Manage sales/call scripts for the dialer

GET/api/v1/scripts

List scripts

List scripts

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
searchstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/scripts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/scripts

Create script

Create script

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/scripts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/scripts/:id

Get script by ID

Get script by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/scripts/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/scripts/:id

Update script

Update script

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/scripts/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/scripts/:id

Delete script

Delete script

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/scripts/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Filter Presets

Saved filter configurations for lists and views

GET/api/v1/filter-presets

List filter presets

List filter presets

Parametre

NavnTypePåkrævetBeskrivelse
areastringNejFilter by area (e.g. companies, leads, deals)
pagestringNej
limitstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/filter-presets' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/filter-presets

Create filter preset

Create filter preset

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/filter-presets' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/filter-presets/:id

Get filter preset

Get filter preset

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/filter-presets/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/filter-presets/:id

Update filter preset

Update filter preset

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/filter-presets/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/filter-presets/:id

Delete filter preset

Delete filter preset

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/filter-presets/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Email Signatures

GET/api/v1/email-signatures

List email signatures

List email signatures

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/email-signatures' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/email-signatures

Create signature

Create signature

Request body

json
{
  "name": {
    "type": "string",
    "required": true
  },
  "content": {
    "type": "string",
    "required": true,
    "description": "HTML content"
  },
  "textContent": {
    "type": "string"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/email-signatures' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/email-signatures/:id

Get signature

Get signature

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/email-signatures/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/email-signatures/:id

Update signature

Update signature

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/email-signatures/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/email-signatures/:id

Delete signature

Delete signature

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/email-signatures/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Clip Cards (Prepaid Hours)

Manage prepaid service hour cards for projects

GET/api/v1/clip-cards

List clip cards

List clip cards

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
statusstringNej
projectIdstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/clip-cards' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/clip-cards

Create clip card

Create clip card

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/clip-cards' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/clip-cards/:id

Get clip card

Get clip card

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/clip-cards/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/clip-cards/:id

Update clip card

Update clip card

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/clip-cards/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/clip-cards/:id

Delete clip card

Delete clip card

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/clip-cards/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Dashboard Layouts

Manage saved dashboard configurations

GET/api/v1/dashboard-layouts

List dashboard layouts

List dashboard layouts

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/dashboard-layouts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/dashboard-layouts

Create layout

Create layout

Request body

json
{
  "name": {
    "type": "string",
    "required": true
  },
  "layout": {
    "type": "object"
  },
  "visibleComponents": {
    "type": "string[]"
  },
  "chartWidgets": {
    "type": "array"
  },
  "visibility": {
    "type": "string",
    "enum": [
      "workspace",
      "private",
      "group",
      "user"
    ]
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/dashboard-layouts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/dashboard-layouts/:id

Get layout

Get layout

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/dashboard-layouts/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/dashboard-layouts/:id

Update layout

Update layout

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/dashboard-layouts/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/dashboard-layouts/:id

Delete layout

Delete layout

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/dashboard-layouts/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Custom Objects

Workspace-defined object types and records. Schema/field mutations require admin scope; record CRUD uses write scope.

GET/api/v1/custom-objects

List custom object definitions

List custom object definitions

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/custom-objects

Create custom object definition (admin scope)

Create custom object definition (admin scope)

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/custom-objects' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/custom-objects/:slug

Get definition with field schemas

Get definition with field schemas

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/:slug' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PATCH/api/v1/custom-objects/:slug

Update definition metadata (admin scope)

Update definition metadata (admin scope)

Eksempel

curl
curl -X PATCH 'https://app.salesbase.dk/api/v1/custom-objects/:slug' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/custom-objects/:slug

Delete object and all records (admin scope)

Delete object and all records (admin scope)

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/custom-objects/:slug' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/custom-objects/:slug/fields

Add field (admin scope)

Add field (admin scope)

Request body

json
{
  "slug": {
    "type": "string",
    "required": true
  },
  "label": {
    "type": "string",
    "required": true
  },
  "type": {
    "type": "string",
    "required": true
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/custom-objects/:slug/fields' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PATCH/api/v1/custom-objects/:slug/fields/:fieldSlug

Update field (admin scope)

Update field (admin scope)

Eksempel

curl
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'
DELETE/api/v1/custom-objects/:slug/fields/:fieldSlug

Delete field (admin scope)

Delete field (admin scope)

Eksempel

curl
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'
GET/api/v1/custom-objects/:slug/records

List records with pagination or cursor search

List records with pagination or cursor search

Parametre

NavnTypePåkrævetBeskrivelse
pagenumberNej
limitnumberNej
qstringNejSearch query (alias: search)
searchstringNejAlias for q
cursorstringNejCursor for next page when searching
sortstringNejField slug to sort by
dirstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/custom-objects/:slug/records

Create record

Create record

Request body

json
{
  "type": "object",
  "description": "Field slug keys → values"
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/custom-objects/:slug/records' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/custom-objects/:slug/records/bulk

Bulk update records

Bulk update records

Request body

json
{
  "ids": {
    "type": "string[]",
    "required": true
  },
  "patch": {
    "type": "object",
    "required": true
  }
}

Eksempel

curl
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'
GET/api/v1/custom-objects/:slug/records/:id

Get record by ID

Get record by ID

Eksempel

curl
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'
PATCH/api/v1/custom-objects/:slug/records/:id

Partial update of record

Partial update of record

Eksempel

curl
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'
PUT/api/v1/custom-objects/:slug/records/:id

Replace record

Replace record

Eksempel

curl
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'
DELETE/api/v1/custom-objects/:slug/records/:id

Delete record

Delete record

Eksempel

curl
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'
GET/api/v1/custom-objects/:slug/records/:id/activity-feed

Activity feed for a record

Activity feed for a record

Eksempel

curl
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'
POST/api/v1/export/custom-objects/:slug

Export records (export + admin scope)

Export records (export + admin scope)

Request body

json
{
  "from": {
    "type": "string"
  },
  "to": {
    "type": "string"
  },
  "limit": {
    "type": "number"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/export/custom-objects/:slug' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/import/custom-objects/:slug

Import records from rows array (import + admin scope)

Import records from rows array (import + admin scope)

Request body

json
{
  "rows": {
    "type": "array",
    "required": true
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/import/custom-objects/:slug' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Calculators

Read calculator templates tied to offer types and run stateless price calculations.

GET/api/v1/calculator-templates

List calculator templates

List calculator templates

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/calculator-templates' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/calculator-templates/:id

Get template with pricing rules

Get template with pricing rules

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/calculator-templates/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/calculator-templates/:id/calculate

Run calculation without persisting

Run calculation without persisting

Request body

json
{
  "inputs": {
    "type": "object",
    "required": true
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/calculator-templates/{id}/calculate' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/calculator-submissions

List calculator submissions

List calculator submissions

Parametre

NavnTypePåkrævetBeskrivelse
pagestringNej
limitstringNej
templateIdstringNej
offerIdstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/calculator-submissions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Integrations

Read integration connection status. OAuth connect flows remain in-app only.

GET/api/v1/integrations

List connected providers and sync health (no secrets)

List connected providers and sync health (no secrets)

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/integrations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/integrations/:provider/sync

Trigger manual sync (admin scope)

Trigger manual sync (admin scope)

Request body

json
{
  "fullSync": {
    "type": "boolean"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/integrations/:provider/sync' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Automatiseringer

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.

GET/api/v1/automations

List all automations in the workspace

List all automations in the workspace

Parametre

NavnTypePåkrævetBeskrivelse
pagenumberNejPage number
limitnumberNejItems per page
isActivestringNejFilter by active status

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/automations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/automations

Create a new automation

Create a new automation

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/automations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/automations/:id

Get a single automation by ID

Get a single automation by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/automations/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/automations/:id

Update an automation

Update an automation

Request body

json
{
  "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
curl -X PUT 'https://app.salesbase.dk/api/v1/automations/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/automations/:id

Delete an automation

Delete an automation. Fails if there are running executions.

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/automations/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/automations/:id/toggle

Toggle automation active/inactive

Toggle automation active/inactive

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/toggle' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/automations/:id/executions

List executions for an automation

List executions for an automation

Parametre

NavnTypePåkrævetBeskrivelse
pagenumberNej
limitnumberNej
statusstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/automations/{id}/executions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/automations/executions/:executionId

Get a single execution with full step log

Get a single execution with full step log

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/automations/executions/:executionId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/automations/stats

Get aggregate automation statistics for the workspace

Get aggregate automation statistics for the workspace

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/automations/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/automations/:id/duplicate

Duplicate an automation (creates inactive copy)

Duplicate an automation (creates inactive copy)

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/duplicate' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/automations/:id/test

Run automation in test mode with sample context

Run automation in test mode with sample context

Request body

json
{
  "testContext": {
    "type": "object",
    "description": "Optional context overrides"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/test' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/automations/:id/trigger

Manually trigger an active automation

Manually trigger an active automation

Request body

json
{
  "context": {
    "type": "object",
    "description": "Trigger context payload"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/automations/{id}/trigger' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/automations/executions/:executionId/cancel

Cancel a running automation execution

Cancel a running automation execution

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/automations/executions/:executionId/cancel' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Sekvenser

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.

GET/api/v1/sequences

List all sequences in the workspace

List all sequences in the workspace

Parametre

NavnTypePåkrævetBeskrivelse
pagenumberNej
limitnumberNej
isActivestringNejFilter by active status

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sequences' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sequences

Create a new sequence

Create a new sequence

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/sequences' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/sequences/:id

Get a single sequence by ID

Get a single sequence by ID

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/sequences/:id

Update a sequence

Update a sequence

Request body

json
{
  "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
curl -X PUT 'https://app.salesbase.dk/api/v1/sequences/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/sequences/:id

Delete a sequence

Delete a sequence. Fails if there are active enrollments.

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/sequences/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sequences/:id/toggle

Toggle sequence active/inactive

Toggle sequence active/inactive. Activation requires a start node and at least one action node.

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/{id}/toggle' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sequences/:id/duplicate

Duplicate a sequence (creates inactive copy)

Duplicate a sequence (creates inactive copy)

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/{id}/duplicate' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/sequences/:id/enroll-eligibility

Check if an entity can be enrolled before calling enroll

Check if an entity can be enrolled before calling enroll

Parametre

NavnTypePåkrævetBeskrivelse
entityTypestringJa
entityIdstringJa

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}/enroll-eligibility' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sequences/:id/enroll

Enroll one or more entities into the sequence

Enroll one or more entities into the sequence

Request body

json
{
  "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
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/{id}/enroll' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/sequences/:id/enrollments

List enrollments for a sequence

List enrollments for a sequence

Parametre

NavnTypePåkrævetBeskrivelse
pagenumberNej
limitnumberNej
statusstringNej

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}/enrollments' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/sequences/:id/stats

Get aggregate statistics for a sequence

Get aggregate statistics for a sequence

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/sequences/{id}/stats' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sequences/enrollments/:enrollmentId/pause

Pause an active enrollment

Pause an active enrollment

Request body

json
{
  "durationDays": {
    "type": "number",
    "description": "Optional: auto-resume after X days"
  }
}

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/enrollments/:enrollmentId/pause' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sequences/enrollments/:enrollmentId/resume

Resume a paused enrollment

Resume a paused enrollment

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/enrollments/:enrollmentId/resume' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/sequences/enrollments/:enrollmentId/unenroll

Remove an entity from the sequence (only if active or paused)

Remove an entity from the sequence (only if active or paused)

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/sequences/enrollments/:enrollmentId/unenroll' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Webhook Events

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.

GET/api/v1/webhooks/subscriptions

List subscriptions

List subscriptions

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/webhooks/subscriptions

Create subscription (returns secret)

Create subscription (returns secret)

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/subscriptions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
GET/api/v1/webhooks/subscriptions/:id

Get subscription

Get subscription

Eksempel

curl
curl -X GET 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
PUT/api/v1/webhooks/subscriptions/:id

Update subscription

Update subscription

Eksempel

curl
curl -X PUT 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
DELETE/api/v1/webhooks/subscriptions/:id

Delete subscription

Delete subscription

Eksempel

curl
curl -X DELETE 'https://app.salesbase.dk/api/v1/webhooks/subscriptions/{id}' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/webhooks/automation/:automationId

Trigger a webhook-type automation. The JSON body becomes available as webhookData.* placeholders in the automation flow.

Trigger a webhook-type automation. The JSON body becomes available as webhookData.* placeholders in the automation flow.

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/webhooks/automation/:automationId' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
POST/api/v1/webhooks/zapier

Zapier inbound — creates person, lead, and deal. Bearer API key with inbound scope.

Zapier inbound — creates person, lead, and deal. Bearer API key with inbound scope.

Eksempel

curl
curl -X POST 'https://app.salesbase.dk/api/v1/webhooks/zapier' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'
EVENTcompany.created

company.created

A company was created

EVENTcompany.updated

company.updated

A company was updated

EVENTcompany.deleted

company.deleted

A company was deleted

EVENTperson.created

person.created

A person was created

EVENTperson.updated

person.updated

A person was updated

EVENTperson.deleted

person.deleted

A person was deleted

EVENTdeal.created

deal.created

A deal was created

EVENTdeal.updated

deal.updated

A deal was updated

EVENTdeal.deleted

deal.deleted

A deal was deleted

EVENTdeal.stage_changed

deal.stage_changed

A deal moved to a different pipeline stage

EVENTdeal.won

deal.won

A deal was marked as won

EVENTdeal.lost

deal.lost

A deal was marked as lost

EVENTlead.created

lead.created

A lead was created

EVENTlead.updated

lead.updated

A lead was updated

EVENTlead.deleted

lead.deleted

A lead was deleted

EVENTcall.created

call.created

A call record was created

EVENTcall.updated

call.updated

A call record was updated

EVENTnote.created

note.created

A note was created

EVENTnote.updated

note.updated

A note was updated

EVENTtask.created

task.created

A task was created

EVENTtask.updated

task.updated

A task was updated

EVENTtask.completed

task.completed

A task was marked as completed

EVENTactivity.created

activity.created

An activity was logged

EVENTcustom_object.created

custom_object.created

A custom object record was created

EVENTcustom_object.updated

custom_object.updated

A custom object record was updated

Klar til at teste?

Opret en API-nøgle i dashboardet og kør jeres første kald.