Skip to content

Tasks

Epinium tasks and their items. Requires tasks:read.

Servers

https://api.epinium.com

tasks

The authenticated account's tasks. Requires tasks:read.


List the authenticated account's tasks

GET
/v1/tasks

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
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 task title. 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"
status
Type
string
Valid values
"pending""resolved""discarded"
priority
Type
string
Valid values
"high""medium""low"

Responses

200

application/json
JSON
{
  
"object": "string",
  
"data": [
  
  
{
  
  
  
"id": "string",
  
  
  
"title": "string",
  
  
  
"description": "string",
  
  
  
"status": "string",
  
  
  
"priority": "string",
  
  
  
"origin": {
  
  
  
  
"type": "string",
  
  
  
  
"sourceName": "string"
  
  
  
},
  
  
  
"entityCounts": {
  
  
  
  
"additionalProperties": 0
  
  
  
},
  
  
  
"itemCount": 0,
  
  
  
"pendingItemCount": 0,
  
  
  
"expiresAt": "string",
  
  
  
"resolution": {
  
  
  
  
"action": "string",
  
  
  
  
"resolvedAt": "string"
  
  
  
},
  
  
  
"createdAt": "string",
  
  
  
"updatedAt": "string"
  
  
}
  
],
  
"has_more": true,
  
"total_count": 0
}

Playground

Authorization
Variables
Key
Value

Samples


GET /v1/tasks/{id}

GET
/v1/tasks/{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

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",
  
"title": "string",
  
"description": "string",
  
"status": "string",
  
"priority": "string",
  
"origin": {
  
  
"type": "string",
  
  
"sourceName": "string"
  
},
  
"entityCounts": {
  
  
"additionalProperties": 0
  
},
  
"itemCount": 0,
  
"pendingItemCount": 0,
  
"expiresAt": "string",
  
"resolution": {
  
  
"action": "string",
  
  
"resolvedAt": "string"
  
},
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground

Authorization
Variables
Key
Value

Samples


task-items

Individual suggestions within a task. Requires tasks:read.


List the authenticated account's task items

GET
/v1/task-items

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 item display name, display id and problem label. 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"
task

24-character hexadecimal Mongo ObjectId.

Type
string
Pattern
"^[a-f0-9]{24}$"
entityModel
Type
string
Valid values
"products""campaigns""adgroups""targets""search_terms""product_ads"
status
Type
string
Valid values
"pending""approved""rejected"

Responses

200

application/json
JSON
{
  
"object": "string",
  
"data": [
  
  
{
  
  
  
"id": "string",
  
  
  
"task": "string",
  
  
  
"entityId": "string",
  
  
  
"entityModel": "string",
  
  
  
"displayName": "string",
  
  
  
"displayId": "string",
  
  
  
"problemLabel": "string",
  
  
  
"problemSeverity": "string",
  
  
  
"fieldName": "string",
  
  
  
"fieldPath": "string",
  
  
  
"valueType": "string",
  
  
  
"currentValue": null,
  
  
  
"suggestedValue": null,
  
  
  
"appliedValue": null,
  
  
  
"status": "string",
  
  
  
"appliedAt": "string",
  
  
  
"resolvedAt": "string",
  
  
  
"createdAt": "string",
  
  
  
"updatedAt": "string"
  
  
}
  
],
  
"has_more": true,
  
"total_count": 0
}

Playground

Authorization
Variables
Key
Value

Samples


GET /v1/task-items/{id}

GET
/v1/task-items/{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",
  
"task": "string",
  
"entityId": "string",
  
"entityModel": "string",
  
"displayName": "string",
  
"displayId": "string",
  
"problemLabel": "string",
  
"problemSeverity": "string",
  
"fieldName": "string",
  
"fieldPath": "string",
  
"valueType": "string",
  
"currentValue": null,
  
"suggestedValue": null,
  
"appliedValue": null,
  
"status": "string",
  
"appliedAt": "string",
  
"resolvedAt": "string",
  
"createdAt": "string",
  
"updatedAt": "string"
}

Playground

Authorization
Variables
Key
Value

Samples


Powered by VitePress OpenAPI

Epinium Documentation