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 /pipelinesScope: 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
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. |
array<object> | |
data. |
integer | e.g. 189 |
data. |
string | e.g. Egne kunder Q4 |
data. |
string | company, person, property · e.g. company |
data. |
integer | e.g. 0 |
data. |
array<object> | |
data. |
integer | Use this to target the stage in POST/GET leads. e.g. 1231 |
data. |
string | e.g. Nye leads |
data. |
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. |
boolean | e.g. true |
data. |
integer | e.g. 0 |
data. |
string (date-time) | e.g. 2026-08-04T09:14:22+02:00 |
data. |
string (date-time) | The latest activity in the pipeline: a lead added, moved to another stage or removed, or the pipeline itself changed. |
data. |
string | e.g. https://ownr.dk/pipelines/view/189 |
data. |
integer | The same as count. e.g. 4 |
data. |
integer | The total number of records in the result set. e.g. 4 |
data. |
integer | The current page displayed. e.g. 1 |
data. |
integer | Total number of pages. e.g. 1 |
data. |
string | |
data. |
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 /pipelinesScope: 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 |
|---|---|---|
namerequired |
string | 0–48 characters · e.g. Egne kunder Q4 |
entity_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
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. |
object | |
data. |
integer | e.g. 189 |
data. |
string | e.g. Egne kunder Q4 |
data. |
string | company, person, property · e.g. company |
data. |
integer | e.g. 0 |
data. |
array<object> | |
data. |
integer | Use this to target the stage in POST/GET leads. e.g. 1231 |
data. |
string | e.g. Nye leads |
data. |
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. |
boolean | e.g. true |
data. |
integer | e.g. 0 |
data. |
string (date-time) | e.g. 2026-08-04T09:14:22+02:00 |
data. |
string (date-time) | The latest activity in the pipeline: a lead added, moved to another stage or removed, or the pipeline itself changed. |
data. |
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/capacityScope: 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
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. |
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. |
integer | Free base, always included. e.g. 250 |
data. |
integer | Leads counting against capacity, all pipelines. e.g. 53 |
data. |
integer | Current ceiling (included, or the purchased tier) e.g. 250 |
data. |
integer | e.g. 197 |
data. |
integer | Included with their segment; not counted. e.g. 202 |
data. |
object | |
data. |
integer | e.g. 250 |
data. |
number | e.g. 0 |
data. |
number | e.g. 0 |
data. |
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 |
|---|---|---|
pipelinein path, required |
integer |
Example
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. |
object | |
data. |
integer | e.g. 189 |
data. |
string | e.g. Egne kunder Q4 |
data. |
string | company, person, property · e.g. company |
data. |
integer | e.g. 0 |
data. |
array<object> | |
data. |
integer | Use this to target the stage in POST/GET leads. e.g. 1231 |
data. |
string | e.g. Nye leads |
data. |
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. |
boolean | e.g. true |
data. |
integer | e.g. 0 |
data. |
string (date-time) | e.g. 2026-08-04T09:14:22+02:00 |
data. |
string (date-time) | The latest activity in the pipeline: a lead added, moved to another stage or removed, or the pipeline itself changed. |
data. |
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 |
|---|---|---|
pipelinein path, required |
integer |
Example
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. |
boolean | e.g. true |
data. |
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. |
integer | Free base, always included. e.g. 250 |
data. |
integer | Leads counting against capacity, all pipelines. e.g. 53 |
data. |
integer | Current ceiling (included, or the purchased tier) e.g. 250 |
data. |
integer | e.g. 197 |
data. |
integer | Included with their segment; not counted. e.g. 202 |
data. |
object | |
data. |
integer | e.g. 250 |
data. |
number | e.g. 0 |
data. |
number | e.g. 0 |
data. |
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 |
|---|---|---|
pipelinein path, required |
integer | |
stagein path, required |
integer |
Body (JSON)
| Field | Type | Description |
|---|---|---|
namerequired |
string | 0–100 characters · e.g. Kontaktet igen |
Example
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. |
object | |
data. |
integer | e.g. 1231 |
data. |
string | e.g. Kontaktet igen |
data. |
string | |
data. |
boolean | e.g. false |
data. |
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}/leadsScope: pipeline · Quota: does not count against the quota
Parameters
| Parameter | Type | Description |
|---|---|---|
pipelinein path, required |
integer | |
stage |
integer | Filter by stage id. |
page |
integer | Page number. |
Example
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. |
array<object> | Ordered by the time the lead was added. |
data. |
integer | e.g. 90311 |
data. |
integer | e.g. 36732261 |
data. |
string | e.g. SNT ApS |
data. |
integer | Stage id — matches Pipeline.stages[].id. e.g. 1231 |
data. |
string | api, csv, manual, segment · e.g. api |
data. |
boolean | false for leads that came from a segment. e.g. true |
data. |
string (date-time) | e.g. 2026-08-04T09:20:41+02:00 |
data. |
integer | The same as count. e.g. 412 |
data. |
integer | The total number of records in the result set. e.g. 412 |
data. |
integer | The current page displayed. e.g. 1 |
data. |
integer | Total number of pages. e.g. 21 |
data. |
string | e.g. https://ownr.dk/api/v2/pipelines/7/leads?page=2 |
data. |
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}/leadsScope: 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 |
|---|---|---|
pipelinein path, required |
integer |
Body (JSON)
| Field | Type | Description |
|---|---|---|
cvrrequired |
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
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. |
integer | e.g. 409 |
data. |
integer | e.g. 3 |
data. |
array<integer> | |
data. |
boolean | e.g. false |
data. |
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. |
integer | Free base, always included. e.g. 250 |
data. |
integer | Leads counting against capacity, all pipelines. e.g. 53 |
data. |
integer | Current ceiling (included, or the purchased tier) e.g. 250 |
data. |
integer | e.g. 197 |
data. |
integer | Included with their segment; not counted. e.g. 202 |
data. |
object | |
data. |
integer | e.g. 250 |
data. |
number | e.g. 0 |
data. |
number | e.g. 0 |
data. |
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 |
|---|---|---|
pipelinein path, required |
integer | |
leadin path, required |
integer |
Body (JSON)
| Field | Type | Description |
|---|---|---|
stagerequired |
integer | Target stage id. e.g. 1297 |
Example
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. |
object | |
data. |
integer | e.g. 90311 |
data. |
integer | e.g. 36732261 |
data. |
string | e.g. SNT ApS |
data. |
integer | Stage id — matches Pipeline.stages[].id. e.g. 1231 |
data. |
string | api, csv, manual, segment · e.g. api |
data. |
boolean | false for leads that came from a segment. e.g. true |
data. |
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 |
|---|---|---|
pipelinein path, required |
integer | |
leadin path, required |
integer |
Example
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. |
boolean | e.g. true |
data. |
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. |
integer | Free base, always included. e.g. 250 |
data. |
integer | Leads counting against capacity, all pipelines. e.g. 53 |
data. |
integer | Current ceiling (included, or the purchased tier) e.g. 250 |
data. |
integer | e.g. 197 |
data. |
integer | Included with their segment; not counted. e.g. 202 |
data. |
object | |
data. |
integer | e.g. 250 |
data. |
number | e.g. 0 |
data. |
number | e.g. 0 |
data. |
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 |