The project's automations
GET
/api/v1/automations
const url = 'http://localhost:3000/api/v1/automations';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 http://localhost:3000/api/v1/automations \ --header 'Authorization: Bearer <token>'What is sent, by email or a signed webhook, when a brand is released, an asset’s license is about to end, governance changes, the use check keeps refusing an asset, Fixes finds something new, or a proposal waits in review: those the caller may manage. An editor of a brand manages its release automations; every other trigger, and any brand’s releases, take admin on the project.
Scope: write.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Automations
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
name
required
string
trigger
required
string
brand
required
Brand.released: the brand it is for, by slug; null: any
string | null
actions
required
Governance: the actions it fires on; empty: every one
Array<string>
action
required
string
format
required
string
emails
required
Array<string>
host
required
Webhook: the URL’s host; the URL itself is never shown
string | null
enabled
required
boolean
createdBy
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
secret
Webhook: what each POST is signed with (Artbucket-Signature). Given once, when made
string
Example
{ "data": [ { "trigger": "brand.released", "kind": "stale", "action": "email", "format": "json", "last": { "status": "pending" } } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}