List campaigns
curl --request POST \
--url https://api.datalane.com/v1/campaigns/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {},
"cursor": "<string>",
"limit": 25
}
'import requests
url = "https://api.datalane.com/v1/campaigns/list"
payload = {
"filters": {},
"cursor": "<string>",
"limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filters: {}, cursor: '<string>', limit: 25})
};
fetch('https://api.datalane.com/v1/campaigns/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"campaigns": [
{
"id": "camp_123456789ABCDEFGHJKLM",
"status": "draft",
"createdVia": "api",
"name": "July target accounts",
"excludeEnrichedWithinDays": 30,
"createdAt": "2026-07-21T14:00:00.000Z"
}
],
"nextCursor": null
},
"error": null
}{
"data": null,
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {
"issues": [
"<string>"
]
}
}
}{
"data": null,
"error": {
"code": "invalid_api_key",
"message": "<string>"
}
}{
"data": null,
"error": {
"code": "internal_error",
"message": "Internal error."
}
}Campaigns
List campaigns
POST
/
v1
/
campaigns
/
list
List campaigns
curl --request POST \
--url https://api.datalane.com/v1/campaigns/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filters": {},
"cursor": "<string>",
"limit": 25
}
'import requests
url = "https://api.datalane.com/v1/campaigns/list"
payload = {
"filters": {},
"cursor": "<string>",
"limit": 25
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filters: {}, cursor: '<string>', limit: 25})
};
fetch('https://api.datalane.com/v1/campaigns/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"campaigns": [
{
"id": "camp_123456789ABCDEFGHJKLM",
"status": "draft",
"createdVia": "api",
"name": "July target accounts",
"excludeEnrichedWithinDays": 30,
"createdAt": "2026-07-21T14:00:00.000Z"
}
],
"nextCursor": null
},
"error": null
}{
"data": null,
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {
"issues": [
"<string>"
]
}
}
}{
"data": null,
"error": {
"code": "invalid_api_key",
"message": "<string>"
}
}{
"data": null,
"error": {
"code": "internal_error",
"message": "Internal error."
}
}Results are newest first. Omit
limit to request 25 records or set it up to 100. Filter by status or createdVia to narrow the page.
Pass nextCursor unchanged to retrieve the next page. See Pagination for the traversal pattern.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data