Skip to content

Pipeline

Create pipelines, add and move leads, and read your lead capacity.

Method Path Description
GET /pipelines List pipelines
POST /pipelines Create an empty pipeline
GET /pipelines/capacity Lead capacity for the organisation
GET /pipelines/{pipelineId} Get a pipeline
DELETE /pipelines/{pipelineId} Delete a pipeline
PATCH /pipelines/{pipelineId}/stages/{stageId} Rename a stage
GET /pipelines/{pipelineId}/leads List leads in a pipeline
POST /pipelines/{pipelineId}/leads Add leads to a pipeline
PATCH /pipelines/{pipelineId}/leads/{leadId} Move a lead to another stage
DELETE /pipelines/{pipelineId}/leads/{leadId} Remove a lead from a pipeline

List pipelines

GET /pipelines

Scope: pipeline · Quota: does not count against the quota

Parameters

Parameter Type Description
page integer Page number.
sort string created_at, updated_at, name · default created_at
direction string asc, desc · default desc

Example

Terminal window
curl "https://ownr.dk/api/v2/pipelines" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"items": [
{
"id": 189,
"name": "Egne kunder Q4",
"entity_type": "company",
"lead_count": 0,
"stages": [
{
"id": 1231,
"name": "Nye leads",
"stage_key": "new",
"locked": true,
"lead_count": 0
}
],
"created_at": "2026-08-04T09:14:22+02:00",
"updated_at": "2026-01-31T12:00:00+01:00",
"url": "https://ownr.dk/pipelines/view/189"
}
],
"total": 4,
"count": 4,
"page": 1,
"pageCount": 1,
"nextPageUrl": null,
"prevPageUrl": null
}
}

Fields in the response

Field Type Description
data object
data.items array<object>
data.items[].id integer e.g. 189
data.items[].name string e.g. Egne kunder Q4
data.items[].entity_type string company, person, property · e.g. company
data.items[].lead_count integer e.g. 0
data.items[].stages array<object>
data.items[].stages[].id integer Use this to target the stage in POST/GET leads. e.g. 1231
data.items[].stages[].name string e.g. Nye leads
data.items[].stages[].stage_key string Set only for the 8 system stages (new/contacted/follow_up/in_dialog/offer_sent/follow_up2/won/lost); null for custom stages. Informational only — always address a stage by id. e.g. new
data.items[].stages[].locked boolean e.g. true
data.items[].stages[].lead_count integer e.g. 0
data.items[].created_at string (date-time) e.g. 2026-08-04T09:14:22+02:00
data.items[].updated_at string (date-time) The latest activity in the pipeline: a lead added, moved to another stage or removed, or the pipeline itself changed.
data.items[].url string e.g. https://ownr.dk/pipelines/view/189
data.total integer The same as count. e.g. 4
data.count integer The total number of records in the result set. e.g. 4
data.page integer The current page displayed. e.g. 1
data.pageCount integer Total number of pages. e.g. 1
data.nextPageUrl string
data.prevPageUrl string

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Create an empty pipeline

POST /pipelines

Scope: pipeline · Quota: does not count against the quota

Creates a pipeline. Creating a pipeline never consumes capacity — only leads do — so this call cannot return 402.

Body (JSON)

Field Type Description
name
required
string 0–48 characters · e.g. Egne kunder Q4
entity_type
required
string Fixed at creation and cannot be changed afterwards. company, person, property · e.g. company
stages array<string> Optional. Names of brand-new custom stages to create — not a selection from the default set. Nye leads, Vundet and Tabt always exist and cannot be removed; anything given here is inserted between them. Omit to keep the standard 8-stage set.

Example

Terminal window
curl -X POST "https://ownr.dk/api/v2/pipelines" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Egne kunder Q4","entity_type":"company","stages":["Custom Stage 1","Custom Stage 2"]}'
{
"status": "success",
"data": {
"item": {
"id": 189,
"name": "Egne kunder Q4",
"entity_type": "company",
"lead_count": 0,
"stages": [
{
"id": 1231,
"name": "Nye leads",
"stage_key": "new",
"locked": true,
"lead_count": 0
}
],
"created_at": "2026-08-04T09:14:22+02:00",
"updated_at": "2026-01-31T12:00:00+01:00",
"url": "https://ownr.dk/pipelines/view/189"
}
}
}

Fields in the response

