Mandate · API reference
Approver network
People outside your account who approve with their own passkey.
Related guide: Approver network
The approver link object
Attributes
idstringRequired- Unique identifier for the object.
objectenumRequired- The type of object. One of
approver_link. statusstring- The object's current status.
approver_display_nameany | null- The approver's display name, once they accept.
grantobject- What the integrator will ask the approver to approve.
Show child attributes
action_typesarray of stringsRequired- The action types allowed.
max_amountintegerRequired- The largest amount allowed per action.
productsarray of strings- The products enabled for the account.
invited_atstring- When the invite was sent.
accepted_atany | null- When the approver accepted.
revoked_atany | null- When it was revoked; null if it isn't.
invite_urlstring- The invite page, if you deliver the invite yourself.
channelsarray of enums | any | null- The channels the invite may use, fixed when it was created; null under
delivery: selfand on invites made before these fields. follow_up_textobject | any | null- The follow-up text in force on the invite; null under
delivery: selfand on older invites.Show child attributes
enabledboolean- Whether a follow-up text goes after a notification.
whenenumnot_opened: the request has not been opened through any link or the notification.not_finished: the capture is not complete, or the cart is not approved or declined; opening does not stop it. One ofnot_opened,not_finished.after_minutesinteger- The wait in minutes, counted from the notification.
deliveryobject | any | null- The first message that went, or the first one's refusal (
{ channel: "self", delivered: false, reason: "self_delivery" }underdelivery: self); null on older invites.Show child attributes
channelenum- The channel that sent the link (or was tried first);
selfwhen you deliver it. A routed approval and an approver invite reporttextandapp_notification(the person's Provenance app);smsis not sent any more. One oftext,email,self,app_notification,webpush,sms. deliveredboolean- Whether the link was sent.
reasonenum- Why it wasn't sent: no sender is configured for the channel, the approver's phone isn't verified, the approver's quiet hours apply, the send failed, the account is on Free (no texts to approvers) or its trial ended (the request still reaches the approver portal), or you deliver the link yourself. On a text also: the number stopped texts from you (
opted_out), or your own number is not approved yet (sender_not_ready), or no consent to text is on record for the phone (no_text_consent); the email goes in its place when the approver has one. On the live demos' own accounts only: the contact is no open allowed contact (contact_not_allowed), or demo texts are paused or at the day's ceiling (demo_unavailable). One ofchannel_not_configured,phone_not_verified,quiet_hours,send_failed,plan_send_limit,self_delivery,channel_excluded,opted_out,sender_not_ready,no_text_consent,contact_not_allowed,demo_unavailable. senderenum- On an email,
customwhen it went from your verified address, elsedefault. On a text,custom: it left your own approved number (defaultonly on a deployment with the own-number rule off). One ofcustom,default. upgrade_urlstring- With
plan_send_limit, where to upgrade. testenum- In the sandbox, a text the test provider recorded and never sent (test mode). Absent on live. One of
true.
deliveriesarray of objects- One entry per message of the invite's send, the follow-up text among them; empty under
delivery: self.Show child attributes
recipientstringRequired- The masked contact you gave (
•••• 0132,d•••@mail.example). An app notification shows the request's phone when it has one, else its email. Blank once the contacts are purged. channelenumRequired- The channel the message used. One of
app_notification,email,text. channel_reasonenumRequired- Why that channel:
default, the request's own plan;follow_up, the text after an app notification that was not opened (or not finished) within your wait. One ofdefault,follow_up. statusenumRequired- Whether a provider took the message. A follow-up text is
scheduledwhile it waits, thensent,not_sent(it was due and could not go) orcancelled(it was not needed). One ofsent,not_sent,scheduled,cancelled. sent_attimestamp- With
sent: when it went. reasonstring- With
not_sent: why (channel_not_configured,send_failed,plan_send_limit,opted_out,sender_not_ready,no_text_consent(no consent to text on record for the phone; a follow-up text is then never scheduled), orchannel_excludedwhenchannelsleft out every way to reach the contact). With a cancelled follow-up:opened(opened first),request_closed(finished, declined, cancelled, stopped, or Not now on the capture terms),expired(the request ended before the text was due),replaced(a newer send took its place) orpaused. whenenum- A follow-up text's trigger, from the request's
follow_up_text.when. One ofnot_opened,not_finished. scheduled_fortimestamp- While a follow-up waits: when it is due (the notification plus your wait, or the end of quiet hours on the person's side when held).
held_until_quiet_endboolean- A waiting follow-up held for the night:
scheduled_foris the end of quiet hours (8 am unless you widened them). quiet_hoursobject- With
held_until_quiet_end: the time zone quiet hours were read on, and where it came from, as on a held reminder.scheduled_foris the end of quiet hours in this zone.Show child attributes
time_zonestringRequired- An IANA time zone.
sourceenumRequiredaccount: yourdefault_time_zone.country: the number's country has one time zone.unknown: the hours that are daytime across the number's whole country. One ofperson,group,account,country,unknown.
testboolean- In the sandbox, a text recorded by the test provider and never sent.
senderenum- With
sent, on a text or an email: who it was from.customis your own approved number or sending domain;defaultis Provenance's. Absent on an app notification and on a message that did not go. One ofcustom,default. consent_idstring- With
sent, on a text: the consent record (tcon_…) the text went under, whichGET /v1/account/text_consents/{id}reads. Absent under your statement for everyone, in test mode and with the consent line off.
contactobject- On the invite's create and on the list, when the invite went to a phone: the consent to text in force for it. Never the phone itself.
Show child attributes
text_consentobject- The consent to text in force for the request's phone, read when the request is read: a consent recorded later shows on the next read. Present only when the request has a phone.
Show child attributes
statusenumRequiredactive: a text from your company may go to this phone.none: no consent on record, so a text to it readsno_text_consent. One ofactive,none.sourceenum- With
active: how the person agreed.step, the opt-in step before a request;box, the consent box on your own form;keyword, a START reply;statementorimport, your statement for this phone;everyone, your statement for everyone you text. One ofstep,box,keyword,statement,import,everyone. granted_attimestamp- With
active: when the consent was recorded (foreveryone, when you made the statement). withdrawn_attimestamp- With
none: when the phone's latest consent was withdrawn (STOP, the person, you or the provider). Absent when there never was one.
deletedboolean- Always true for a deleted object.
integrator_namestring- The integrator that sent the invite.
consentobject- The consent text the approver accepts.
Show child attributes
draftbooleanRequired- Whether the consent text is a draft.
versionstringRequired- The version number.
markerstringRequired- The DRAFT marker shown with the consent text.
summarystringRequired- A one-line summary.
docstring- The full consent text.
consent_versionstring | null- The version of the consent text accepted.
messagestring- A human-readable message.
policyobject- The policy.
Show child attributes
max_amountintegerRequired- The largest amount allowed per action.
quiet_hoursobjectRequired- Hours, in UTC, when approvals wait.
Show child attributes
startintegerRequired- The start.
endintegerRequired- The hour quiet hours end.
availableboolean- Whether it's available.
prefill_emailstring- The email to fill in on the enrollment widget.
ask_appboolean- Present (true) when the invite asks the approver to approve with the Provenance app.
appobject- In the list: the approver's Provenance app (installed, whether notifications reach it, the best server-assigned phone tier). Nothing else about their phones.
Show child attributes
installedboolean- A phone is enrolled.
notificationsenum- Whether requests reach it as a notification. One of
on,off,unavailable. device_tierenum- The best phone tier. One of
sep,strongbox,tee,software.
The approver link object
{
"id": "lnk_01M7FJYW6FGTAHS7EH5D5SRHSF",
"object": "approver_link",
"status": "invited",
"approver_display_name": null,
"grant": {
"action_types": [
"payment"
],
"max_amount": 1000
},
"invited_at": "2026-11-15T12:29:50.671Z",
"accepted_at": null,
"revoked_at": null,
"channels": [
"app_notification",
"email",
"text"
],
"follow_up_text": {
"enabled": true,
"when": "not_opened",
"after_minutes": 5
},
"delivery": {
"channel": "email",
"delivered": false,
"reason": "channel_not_configured"
},
"deliveries": [
{
"recipient": "a•••@example.com",
"channel": "email",
"channel_reason": "default",
"status": "not_sent",
"reason": "channel_not_configured"
}
],
"app": {
"installed": false,
"notifications": "off",
"device_tier": null
}
}Events
Sent to your webhook endpoints when they subscribe:
mandate.approval_link.resentmandate.approval_link.resend_requestedmandate.approver_link.follow_up_sentmandate.approver_link.follow_up_not_sent
Invite an approver
POST/v1/mandate/approver_links
Invites a person you already know, by phone, email or both, to approve with their own passkey. It goes like any request: the app notification or the text, with the email, then a follow-up text (how). delivery: "self" sends nothing. A console session needs an admin with a recent step-up.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
contactobject | stringRequired- Who the invite goes to:
{ phone, email }(one or both, the same rule as every request), or one string holding an email or an E.164 phone. Required, withdelivery: selftoo.Show child attributes
phonestring- An E.164 phone number (
+14155550132). Spaces are removed; nothing else is guessed. emailstring- An email address, compared in lower case.
text_consentobject- With
phone: your statement that the person at this phone agreed to your texts, recorded with the request (the same record asPOST /v1/account/text_consents). Needs the consent modecompany(409text_consent_mode_mismatchotherwise) and the Pro plan or higher. Read on capture requests, checkout approvals and checkout assessments; refused on an approver invite.Show child attributes
methodenumRequired- How the person agreed. One of
sign_up_form,in_app,in_person,customer_list. obtained_attimestampRequired- When they agreed; not in the future.
evidence_urlstring- An
httpslink to how they agreed. Stored, never fetched.
deliveryenumsend: Provenance sends the request on the channelschannelsallows.self: link only. Nothing is sent and the response returns the link for you to pass on. Left out, a request with no contact is link only and any other takes your account's default (sendout of the box). With a default of link only, a request that gives a contact must saysend. One ofsend,self.channelsarray of enums- Which of Provenance's messages may go, in any order:
app_notification(the person's Provenance app, when the contact matches one person there),emailandtext. Left out, your account's default (all three out of the box). With all three, the person gets the app notification and the email when their contact matches, and the text and the email otherwise; a narrower list sends only what it names (the text goes in the notification's place only withtext, the email beside either only withemail). Each message is reported on its own indeliveries. A list that can reach none of the contacts is refused, as aresmsandapp_push. follow_up_textobject- The follow-up text after the invite's app notification. An invite has no expiry, so any wait from 1 to 1440 minutes is accepted. On a live deployment it is Pro and above (
402 plan_requiredon Free); in the sandbox it works on every plan. Refused besidedelivery: "self".Show child attributes
enabledbooleanfalsesends no follow-up text.whenenumnot_opened(the default) ornot_finished. One ofnot_opened,not_finished.after_minutesinteger- A whole number of minutes from 1 to 1440, counted from the notification. On a create it must be shorter than the request's
expires_in(400 parameter_invalidonfollow_up_text.after_minutes); a longer wait from your default is kept, and the text is skipped asexpiredif the request ends first.
grantobject- What the integrator will ask the approver to approve.
Show child attributes
action_typesarray of strings- The action types allowed.
max_amountnumber- The largest amount allowed per action.
productsarray of strings- The products enabled for the account.
ask_appboolean- The invite page says "{Company} asks you to approve with the Provenance app", with the store links once they're live.
Returns
The invite, with the delivery in force (channels, follow_up_text) and each message in deliveries. See the approver link object.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X PUT "$PROVENANCE_API/v1/account/text_consent" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "mode": "company", "everyone": null }' > /dev/null
curl -X POST "$PROVENANCE_API/v1/mandate/approver_links" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"contact": {
"phone": "+14155550148",
"email": "dana@example.com"
},
"grant": {
"max_amount": 1000,
"action_types": [
"payment"
]
}
}'const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/text_consent`, {
method: "PUT",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "mode": "company", "everyone": null }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"contact": {
"phone": "+14155550148",
"email": "dana@example.com"
},
"grant": {
"max_amount": 1000,
"action_types": [
"payment"
]
}
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.put(f"{api}/v1/account/text_consent", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"mode": "company",
"everyone": None
}).json()
data = httpx.post(f"{api}/v1/mandate/approver_links", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"contact": {
"phone": "+14155550148",
"email": "dana@example.com"
},
"grant": {
"max_amount": 1000,
"action_types": [
"payment"
]
}
}).json()Response 201
{
"id": "lnk_01M7FJYW6X5S4P0ZWYJNV8KH53",
"object": "approver_link",
"status": "invited",
"invite_url": "http://localhost:5173/approver/invite/XxSI1ZYMjWoppt6XWkrLnnfzXLX6tpFVlyzwsCb-a3o",
"channels": [
"app_notification",
"email",
"text"
],
"follow_up_text": {
"enabled": true,
"when": "not_opened",
"after_minutes": 5
},
"delivery": {
"channel": "text",
"delivered": true,
"test": true
},
"deliveries": [
{
"recipient": "•••• 0148",
"channel": "text",
"channel_reason": "default",
"status": "sent",
"sent_at": "2026-11-15T12:29:50.686Z",
"test": true
},
{
"recipient": "d•••@example.com",
"channel": "email",
"channel_reason": "default",
"status": "not_sent",
"reason": "channel_not_configured"
}
],
"contact": {
"text_consent": {
"status": "none"
}
}
}List approver links
GET/v1/mandate/approver_links
Lists the approvers you've invited, with each link's status and the approver's display name.
Parameters
No parameters.
Returns
Your approver links.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/mandate/approver_links" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/mandate/approver_links", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "list",
"data": [
{
"id": "lnk_01M7FJYW6FGTAHS7EH5D5SRHSF",
"object": "approver_link",
"status": "invited",
"approver_display_name": null,
"grant": {
"action_types": [
"payment"
],
"max_amount": 1000
},
"invited_at": "2026-11-15T12:29:50.671Z",
"accepted_at": null,
"revoked_at": null,
"channels": [
"app_notification",
"email",
"text"
],
"follow_up_text": {
"enabled": true,
"when": "not_opened",
"after_minutes": 5
},
"delivery": {
"channel": "email",
"delivered": false,
"reason": "channel_not_configured"
},
"deliveries": [
{
"recipient": "a•••@example.com",
"channel": "email",
"channel_reason": "default",
"status": "not_sent",
"reason": "channel_not_configured"
}
],
"app": {
"installed": false,
"notifications": "off",
"device_tier": null
}
}
],
"has_more": false,
"next_cursor": null
}Revoke an approver link
DELETE/v1/mandate/approver_links/{id}
Revokes a link. Pending approvals on it expire, and routing to it fails with link_revoked.
Parameters
idstringpathRequired- The object's ID.
Returns
The link, now revoked. See the approver link object.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/approver_links" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "contact": "riley@example.com", "grant": { "max_amount": 1000 } }' > step.json
export LINK_ID=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/mandate/approver_links/$LINK_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "contact": "riley@example.com", "grant": { "max_amount": 1000 } }),
})).json();
const linkId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links/${linkId}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/approver_links", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"contact": "riley@example.com",
"grant": {
"max_amount": 1000
}
}).json()
link_id = step1["id"]
data = httpx.delete(f"{api}/v1/mandate/approver_links/{link_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "lnk_01M6VQBCWWDVJTSY9YHZ6MNK86",
"object": "approver_link",
"deleted": true
}Route an approval to someone new
POST/v1/mandate/approver_links/route
Routes an approval to a person who has no approver link yet: one message, and they set up a passkey on Approve (first-time approvers). Or send approver_link_ids to route it to a group (more than one approver).
Parameters
contactstring- An email or E.164 phone number you already hold. Required unless you send
approver_link_ids. approver_link_idsarray of strings- Group sign-off: the accepted approver links to route to (with
intent_token). approvals_neededinteger- With
approver_link_ids: how many must approve (default: all). deny_ruleenum- With
approver_link_ids:any(default) ends it at the first deny;unreachableonce approval can't happen. One ofany,unreachable. grantobject- The scope, as on an invite (
action_types,max_amount,products). intent_tokenstring- The agent's intent token (preferred; the approval binds to it).
jtistring- A bare jti (unbound; never satisfies verify).
action_descriptionstringRequired- Must be the action the intent token was authorized for.
amountnumber- The amount.
approval_expires_ininteger- The approval's expiry in seconds.
link_expires_ininteger- How long each single-use link works.
remindersobject- For a routed approval: its automatic reminders (the
approvalschedule's shape). Left out, your account's schedule.Show child attributes
enabledbooleantruetracks this request on the schedule (Pro and above on a live deployment:402 plan_requiredonreminders.enabledbelow Pro, nothing created; every plan in the sandbox);falsesends it no automatic reminder (one by hand or by API is still allowed).afterarray of strings- Up to three offsets from the request's creation (
10m,24h,3d), increasing, each at least the minimum gap after the one before, at most 7 days. Errors use the Settings messages onreminders.after.
channelsobject- Which messages may go (
app_notification,email,text); one message goes. Left out, your account's default. deliveryenumsend, orself: send nothing; the response carriesapprove_url. Left out, your account's default. One ofsend,self.contextobject- Details shown to the approver.
Returns
The approval, routed to the new contact. link_status is invited until they set up a passkey.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/approver_links/route" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"contact": "ana@northside.example",
"jti": "jti_route_ana_1",
"action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
"amount": 850
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links/route`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"contact": "ana@northside.example",
"jti": "jti_route_ana_1",
"action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
"amount": 850
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/approver_links/route", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"contact": "ana@northside.example",
"jti": "jti_route_ana_1",
"action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
"amount": 850
}).json()Response 200
{
"id": "appr_01M6VQBCWZCWXTHF8K9A7CCKNP",
"object": "approval",
"approver_link_id": "lnk_01M6VQBCWZNXAQTSVRXSYE2KZX",
"status": "pending",
"bound": false,
"requires_biometric": true,
"effective_max_amount": null,
"exceeds_ceiling": false,
"deferred_quiet_hours": false,
"expires_at": "2026-11-07T19:31:46.655Z",
"delivery": {
"channel": "email",
"delivered": false,
"reason": "channel_not_configured"
},
"link_expires_at": "2026-11-07T19:31:46.655Z",
"link_status": "invited"
}Route an approval to an approver
POST/v1/mandate/approver_links/{id}/approvals
Sends an approval to an approver who accepted your invite and texts them a single-use link. With intent_token, the approval binds to that token's action and payload, and verify returns valid once they approve. The jti form is unbound and never satisfies verify. See approver network.
Parameters
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired- The object's ID.
intent_tokenstring- The agent's intent token, issued to your account. The approval covers its action and payload only.
jtistring- Unbound form: a bare token ID. The approval reaches the approver but never satisfies verify.
action_descriptionstringRequired- The human-readable action, exactly as authorized. With
intent_token, it must match the token's action. amountnumber- The amount, checked against the link's ceiling.
needs_biometricboolean- Require the approver's passkey.
approval_expires_ininteger- The expiry of an approval this call opens, in seconds: 60 to 7 days, and never past the intent token's expiry. Defaults to the account default, then the server's.
link_expires_ininteger- How long each single-use link to the approver works, in seconds: at least 60, capped at the approval. Defaults to the whole approval window; a resend issues a new link for the same time.
remindersobject- For a routed approval: its automatic reminders (the
approvalschedule's shape). Left out, your account's schedule.Show child attributes
enabledbooleantruetracks this request on the schedule (Pro and above on a live deployment:402 plan_requiredonreminders.enabledbelow Pro, nothing created; every plan in the sandbox);falsesends it no automatic reminder (one by hand or by API is still allowed).afterarray of strings- Up to three offsets from the request's creation (
10m,24h,3d), increasing, each at least the minimum gap after the one before, at most 7 days. Errors use the Settings messages onreminders.after.
channelsobject- For a routed approval: which messages may go (
app_notification,email,text). They narrow the approver's own order (their Provenance app, then their channels, then a text when they have a phone, then email), and one message goes. Left out, your account's default. deliveryenumsend, orself: send nothing; the response carriesapprove_urlfor you to show in your own app. The approver still approves with their own passkey.selfneeds an approver link. Left out, your account's default. One ofsend,self.contextobject- Details shown to the approver.
Returns
The approval, now waiting for the approver, with the limits that apply and its delivery.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
"action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
"amount": 850,
"needs_biometric": true,
"approval_expires_in": 3600
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
"action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
"amount": 850,
"needs_biometric": true,
"approval_expires_in": 3600
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/approver_links/lnk_01M5Q2H4DXP9F05T994KREYCNS/approvals", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"intent_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3Zjc5YTg4NS01ZmM3In0.c2lnbmF0dXJl",
"action_description": "Pay invoice INV-2041: $850.00 to Brindlecote Supplies",
"amount": 850,
"needs_biometric": True,
"approval_expires_in": 3600
}).json()Response 200
{
"id": "appr_01M5R0C09DQ4X7N2W8K5T3VB6M",
"object": "approval",
"approver_link_id": "lnk_01M5R0C09BPYX1PE6YR5WP772V",
"status": "pending",
"bound": true,
"requires_biometric": true,
"effective_max_amount": 5000,
"exceeds_ceiling": false,
"deferred_quiet_hours": false,
"delivery": {
"channel": "text",
"delivered": true,
"sender": "default"
},
"expires_at": "2026-10-24T22:41:44.130Z"
}