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
| Name | In | Description |
|---|---|---|
org required | path | Organisation idpattern ^org_[\w-]{8,40}$ |
Returns
| Field | Type | Description |
|---|---|---|
keys | array 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/jwksimport { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("GET", "/v1/orgs/org_3kTq9zPw2/jwks");from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("GET", "/v1/orgs/org_3kTq9zPw2/jwks")Response
{
"keys": [
{}
]
}Check any TheWavly token's signature
POST/v1/verifyPublic · no key needed
Request body
| Field | Type | Description |
|---|---|---|
token required | string |
Returns
| Field | Type | Description |
|---|---|---|
valid | boolean | |
payload | object | |
reason | string |
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…"
}'import { Wavly } from "@thewavly/sdk";
const wavly = new Wavly(process.env.WAVLY_API_KEY);
const result = await wavly.request("POST", "/v1/verify", {
"token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
});from thewavly import Wavly
wavly = Wavly(os.environ["WAVLY_API_KEY"])
result = wavly.request("POST", "/v1/verify", {
"token": "eyJhbGciOiJFZERTQSIsImtpZCI6Ik…"
})Response
{
"reason": "not_as_ordered"
}