DylogDocs

Accounts endpoints

Token minting, staff listing, hand-off and invitation routes outside /api/auth.

GET
/api/token

Issues a 15-minute RS256 JWT (audience dylog-services) for the caller in the organization named by org. Accepts the session cookie or an organization API key in x-api-key. Unlike /api/auth/token it never depends on the session's active organization. Claims: sub, email, name, org_id, org_slug, org_role, org_meta.client-code, is_staff.

Authorization

__Secure-dylog.session_token<token>

Browser session cookie (set by sign-in)

In: cookie

Query Parameters

org*string

Organization slug

Response Body

application/json

curl -X GET "https://example.com/api/token?org=string"
{  "token": "string"}
GET
/invite/{id}

Target of the invitation email. Stores the invitation in a short-lived cookie and routes new users to sign-up (sign-up is invitation-only) or existing users to accept it.

Path Parameters

id*string

Response Body

curl -X GET "https://example.com/invite/string"
Empty
GET
/sign-in

Browser entry point for other Dylog services. Redirects to the sign-in UI and, after success, back to next (must be an exact origin from the RETURN_TO_ORIGINS allowlist). /account?next= and /account/security?next= work the same way.

Query Parameters

next?string

Absolute URL to return to

Formaturi

Response Body

curl -X GET "https://example.com/sign-in"
Empty