POST
Delegate a workload

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
name
string
required
Maximum string length: 100
kind
enum<string>
required
Available options:
ci,
admission,
agent,
service
scopes
string[]
required
Minimum array length: 1
ttl_seconds
integer
Required range: 60 <= x <= 43200

Response

The workload, and its credential (shown once).