ksuid

Generate KSUIDs.


Endpoints

Generate
GET /ksuid

Generate a KSUID.

Query parameters

prefix:
optional string [a-zA-Z0-9-_]{0,64}

Prefix to add at the beginning of the KSUID.

Examples

Without prefix
/ksuid
2bn5lnStneZDLi2NB8GOwqyDpUz
With prefix
/ksuid?prefix=trx-
trx-2bn5lnStneZDLi2NB8GOwqyDpUz

Try

GET /ksuid
Parse
GET /ksuid/parse

Parse a KSUID. This endpoint will parse a KSUID and return detailed information about it. If a prefix is provided, it will also return the KSUID without the prefix.

Query parameters

id:
required string

The KSUID to parse.

prefix:
optional string [a-zA-Z0-9-_]{0,64}

Prefix at the beginning of the KSUID.

Examples

Without prefix
/ksuid/parse?id=2bn5lnStneZDLi2NB8GOwqyDpUz
id: 2bn5lnStneZDLi2NB8GOwqyDpUz
payload: ZtDb2KLoOLRym2XBHQ/vpQ==
timestamp: 306838155
time: 2024-02-02 01:42:35 +0000 UTC
With prefix
/ksuid/parse?id=trx-2bn5lnStneZDLi2NB8GOwqyDpUz&prefix=trx-
id: trx-2bn5lnStneZDLi2NB8GOwqyDpUz
payload: ZtDb2KLoOLRym2XBHQ/vpQ==
timestamp: 306838155
time: 2024-02-02 01:42:35 +0000 UTC
prefix: trx-
without_prefix: 2bn5lnStneZDLi2NB8GOwqyDpUz

Try

GET /ksuid/parse