TheWavlyDocs
DocsAPI reference

Approvals

When a check answers ask, the user gets an approval link. These endpoints read their answer. Prefer the approval.approved and approval.declined webhooks in production.

Whether the user approved or declined

GET/v1/approvals/{id}Secret key · scope approvals:read

Parameters

NameInDescription
id requiredpathApproval idpattern ^apv_[\w-]{6,40}$

Returns

FieldTypeDescription
object"approval"
idstring
checkstring
status"pending" | "approved" | "declined" | "expired"
reasonsarray of string

Errors

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

curl https://thewavly.com/v1/approvals/chk_P1iENx01EDRJ \
  -H "Authorization: Bearer $WAVLY_API_KEY"
Response
{
  "id": "chk_P1iENx01EDRJ",
  "check": "chk_P1iENx01EDRJ",
  "status": "paid"
}