Field Type Description
data object
data.item object
data.item.id integer e.g. 189
data.item.name string e.g. Egne kunder Q4
data.item.entity_type string company, person, property · e.g. company
data.item.lead_count integer e.g. 0
data.item.stages array<object>
data.item.stages[].id integer Use this to target the stage in POST/GET leads. e.g. 1231
data.item.stages[].name string e.g. Nye leads
data.item.stages[].stage_key string Set only for the 8 system stages (new/contacted/follow_up/in_dialog/offer_sent/follow_up2/won/lost); null for custom stages. Informational only — always address a stage by id. e.g. new
data.item.stages[].locked boolean e.g. true
data.item.stages[].lead_count integer e.g. 0
data.item.created_at string (date-time) e.g. 2026-08-04T09:14:22+02:00
data.item.updated_at string (date-time) The latest activity in the pipeline: a lead added, moved to another stage or removed, or the pipeline itself changed.
data.item.url string e.g. https://ownr.dk/pipelines/view/189

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
409 Conflict
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Lead capacity for the organisation

GET /pipelines/capacity

Scope: pipeline · Quota: does not count against the quota

Call this before a large import to size the request. The same figures are returned inside the 402 when an import is refused, so a preflight is an optimisation, not a requirement.

Example

Terminal window
curl "https://ownr.dk/api/v2/pipelines/capacity" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"capacity": {
"included": 250,
"used": 53,
"limit": 250,
"available": 197,
"segment_leads": 202,
"tier": {
"limit": 250,
"price_month": 0,
"price_year": 0,
"free": true
}
}
}
}

Fields in the response

Field Type Description
data object
data.capacity object Lead capacity is organisation-wide: every pipeline draws on the same pool. Leads that came from a segment are included with that segment and never counted here.
data.capacity.included integer Free base, always included. e.g. 250
data.capacity.used integer Leads counting against capacity, all pipelines. e.g. 53
data.capacity.limit integer Current ceiling (included, or the purchased tier) e.g. 250
data.capacity.available integer e.g. 197
data.capacity.segment_leads integer Included with their segment; not counted. e.g. 202
data.capacity.tier object
data.capacity.tier.limit integer e.g. 250
data.capacity.tier.price_month number e.g. 0
data.capacity.tier.price_year number e.g. 0
data.capacity.tier.free boolean e.g. true

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Get a pipeline

GET /pipelines/{pipelineId}

Scope: pipeline · Quota: does not count against the quota

Parameters

Parameter Type Description
pipelineId
in path, required
integer

Example

Terminal window
curl "https://ownr.dk/api/v2/pipelines/189" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"item": {
"id": 189,
"name": "Egne kunder Q4",
"entity_type": "company",
"lead_count": 0,
"stages": [
{
"id": 1231,
"name": "Nye leads",
"stage_key": "new",
"locked": true,
"lead_count": 0
}
],
"created_at": "2026-08-04T09:14:22+02:00",
"updated_at": "2026-01-31T12:00:00+01:00",
"url": "https://ownr.dk/pipelines/view/189"
}
}
}

Fields in the response

Field Type Description
data object
data.item object
data.item.id integer e.g. 189
data.item.name string e.g. Egne kunder Q4
data.item.entity_type string company, person, property · e.g. company
data.item.lead_count integer e.g. 0
data.item.stages array<object>
data.item.stages[].id integer Use this to target the stage in POST/GET leads. e.g. 1231
data.item.stages[].name string e.g. Nye leads
data.item.stages[].stage_key string Set only for the 8 system stages (new/contacted/follow_up/in_dialog/offer_sent/follow_up2/won/lost); null for custom stages. Informational only — always address a stage by id. e.g. new
data.item.stages[].locked boolean e.g. true
data.item.stages[].lead_count integer e.g. 0
data.item.created_at string (date-time) e.g. 2026-08-04T09:14:22+02:00
data.item.updated_at string (date-time) The latest activity in the pipeline: a lead added, moved to another stage or removed, or the pipeline itself changed.
data.item.url string e.g. https://ownr.dk/pipelines/view/189

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
404 Record not found
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Delete a pipeline

DELETE /pipelines/{pipelineId}

Scope: pipeline · Quota: does not count against the quota

Deleting a pipeline releases the capacity its leads occupied. Archiving does not.

Parameters

Parameter Type Description
pipelineId
in path, required
integer

Example

Terminal window
curl -X DELETE "https://ownr.dk/api/v2/pipelines/189" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"deleted": true,
"capacity": {
"included": 250,
"used": 53,
"limit": 250,
"available": 197,
"segment_leads": 202,
"tier": {
"limit": 250,
"price_month": 0,
"price_year": 0,
"free": true
}
}
}
}

Fields in the response

