Skip to main content
POST
/
public
/
v1
/
attribution
/
sources
/
{sourceId}
/
campaigns
/
{campaignId}
/
accounts
Accounts for a campaign
curl --request POST \
  --url http://app.stairoids.com/api/public/v1/attribution/sources/{sourceId}/campaigns/{campaignId}/accounts \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "startDate": 1717200000000,
  "endDate": 0,
  "icpIds": [
    123
  ],
  "accountListIds": [
    123
  ],
  "limit": 20,
  "offset": 0
}
'
{
  "campaignId": "<string>",
  "accounts": [
    {
      "companyName": "Acme Corp",
      "companyId": "4521",
      "visits": 7,
      "funnelStage": "Hot",
      "score": 812
    }
  ],
  "total": 137,
  "limit": 20,
  "offset": 0,
  "hasMore": true
}

Authorizations

X-Api-Key
string
header
required

Your organization's public API key. Manage it at GET /api/user/public-api-key.

Path Parameters

sourceId
string
required
campaignId
string
required

Body

application/json

Filter + paging for the accounts that engaged with a campaign.

startDate
integer<int64>

Window start, epoch millis. Omit both startDate and endDate for the default recent window.

Example:

1717200000000

endDate
integer<int64>

Window end, epoch millis.

Example:

0

icpIds
integer<int64>[]

Restrict to these ICP ids. Null or empty = all ICPs.

Restrict to these ICP ids. Null or empty = all ICPs.

accountListIds
integer<int64>[]

Restrict to these account-list ids. Null or empty = all lists.

Restrict to these account-list ids. Null or empty = all lists.

limit
integer<int32>
default:20

Max rows to return.

Example:

20

offset
integer<int32>
default:0

Row offset for paging.

Example:

0

Response

OK

Accounts that engaged with a campaign, paged.

campaignId
string

Campaign id this page belongs to.

accounts
object[]

The accounts on this page.

total
integer<int32>

Total matching accounts.

Example:

137

limit
integer<int32>

Max rows requested.

Example:

20

offset
integer<int32>

Row offset of this page.

Example:

0

hasMore
boolean

Whether more rows exist beyond this page.

Example:

true