A token for a feature's background job, done as you
POST
/api/v1/job-tokens
const url = 'http://localhost:3000/api/v1/job-tokens';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","minutes":240}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/job-tokens \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "minutes": 240 }'For a feature that carries on after you leave the page (a brand import’s Apply): made from your session only, for the feature Artbucket-Feature names, on in this project. It acts with exactly your access here, in this project only, until minutes pass, the job revokes it, or the feature is turned off. History names it after you. Connections doesn’t list it.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
What the job is, as history names it after yours: “brand import”
string
minutes
How long it works, at most; the job revokes it when done
integer
Responses
Section titled “Responses”The token, shown this once
Media typeapplication/json
object
data
required
object
id
required
string format: uuid
token
required
Shown once. Send as Authorization: Bearer <token>
string
expiresAt
required
string format: date-time
Examplegenerated
{ "data": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "token": "example", "expiresAt": "2026-04-15T12:00:00Z" }}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" }}