Field Type Description
data object
data.deleted boolean e.g. true
data.capacity object Lead capacity is organisation-wide: every pipeline draws on the same pool. Leads that came from a segment are included with that segment and never counted here.
data.capacity.included integer Free base, always included. e.g. 250
data.capacity.used integer Leads counting against capacity, all pipelines. e.g. 53
data.capacity.limit integer Current ceiling (included, or the purchased tier) e.g. 250
data.capacity.available integer e.g. 197
data.capacity.segment_leads integer Included with their segment; not counted. e.g. 202
data.capacity.tier object
data.capacity.tier.limit integer e.g. 250
data.capacity.tier.price_month number e.g. 0
data.capacity.tier.price_year number e.g. 0
data.capacity.tier.free boolean e.g. true

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
404 Record not found
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Rename a stage

PATCH /pipelines/{pipelineId}/stages/{stageId}

Scope: pipeline · Quota: does not count against the quota

Works on both locked (system) and custom stages. The 3 fixed stages (Nye leads/Vundet/Tabt) can be renamed but not removed or reordered.

Parameters

Parameter Type Description
pipelineId
in path, required
integer
stageId
in path, required
integer

Body (JSON)

Field Type Description
name
required
string 0–100 characters · e.g. Kontaktet igen

Example

Terminal window
curl -X PATCH "https://ownr.dk/api/v2/pipelines/189/stages/1231" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Kontaktet igen"}'
{
"status": "success",
"data": {
"item": {
"id": 1231,
"name": "Kontaktet igen",
"stage_key": null,
"locked": false,
"lead_count": 0
}
}
}

Fields in the response

Field Type Description
data object
data.item object
data.item.id integer e.g. 1231
data.item.name string e.g. Kontaktet igen
data.item.stage_key string
data.item.locked boolean e.g. false
data.item.lead_count integer e.g. 0

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
404 Record not found
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

List leads in a pipeline

GET /pipelines/{pipelineId}/leads

Scope: pipeline · Quota: does not count against the quota

Parameters

Parameter Type Description
pipelineId
in path, required
integer
stage integer Filter by stage id.
page integer Page number.

Example

Terminal window
curl "https://ownr.dk/api/v2/pipelines/189/leads" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"items": [
{
"id": 90311,
"cvr": 36732261,
"name": "SNT ApS",
"stage": 1231,
"source": "api",
"counts_against_capacity": true,
"created_at": "2026-08-04T09:20:41+02:00"
}
],
"total": 412,
"count": 412,
"page": 1,
"pageCount": 21,
"nextPageUrl": "https://ownr.dk/api/v2/pipelines/7/leads?page=2",
"prevPageUrl": null
}
}

Fields in the response

Field Type Description
data object
data.items array<object> Ordered by the time the lead was added.
data.items[].id integer e.g. 90311
data.items[].cvr integer e.g. 36732261
data.items[].name string e.g. SNT ApS
data.items[].stage integer Stage id — matches Pipeline.stages[].id. e.g. 1231
data.items[].source string api, csv, manual, segment · e.g. api
data.items[].counts_against_capacity boolean false for leads that came from a segment. e.g. true
data.items[].created_at string (date-time) e.g. 2026-08-04T09:20:41+02:00
data.total integer The same as count. e.g. 412
data.count integer The total number of records in the result set. e.g. 412
data.page integer The current page displayed. e.g. 1
data.pageCount integer Total number of pages. e.g. 21
data.nextPageUrl string e.g. https://ownr.dk/api/v2/pipelines/7/leads?page=2
data.prevPageUrl string

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
404 Record not found
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Add leads to a pipeline

POST /pipelines/{pipelineId}/leads

Scope: pipeline · Quota: does not count against the quota

Adds companies by CVR. Atomic by default: if the batch does not fit the organisation’s capacity, nothing is imported and 402 is returned with the exact shortfall. Send partial=true to import as many as fit instead. Duplicates already in the pipeline are skipped and reported, not treated as errors.

Parameters

Parameter Type Description
pipelineId
in path, required
integer

Body (JSON)

Field Type Description
cvr
required
array<integer> max 10000 items
stage integer Stage id to land in. Defaults to the first stage.
partial boolean When true, import as many as capacity allows instead of refusing the batch. default false

Example

Terminal window
curl -X POST "https://ownr.dk/api/v2/pipelines/189/leads" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"cvr":[36732261,24256790,31183146],"stage":0,"partial":false}'
{
"status": "success",
"data": {
"added": 409,
"skipped_duplicates": 3,
"invalid_cvr": [
12345678
],
"partial": false,
"capacity": {
"included": 250,
"used": 53,
"limit": 250,
"available": 197,
"segment_leads": 202,
"tier": {
"limit": 250,
"price_month": 0,
"price_year": 0,
"free": true
}
}
}
}

