Source schedules' transitions, each object's change with it: the latest first
GET
/v1/buyer/automation/transitions
const url = 'https://example.com/v1/buyer/automation/transitions?sort=at';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/buyer/automation/transitions?sort=at' \ --header 'Authorization: Bearer <token>'Who: a workspace’s member, staff under its support access, or its key. API keys with the buyer:read or buyer:write scope.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page_size
integer
Rows a page, up to the list’s maximum; the service’s default when left out
page_token
string
The previous page’s meta.next_page_token
sort
string
Comma-separated fields, each with - for descending
schedule_id
string
status
string
from
string
to
string
Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
required
Array<object>
object
at
required
string format: date-time
changes
required
Array<object>
object
change_id
required
string
error_code
required
string
error_message
required
string
object
required
object
connection
required
object
id
required
integer format: int64
name
string
key
required
object
country
required
string
source_campaign
required
string
values
required
Array<string>
level
required
string | null
status
required
string | null
created_at
required
string format: date-time
dry_run
required
boolean
id
required
string
kind
required
string | null
requested_by
required
schedule
required
object
id
required
integer format: int64
name
string
sequence
required
integer format: int64
status
required
string | null
trigger
required
string | null
updated_at
required
string format: date-time
workspace_id
required
integer format: int64
meta
required
object
next_page_token
required
string | null
total
required
integer | null format: int64
total_approximate
required
boolean
Example
{ "data": [ { "changes": [ { "object": { "level": "campaign" }, "status": "pending" } ], "kind": "pause", "requested_by": { "kind": "user" }, "status": "pending", "trigger": "boundary" } ]}default
Section titled “default”An error, as go-commons apperr maps it
Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
Example generated
{ "error": { "code": "example", "fields": { "additionalProperty": "example" }, "message": "example" }}