Skip to content

Mint a readiness capability link for a participant

POST
/readiness-links
curl --request POST \
--url https://quikstik-core.fly.dev/readiness-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \
--data '{ "participant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ttl_ms": 1 }'

The no-account customer path: the returned token is shown exactly once and IS the customer’s authority for this participant’s readiness flow. Only the token’s SHA-256 digest persists; expiry revokes.

x-tenant-id
required
string format: uuid

Tenant identifier (UUID).

Authn/authz semantics are intentionally TBD for this contract slice; this header exists to keep the contract explicitly multi-tenant from day 0.

Idempotency-Key
required
string
>= 1 characters

Idempotency key for the command envelope. A retry with the same key is a no-op.

Media typeapplication/json
object
participant_id
required
string format: uuid
ttl_ms
required

Lifetime in milliseconds from mint; expiry revokes the link.

integer format: int64
>= 1

Example generated

{
"participant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"ttl_ms": 1
}

Link minted; the token appears only in this response

Media typeapplication/json
object
link_token
required

Shown exactly once; only its digest persists.

string
expires_at_ms
required
integer format: int64

Example generated

{
"link_token": "example",
"expires_at_ms": 1
}

Malformed body

Media typeapplication/json
object
reason
required
string

Example generated

{
"reason": "example"
}

Missing or invalid session bearer token

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}

The session’s effect authority does not cover this operation

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}

Expired, consumed, unknown, or unresolvable — indistinguishable by design

Media typeapplication/json
object
reason
required
string

Example generated

{
"reason": "example"
}

No durable backend is wired for this operation (fail-closed)

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}