Fields in the response

Field Type Description
data object
data.added integer e.g. 409
data.skipped_duplicates integer e.g. 3
data.invalid_cvr array<integer>
data.partial boolean e.g. false
data.capacity object Lead capacity is organisation-wide: every pipeline draws on the same pool. Leads that came from a segment are included with that segment and never counted here.
data.capacity.included integer Free base, always included. e.g. 250
data.capacity.used integer Leads counting against capacity, all pipelines. e.g. 53
data.capacity.limit integer Current ceiling (included, or the purchased tier) e.g. 250
data.capacity.available integer e.g. 197
data.capacity.segment_leads integer Included with their segment; not counted. e.g. 202
data.capacity.tier object
data.capacity.tier.limit integer e.g. 250
data.capacity.tier.price_month number e.g. 0
data.capacity.tier.price_year number e.g. 0
data.capacity.tier.free boolean e.g. true

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
402 Insufficient lead capacity
403 The access token does not have the scope this endpoint needs
404 Record not found
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Move a lead to another stage

PATCH /pipelines/{pipelineId}/leads/{leadId}

Scope: pipeline · Quota: does not count against the quota

Same effects as dragging the card in the web app: logs the move, notifies team members following the target stage, and — moving into Vundet with ajour_auto_add enabled — adds the lead to Ajour.

Parameters

Parameter Type Description
pipelineId
in path, required
integer
leadId
in path, required
integer

Body (JSON)

Field Type Description
stage
required
integer Target stage id. e.g. 1297

Example

Terminal window
curl -X PATCH "https://ownr.dk/api/v2/pipelines/189/leads/90311" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"stage":1297}'
{
"status": "success",
"data": {
"item": {
"id": 90311,
"cvr": 36732261,
"name": "SNT ApS",
"stage": 1231,
"source": "api",
"counts_against_capacity": true,
"created_at": "2026-08-04T09:20:41+02:00"
}
}
}

Fields in the response

Field Type Description
data object
data.item object
data.item.id integer e.g. 90311
data.item.cvr integer e.g. 36732261
data.item.name string e.g. SNT ApS
data.item.stage integer Stage id — matches Pipeline.stages[].id. e.g. 1231
data.item.source string api, csv, manual, segment · e.g. api
data.item.counts_against_capacity boolean false for leads that came from a segment. e.g. true
data.item.created_at string (date-time) e.g. 2026-08-04T09:20:41+02:00

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
404 Record not found
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded

Remove a lead from a pipeline

DELETE /pipelines/{pipelineId}/leads/{leadId}

Scope: pipeline · Quota: does not count against the quota

Removing a lead releases its capacity immediately.

Parameters

Parameter Type Description
pipelineId
in path, required
integer
leadId
in path, required
integer

Example

Terminal window
curl -X DELETE "https://ownr.dk/api/v2/pipelines/189/leads/90311" \
-H "Authorization: Bearer ACCESS_TOKEN"
{
"status": "success",
"data": {
"deleted": true,
"capacity": {
"included": 250,
"used": 53,
"limit": 250,
"available": 197,
"segment_leads": 202,
"tier": {
"limit": 250,
"price_month": 0,
"price_year": 0,
"free": true
}
}
}
}

Fields in the response

Field Type Description
data object
data.deleted boolean e.g. true
data.capacity object Lead capacity is organisation-wide: every pipeline draws on the same pool. Leads that came from a segment are included with that segment and never counted here.
data.capacity.included integer Free base, always included. e.g. 250
data.capacity.used integer Leads counting against capacity, all pipelines. e.g. 53
data.capacity.limit integer Current ceiling (included, or the purchased tier) e.g. 250
data.capacity.available integer e.g. 197
data.capacity.segment_leads integer Included with their segment; not counted. e.g. 202
data.capacity.tier object
data.capacity.tier.limit integer e.g. 250
data.capacity.tier.price_month number e.g. 0
data.capacity.tier.price_year number e.g. 0
data.capacity.tier.free boolean e.g. true

Errors

Status Meaning
400 Invalid ID supplied
401 Missing, invalid or expired access token
403 The access token does not have the scope this endpoint needs
404 Record not found
429 Call quota or hourly rate limit reached. Retry-After gives the seconds to wait; when the quota is used up, error.upgrade_url links to where the tier is upgraded