TheWavlyDocs
DocsAPI reference

Verification

Public endpoints anyone can use to verify a TheWavly token or fetch an organisation's signing keys, with no account.

An organisation's public signing keys

GET/v1/orgs/{org}/jwksPublic · no key needed

Parameters

NameInDescription
org requiredpathOrganisation idpattern ^org_[\w-]{8,40}$

Returns

FieldTypeDescription
keysarray of object

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl https://thewavly.com/v1/orgs/org_3kTq9zPw2/jwks
Response
{
  "keys": [
    {}
  ]
}

Check any TheWavly token's signature

POST/v1/verifyPublic · no key needed

Request body

FieldTypeDescription
token requiredstring

Returns

FieldTypeDescription
validboolean
payloadobject
reasonstring

Errors

Errors return {"error": {"code", "message", "field", "request_id"}} with a 4xx or 5xx status. See Errors.

curl -X POST https://thewavly.com/v1/verify \
  -H "Content-Type: application/json" \
  -d '{
  "token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
}'
Response
{
  "reason": "not_as_ordered"
}