Skip to main content
POST
Mint a short-lived artifacts.mnemom vault bearer for the caller's active org, or for another org the caller is an accepted member of.

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Headers

X-Artifact-Producer
string

Optional cell-producer attestation: the name of the first-party producer service calling on its user's behalf. Sent together with X-Artifact-Producer-Key; sending only one of the two is refused with 403 producer_not_attested. A valid attestation adds a producer claim to the token; it never changes the org or role.

X-Artifact-Producer-Key
string

Optional cell-producer attestation: the producer's own key, checked against a server-held digest (the API stores digests only, never a producer key). Sent together with X-Artifact-Producer; an unknown producer or a key that does not match is refused with 403 producer_not_attested and nothing is signed.

Body

application/json
org_id
string

Org to mint for. Omit (or send no body) for the caller's active org. When present it must be one of the caller's ACCEPTED memberships, else 403 not_a_member; the signed org_role is that membership's role.

Minimum string length: 1

Response

Vault bearer.

token
string
required

Compact EdDSA JWS.

token_type
any
required
expires_in
integer
required

Seconds; always 300.

expires_at
integer
required

Unix seconds.

org_id
string
required
org_role
enum<string>
required
Available options:
owner,
admin,
member