Skip to content

Accounts and connections

Start here. GET /v1/me reports which scopes and accounts your key reaches, and is the cheapest way to check that a key works.

Servers

https://api.epinium.com

me

Describes the authenticated API key: its scopes and accessible accounts. No scope required — any valid key can call it.

Operations


Describe the authenticated credential (API key or OAuth grant): scopes and accessible accounts

GET
/v1/me

Authorizations

bearer

Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....

Type
HTTP (bearer)

Responses

200

application/json
JSON
{
  
"object": "string",
  
"id": "string",
  
"subject_type": "string",
  
"scopes": [
  
  
"string"
  
],
  
"account_required": true,
  
"accounts": [
  
  
"string"
  
]
}

Playground

Authorization

Samples


accounts

Accounts this API key can operate on, selectable via the Epinium-Account header. Requires connections:read.


List the accounts this API key can operate on

GET
/v1/accounts

Authorizations

bearer

Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....

Type
HTTP (bearer)

Responses

200

application/json
JSON
{
  
"object": "string",
  
"data": [
  
  
{
  
  
  
"object": "string",
  
  
  
"id": "string",
  
  
  
"name": "string",
  
  
  
"connections": [
  
  
  
  
"string"
  
  
  
]
  
  
}
  
],
  
"has_more": true,
  
"total_count": 0
}

Playground

Authorization

Samples


connections

The authenticated account's data source connections. Requires connections:read.


List the authenticated account's connections

GET
/v1/connections

Authorizations

bearer

Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....

Type
HTTP (bearer)

Parameters

Query Parameters

limit

Page size. The default is enough to explore; raise it only when you need to walk a whole collection.

Type
integer
Example20
Default
20
Minimum
1
Maximum
100
starting_after

Cursor for the next page: the id of the last record you received. Returns the records after it.

Type
string
ending_before

Cursor for the previous page: the id of the first record you received. Returns the records before it.

Type
string
expand

Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels.

fields

Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. A key that matches no entity is ignored silently and the full object comes back.

Type
object
search

Case-insensitive substring match over the connection name. Use it to find a record by name when you do not have its id, instead of paging through the whole list. Regex metacharacters are matched literally.

Type
string
Min Length
1
Max Length
200
include_total

Set to true to also receive total_count: how many records match every filter of this request, ignoring starting_after/ending_before/offset - the size of the whole result set, not of what is left. has_more is always returned regardless. It costs an extra count query, so ask for it once, on the first page, to decide whether the set is worth walking. On metrics resources with granularity=daily it counts entity-days, not entities. total_count comes back null when the count could not finish in time; the list is still returned, so treat it as unknown, never as zero.

Type
string
Valid values
"true""false"
type
Type
string
Valid values
"seller""vendor""adv-profile"

Responses

200

application/json
JSON
{
  
"object": "string",
  
"data": [
  
  
{
  
  
  
"id": "string",
  
  
  
"type": "string",
  
  
  
"name": "string",
  
  
  
"active": true,
  
  
  
"countries": [
  
  
  
  
[
  
  
  
  
  
"string"
  
  
  
  
]
  
  
  
],
  
  
  
"createdAt": "string"
  
  
}
  
],
  
"has_more": true,
  
"total_count": 0
}

Playground

Authorization
Variables
Key
Value

Samples


GET /v1/connections/{id}

GET
/v1/connections/{id}

Authorizations

bearer

Client API key (POST /api-keys). Send as Authorization: Bearer epk_live_....

Type
HTTP (bearer)

Parameters

Path Parameters

id*

24-character hexadecimal Mongo ObjectId.

Type
string
Required
Pattern
"^[a-f0-9]{24}$"

Query Parameters

expand

Inline related records instead of returning just their ids. Repeat the param for several (expand[]=connection&expand[]=country) and nest with dot notation (connection.country), up to 4 levels.

fields

Trim the response to the fields you need, comma-separated and keyed by ENTITY TYPE rather than by resource name: fields[campaign]=id,name. A key that matches no entity is ignored silently and the full object comes back.

Type
object

Responses

200

application/json
JSON
{
  
"id": "string",
  
"type": "string",
  
"name": "string",
  
"active": true,
  
"countries": [
  
  
[
  
  
  
"string"
  
  
]
  
],
  
"createdAt": "string"
}

Playground

Authorization
Variables
Key
Value

Samples


Powered by VitePress OpenAPI

Epinium Documentation