Authorize · API reference

Tabs

Tabs for small, frequent payments between agents: open once under a mandate, check each call offline against the signed revocation list, post usage statements. Provenance holds the proof, never the money.

Related guide: Pay per call with tabs

The tab object

Attributes

objectenum
The type of object. One of tab.
idstring
Unique identifier for the object.
statusenum
Where the tab is. exhausted is an open tab paused until the next UTC day: today's statements reached the daily cap, or the mandate's budget couldn't cover today's reservation. One of pending_approval, open, exhausted, closed, expired, declined.
reasonstring | null
Why it closed or was declined (a reason code).
roleenum
Your side. One of buyer, seller, both.
seller_agent_idstring
The seller agent (the tab token's aud).
buyer_agent_idstring | null
The buyer's registered agent.
buyer_subjectstring
The buyer's pairwise subject at this seller, never a person or device.
grant_idstring
The mandate the tab was opened under (the buyer's side only).
price_sheet_hashstring
The sha256 of the price sheet's canonical payload.
price_sheetobject
The decoded price sheet: an offer with delivery.kind: service.
currencystring
The price sheet's currency.
max_per_callnumber
The most one call can cost.
daily_capnumber
The most a UTC day can cost, reserved from the mandate's budget.
expires_attimestamp
When the tab and its token expire (at most 30 days).
todayobject | any | null
Today's reservation and usage.
Show child attributes
daystring
The UTC day, YYYY-MM-DD.
statusenum
Where the day is. One of open, exhausted, settled.
reservednumber
Reserved from the mandate's budget (0 when the mandate has no budget).
usednumber
What the seller's statements used.
remainingnumber
Left under the daily cap.
callsinteger
Calls in the seller's statements.
buyer_callsinteger | null
Calls the buyer's SDK counted.
contestedboolean
The two counts differ by more than 2% (set when the day settles).
releasednumber
Given back to the mandate's budget when the day settled.
paused_untiltimestamp | null
When an exhausted day ends.
exhausted_reasonenum
Why the day is exhausted. One of cap, budget.
settled_attimestamp | null
When the day settled.
approval_idstring | null
The approval a policy step-up asked for (buyer only).
tab_tokenstring | null
The tab token (tab+jwt, ES256): send it as Provenance-Tab on each call. The buyer sees it while the tab is open; the seller never does.
closed_byenum
Who closed it. One of buyer, seller, provenance.
timelinearray of objects
Each change: status, at, by, detail.
daysarray of objects
On retrieve: the last 31 UTC days, newest first.
Show child attributes
daystring
The UTC day, YYYY-MM-DD.
statusenum
Where the day is. One of open, exhausted, settled.
reservednumber
Reserved from the mandate's budget (0 when the mandate has no budget).
usednumber
What the seller's statements used.
remainingnumber
Left under the daily cap.
callsinteger
Calls in the seller's statements.
buyer_callsinteger | null
Calls the buyer's SDK counted.
contestedboolean
The two counts differ by more than 2% (set when the day settles).
releasednumber
Given back to the mandate's budget when the day settled.
paused_untiltimestamp | null
When an exhausted day ends.
exhausted_reasonenum
Why the day is exhausted. One of cap, budget.
settled_attimestamp | null
When the day settled.
statementsarray of objects
On retrieve: the last 50 statements, newest first.
Show child attributes
objectenum
The type of object. One of tab_statement.
idstring
Unique identifier for the object.
tab_idstring
The tab.
sideenum
Who posted it. One of seller, buyer.
daystring
The UTC day the period falls in.
period_starttimestamp
The period's start.
period_endtimestamp
The period's end.
callsinteger
Calls in the period.
amountnumber | null
What the period cost (the seller's statements only).
todayobject
One UTC day of a tab: the reservation from the mandate's budget window, what the seller's statements used, the buyer's own count, and the settlement.
Show child attributes
daystring
The UTC day, YYYY-MM-DD.
statusenum
Where the day is. One of open, exhausted, settled.
reservednumber
Reserved from the mandate's budget (0 when the mandate has no budget).
usednumber
What the seller's statements used.
remainingnumber
Left under the daily cap.
callsinteger
Calls in the seller's statements.
buyer_callsinteger | null
Calls the buyer's SDK counted.
contestedboolean
The two counts differ by more than 2% (set when the day settles).
releasednumber
Given back to the mandate's budget when the day settled.
paused_untiltimestamp | null
When an exhausted day ends.
exhausted_reasonenum
Why the day is exhausted. One of cap, budget.
settled_attimestamp | null
When the day settled.
created_attimestamp
When it was posted.
created_attimestamp
When it was opened.
opened_attimestamp | null
When it passed authorize.
closed_attimestamp | null
When it closed or expired.
replayedboolean
Present (true) when the open returned the live tab already on this price sheet.

The tab object

{
  "object": "tab",
  "id": "tab_01M68AGWHQC9WE3AXPXBEGPY26",
  "status": "open",
  "reason": null,
  "role": "buyer",
  "seller_agent_id": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
  "buyer_agent_id": "agt_01M68AGWGSBD8SBNVMJNRMMZ7S",
  "buyer_subject": "psub_q52nhotzngapcgh45pzo5px6na",
  "grant_id": "grt_01M68ZTABREFERENCE0000001",
  "price_sheet_hash": "aa8841143036db9561a0b8c75396e751596167560c406ab09546c0c6c06aeb07",
  "price_sheet": {
    "iss": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
    "offer_id": "sheet_company_lookup_v3",
    "items": [
      {
        "sku": "lookup",
        "name": "Company lookup",
        "quantity": 1,
        "unit": "call",
        "unit_price": 0.002
      }
    ],
    "total": 0.002,
    "currency": "USD",
    "delivery": {
      "kind": "service",
      "deadline": "2026-11-30T06:32:00.802Z"
    },
    "refund_terms": [
      "none"
    ],
    "seller_confirmation": {
      "offered": "never",
      "response_time": "1bd"
    },
    "kid": "rzHunQ6UkOf9MsC4JNxhi_j_NNEUQdZz5q7bNi85W6M",
    "nonce": "YaZfpmfesComD8Jrrnocsg",
    "iat": 1793428320,
    "exp": 1793514720
  },
  "currency": "USD",
  "max_per_call": 0.01,
  "daily_cap": 40,
  "expires_at": "2026-11-14T06:32:00.811Z",
  "today": {
    "day": "2026-10-31",
    "status": "open",
    "reserved": 40,
    "used": 0,
    "remaining": 40,
    "calls": 0,
    "buyer_calls": null,
    "contested": false,
    "released": 0,
    "paused_until": null,
    "exhausted_reason": null,
    "settled_at": null
  },
  "approval_id": null,
  "tab_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6InRhYitqd3QiLCJraWQiOiJmZjkzMTgzN2ZmODI2ZWJjIn0.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsInN1YiI6InBzdWJfcTUybmhvdHpuZ2FwY2doNDVwem81cHg2bmEiLCJhdWQiOiJhZ3RfMDFNNjhBR1dBWEc3SlZOVFpIRTE5UlNQUkUiLCJqdGkiOiJ0YWJfMDFNNjhBR1dIUUM5V0UzQVhQWEJFR1BZMjYiLCJpYXQiOjE3OTM0MjgzMjAsImV4cCI6MTc5NDYzNzkyMCwic2Vzc2lvbiI6InNlc3Nfc2NvdXRfNyIsIm1hbmRhdGVfaWQiOiJtZHRfMDFNNjhaVEFCUkVGRVJFTkNFMDAwMDAwMSIsInRhYiI6eyJpZCI6InRhYl8wMU02OEFHV0hRQzlXRTNBWFBYQkVHUFkyNiIsInNlbGxlciI6ImFndF8wMU02OEFHV0FYRzdKVk5UWkhFMTlSU1BSRSIsIm1heF9wZXJfY2FsbCI6MC4wMSwiZGFpbHlfY2FwIjo0MCwiY3VycmVuY3kiOiJVU0QiLCJwcmljZV9zaGVldF9oYXNoIjoiYWE4ODQxMTQzMDM2ZGI5NTYxYTBiOGM3NTM5NmU3NTE1OTYxNjc1NjBjNDA2YWIwOTU0NmMwYzZjMDZhZWIwNyJ9fQ.WbdHu2QWtm0L44d_Q5cyI1QyYNB-O2WHR8c8Zr-KvccgFrCqw2h2RozQi8flSnaMMC7rnbO7OHiZu2RDv63q7g",
  "closed_by": null,
  "timeline": [
    {
      "status": "pending_approval",
      "at": "2026-10-31T06:32:00.823Z",
      "by": "buyer"
    },
    {
      "status": "open",
      "at": "2026-10-31T06:32:00.872Z",
      "by": "provenance"
    }
  ],
  "created_at": "2026-10-31T06:32:00.823Z",
  "opened_at": "2026-10-31T06:32:00.834Z",
  "closed_at": null,
  "replayed": true
}

Events

Sent to your webhook endpoints when they subscribe:

  • authorize.tab.opened
  • authorize.tab.exhausted
  • authorize.tab.contested
  • authorize.tab.closed
  • authorize.tab.revoked

Open a tab

POST/v1/authorize/tabs

Opens a tab on a seller agent's signed price sheet through the ordinary authorize path (tab.open, the seller as the counterparty, the daily cap as the amount): your mandate, budget and policy apply once. The daily cap is reserved from the mandate's budget window. The same price sheet again while the tab is live returns it. Free.

Parameters

DPoPstringheader
A DPoP proof (RFC 9449) from the grant's holder key, when the grant is holder-bound (holder_jkt): an ES256 dpop+jwt naming this request (htm, htu), iat within 60 seconds, a fresh jti, and ath, the SHA-256 of the grant token sent. One per request. See bind a grant to its holder.
price_sheetstringRequired
The seller's signed price sheet: an offer (offer+jwt, EdDSA) with delivery.kind: service and per-unit prices, at most 8 KB.
agent_session_idstringRequired
Your agent's session.
agent_idstring
Your registered agent. Required when the price sheet has an aud.
grant_idstring
The mandate to open it under (or mandate_token).
mandate_tokenstring
A delegation mandate token instead of grant_id. A holder-bound grant needs its holder's DPoP proof either way.
max_per_callnumberRequired
The most one call can cost; at most daily_cap.
daily_capnumberRequired
The most a UTC day can cost: the amount authorize checks and the budget reserves.
expires_attimestampRequired
When the tab ends: at most 30 days away, and not after the mandate.
purposestring
Why the agent is opening it, shown in an approval's Details.

Returns

The live tab already open on this price sheet (replayed). See the tab object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/authorize/tabs" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "price_sheet": "eyJhbGciOiJFZERTQSIsInR5cCI6Im9mZmVyK2p3dCIsImtpZCI6InJ6SHVuUTZVa09mOU1zQzRKTnhoaV9qX05ORVVRZFp6NXE3Yk5pODVXNk0ifQ.eyJpc3MiOiJhZ3RfMDFNNjhBR1dBWEc3SlZOVFpIRTE5UlNQUkUiLCJvZmZlcl9pZCI6InNoZWV0X2NvbXBhbnlfbG9va3VwX3YzIiwiaXRlbXMiOlt7InNrdSI6Imxvb2t1cCIsIm5hbWUiOiJDb21wYW55IGxvb2t1cCIsInF1YW50aXR5IjoxLCJ1bml0IjoiY2FsbCIsInVuaXRfcHJpY2UiOjAuMDAyfV0sInRvdGFsIjowLjAwMiwiY3VycmVuY3kiOiJVU0QiLCJkZWxpdmVyeSI6eyJraW5kIjoic2VydmljZSIsImRlYWRsaW5lIjoiMjAyNi0xMS0zMFQwNjozMjowMC44MDJaIn0sInJlZnVuZF90ZXJtcyI6WyJub25lIl0sInNlbGxlcl9jb25maXJtYXRpb24iOnsib2ZmZXJlZCI6Im5ldmVyIiwicmVzcG9uc2VfdGltZSI6IjFiZCJ9LCJraWQiOiJyekh1blE2VWtPZjlNc0M0Sk54aGlfal9OTkVVUWRaejVxN2JOaTg1VzZNIiwibm9uY2UiOiJZYVpmcG1mZXNDb21EOEpycm5vY3NnIiwiaWF0IjoxNzkzNDI4MzIwLCJleHAiOjE3OTM1MTQ3MjB9.GHejpuNGUoN329q_M_EWBUk_4c7PsN98OD7k945Fu5YAQ3Dc6NEgO67fk-hauqn5PxTizjb8fsps43ZOc3cvBw",
    "agent_session_id": "sess_scout_7",
    "agent_id": "agt_01M68AGWGSBD8SBNVMJNRMMZ7S",
    "grant_id": "grt_01M68ZTABREFERENCE0000001",
    "max_per_call": 0.01,
    "daily_cap": 40,
    "expires_at": "2026-11-14T06:32:00.811Z"
  }'

Response 200

{
  "object": "tab",
  "id": "tab_01M68AGWHQC9WE3AXPXBEGPY26",
  "status": "open",
  "reason": null,
  "role": "buyer",
  "seller_agent_id": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
  "buyer_agent_id": "agt_01M68AGWGSBD8SBNVMJNRMMZ7S",
  "buyer_subject": "psub_q52nhotzngapcgh45pzo5px6na",
  "grant_id": "grt_01M68ZTABREFERENCE0000001",
  "price_sheet_hash": "aa8841143036db9561a0b8c75396e751596167560c406ab09546c0c6c06aeb07",
  "price_sheet": {
    "iss": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
    "offer_id": "sheet_company_lookup_v3",
    "items": [
      {
        "sku": "lookup",
        "name": "Company lookup",
        "quantity": 1,
        "unit": "call",
        "unit_price": 0.002
      }
    ],
    "total": 0.002,
    "currency": "USD",
    "delivery": {
      "kind": "service",
      "deadline": "2026-11-30T06:32:00.802Z"
    },
    "refund_terms": [
      "none"
    ],
    "seller_confirmation": {
      "offered": "never",
      "response_time": "1bd"
    },
    "kid": "rzHunQ6UkOf9MsC4JNxhi_j_NNEUQdZz5q7bNi85W6M",
    "nonce": "YaZfpmfesComD8Jrrnocsg",
    "iat": 1793428320,
    "exp": 1793514720
  },
  "currency": "USD",
  "max_per_call": 0.01,
  "daily_cap": 40,
  "expires_at": "2026-11-14T06:32:00.811Z",
  "today": {
    "day": "2026-10-31",
    "status": "open",
    "reserved": 40,
    "used": 0,
    "remaining": 40,
    "calls": 0,
    "buyer_calls": null,
    "contested": false,
    "released": 0,
    "paused_until": null,
    "exhausted_reason": null,
    "settled_at": null
  },
  "approval_id": null,
  "tab_token": "eyJhbGciOiJFUzI1NiIsInR5cCI6InRhYitqd3QiLCJraWQiOiJmZjkzMTgzN2ZmODI2ZWJjIn0.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsInN1YiI6InBzdWJfcTUybmhvdHpuZ2FwY2doNDVwem81cHg2bmEiLCJhdWQiOiJhZ3RfMDFNNjhBR1dBWEc3SlZOVFpIRTE5UlNQUkUiLCJqdGkiOiJ0YWJfMDFNNjhBR1dIUUM5V0UzQVhQWEJFR1BZMjYiLCJpYXQiOjE3OTM0MjgzMjAsImV4cCI6MTc5NDYzNzkyMCwic2Vzc2lvbiI6InNlc3Nfc2NvdXRfNyIsIm1hbmRhdGVfaWQiOiJtZHRfMDFNNjhaVEFCUkVGRVJFTkNFMDAwMDAwMSIsInRhYiI6eyJpZCI6InRhYl8wMU02OEFHV0hRQzlXRTNBWFBYQkVHUFkyNiIsInNlbGxlciI6ImFndF8wMU02OEFHV0FYRzdKVk5UWkhFMTlSU1BSRSIsIm1heF9wZXJfY2FsbCI6MC4wMSwiZGFpbHlfY2FwIjo0MCwiY3VycmVuY3kiOiJVU0QiLCJwcmljZV9zaGVldF9oYXNoIjoiYWE4ODQxMTQzMDM2ZGI5NTYxYTBiOGM3NTM5NmU3NTE1OTYxNjc1NjBjNDA2YWIwOTU0NmMwYzZjMDZhZWIwNyJ9fQ.WbdHu2QWtm0L44d_Q5cyI1QyYNB-O2WHR8c8Zr-KvccgFrCqw2h2RozQi8flSnaMMC7rnbO7OHiZu2RDv63q7g",
  "closed_by": null,
  "timeline": [
    {
      "status": "pending_approval",
      "at": "2026-10-31T06:32:00.823Z",
      "by": "buyer"
    },
    {
      "status": "open",
      "at": "2026-10-31T06:32:00.872Z",
      "by": "provenance"
    }
  ],
  "created_at": "2026-10-31T06:32:00.823Z",
  "opened_at": "2026-10-31T06:32:00.834Z",
  "closed_at": null,
  "replayed": true
}

Retrieve a tab

GET/v1/authorize/tabs/{id}

Both accounts read a tab, with its last 31 days and 50 statements. The seller sees the buyer agent and a pairwise subject, never the person or the tab token.

Parameters

idstringpathRequired
The tab's ID.

Returns

The tab. See the tab object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/authorize/tabs/tab_01M68AGWHQC9WE3AXPXBEGPY26" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "tab",
  "id": "tab_01M68AGWHQC9WE3AXPXBEGPY26",
  "status": "open",
  "reason": null,
  "role": "seller",
  "seller_agent_id": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
  "buyer_agent_id": "agt_01M68AGWGSBD8SBNVMJNRMMZ7S",
  "buyer_subject": "psub_q52nhotzngapcgh45pzo5px6na",
  "price_sheet_hash": "aa8841143036db9561a0b8c75396e751596167560c406ab09546c0c6c06aeb07",
  "price_sheet": {
    "iss": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
    "offer_id": "sheet_company_lookup_v3",
    "items": [
      {
        "sku": "lookup",
        "name": "Company lookup",
        "quantity": 1,
        "unit": "call",
        "unit_price": 0.002
      }
    ],
    "total": 0.002,
    "currency": "USD",
    "delivery": {
      "kind": "service",
      "deadline": "2026-11-30T06:32:00.802Z"
    },
    "refund_terms": [
      "none"
    ],
    "seller_confirmation": {
      "offered": "never",
      "response_time": "1bd"
    },
    "kid": "rzHunQ6UkOf9MsC4JNxhi_j_NNEUQdZz5q7bNi85W6M",
    "nonce": "YaZfpmfesComD8Jrrnocsg",
    "iat": 1793428320,
    "exp": 1793514720
  },
  "currency": "USD",
  "max_per_call": 0.01,
  "daily_cap": 40,
  "expires_at": "2026-11-14T06:32:00.811Z",
  "today": {
    "day": "2026-10-31",
    "status": "open",
    "reserved": 40,
    "used": 3.68,
    "remaining": 36.32,
    "calls": 1840,
    "buyer_calls": 1838,
    "contested": false,
    "released": 0,
    "paused_until": null,
    "exhausted_reason": null,
    "settled_at": null
  },
  "approval_id": null,
  "tab_token": null,
  "closed_by": null,
  "timeline": [
    {
      "status": "pending_approval",
      "at": "2026-10-31T06:32:00.823Z",
      "by": "buyer"
    },
    {
      "status": "open",
      "at": "2026-10-31T06:32:00.872Z",
      "by": "provenance"
    }
  ],
  "created_at": "2026-10-31T06:32:00.823Z",
  "opened_at": "2026-10-31T06:32:00.834Z",
  "closed_at": null,
  "days": [
    {
      "day": "2026-10-31",
      "status": "open",
      "reserved": 40,
      "used": 3.68,
      "remaining": 36.32,
      "calls": 1840,
      "buyer_calls": 1838,
      "contested": false,
      "released": 0,
      "paused_until": null,
      "exhausted_reason": null,
      "settled_at": null
    }
  ],
  "statements": [
    {
      "object": "tab_statement",
      "id": "tus_01M68AGY45KF623RMEFFF9AB4V",
      "side": "buyer",
      "day": "2026-10-31",
      "period_start": "2026-10-31T06:32:00.834Z",
      "period_end": "2026-10-31T06:32:01.834Z",
      "calls": 1838,
      "amount": null,
      "created_at": "2026-10-31T06:32:02.437Z"
    },
    {
      "object": "tab_statement",
      "id": "tus_01M68AGY3JX5NB52BYW8T4K5KC",
      "side": "seller",
      "day": "2026-10-31",
      "period_start": "2026-10-31T06:32:00.834Z",
      "period_end": "2026-10-31T06:32:01.834Z",
      "calls": 1840,
      "amount": 3.68,
      "created_at": "2026-10-31T06:32:02.406Z"
    }
  ]
}

Retrieve the revocation list

GET/v1/public/revocations

The signed list a seller checks tab and deal tokens against offline: ids its tokens can name that are revoked, closed or expired, and tabs paused for the day. Refresh at next_update (default 60 seconds) with If-None-Match. No API key needed; 600 a minute per IP.

No API key needed.

Parameters

audstringqueryRequired
The seller agent's ID.
If-None-Matchstringheader
The ETag you hold; an unchanged list answers 304.

Returns

The list.

Errors

curl -s -X POST "$PROVENANCE_API/v1/mandate/agents" \
  -H "Authorization: Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" \
  -H "Content-Type: application/json" \
  -d '{ "name": "saltmarsh-api" }' > step.json
export AGENT_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/public/revocations?aud=$AGENT_ID"

Response 200

{
  "object": "revocation_list",
  "aud": "agt_01M6VQDEAE4XDR0R83EWC5VSQS",
  "list": "eyJhbGciOiJFUzI1NiIsInR5cCI6InJldm9jYXRpb25zK2p3dCIsImtpZCI6ImY3NjVhOTlhZDA1NDNkOTkifQ.eyJpc3MiOiJwcm92ZW5hbmNlLWF1dGhvcml6ZSIsImF1ZCI6ImFndF8wMU02VlFERUFFNFhEUjBSODNFV0M1VlNRUyIsImlhdCI6MTc5NDA3OTM3MywibmV4dF91cGRhdGUiOjE3OTQwNzk0MzMsImV4cCI6MTc5NDA3OTYxMywidGFicyI6W10sInBhdXNlZCI6W10sImp0aXMiOltdLCJtYW5kYXRlcyI6W10sInNlc3Npb25zIjpbXSwicnVucyI6W10sInJ1bnNfY2hlY2tlZCI6ZmFsc2V9.eZ-hbk-Y7PTu4Z6RULtDL_VonF8cDeU5ExyDwiXsUOvr1yfFDVo7DyHk9HN130aHLd9Gyn-uajS5wPjBlmEc7w",
  "issued_at": "2026-11-07T19:22:53.000Z",
  "next_update": "2026-11-07T19:23:53.000Z",
  "counts": {
    "tabs": 0,
    "paused": 0,
    "jtis": 0,
    "mandates": 0,
    "sessions": 0
  },
  "runs_checked": false
}

List tabs

GET/v1/authorize/tabs

Tabs where your account is the buyer, the seller, or either, newest first.

Parameters

roleenumquery
Which side. Default any. One of buyer, seller, any.
statusarray of enumsquery
Only tabs in these statuses. exhausted is an open tab whose daily cap is spent; open also lists those. One value, or several separated by commas.
qstringquery
Search text. Matches when the tab's ID, either agent's ID, the buyer's subject or the reason contains it, ignoring case. At most 200 characters.
limitintegerquery
Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid.
cursorstringquery
Opaque; pass a response's next_cursor back to get the next page.

Returns

A page of tabs.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl "$PROVENANCE_API/v1/authorize/tabs?role=buyer" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "list",
  "data": [],
  "has_more": false,
  "next_cursor": null
}

Post usage

POST/v1/authorize/tabs/{id}/usage

The seller posts a signed statement for one period at least every 5 minutes while in use and whenever usage passes another 20% of the cap; past the daily cap it's refused and the tab pauses until the next UTC day. The buyer may post its own count (buyer_calls); a gap over 2% contests the day.

Parameters

idstringpathRequired
The tab's ID.
period_starttimestamp
The period's start (at or after the last statement's end).
period_endtimestamp
The period's end, in the same UTC day.
callsinteger
Calls served in the period.
amountnumber
What they cost: at most calls × max_per_call.
statementstring
The same fields signed with the seller agent's key (tab-usage+jwt, EdDSA): signUsageStatement() in @provenanceauth/rails/tabs.
buyer_callsinteger
Calls your SDK counted in the period.

Returns

The statement, with the day it went into.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/authorize/tabs/tab_01M68AGWHQC9WE3AXPXBEGPY26/usage" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "period_start": "2026-10-31T06:32:00.834Z",
    "period_end": "2026-10-31T06:32:01.834Z",
    "calls": 1840,
    "amount": 3.68,
    "statement": "eyJhbGciOiJFZERTQSIsInR5cCI6InRhYi11c2FnZStqd3QiLCJraWQiOiJyekh1blE2VWtPZjlNc0M0Sk54aGlfal9OTkVVUWRaejVxN2JOaTg1VzZNIn0.eyJpc3MiOiJhZ3RfMDFNNjhBR1dBWEc3SlZOVFpIRTE5UlNQUkUiLCJ0YWJfaWQiOiJ0YWJfMDFNNjhBR1dIUUM5V0UzQVhQWEJFR1BZMjYiLCJwZXJpb2Rfc3RhcnQiOiIyMDI2LTEwLTMxVDA2OjMyOjAwLjgzNFoiLCJwZXJpb2RfZW5kIjoiMjAyNi0xMC0zMVQwNjozMjowMS44MzRaIiwiY2FsbHMiOjE4NDAsImFtb3VudCI6My42OCwia2lkIjoicnpIdW5RNlVrT2Y5TXNDNEpOeGhpX2pfTk5FVVFkWno1cTdiTmk4NVc2TSIsImlhdCI6MTc5MzQyODMyMn0.Vott6HxnJ0Cv0JFJxojoQaF475DeKKASNZAxpJjGrUIrBSsCXwzjuB-3oAacsaGXDxzil4_WXssq5FKmSWYWDA"
  }'

Response 201

{
  "object": "tab_statement",
  "id": "tus_01M68AGY3JX5NB52BYW8T4K5KC",
  "side": "seller",
  "day": "2026-10-31",
  "period_start": "2026-10-31T06:32:00.834Z",
  "period_end": "2026-10-31T06:32:01.834Z",
  "calls": 1840,
  "amount": 3.68,
  "created_at": "2026-10-31T06:32:02.406Z",
  "tab_id": "tab_01M68AGWHQC9WE3AXPXBEGPY26",
  "today": {
    "day": "2026-10-31",
    "status": "open",
    "reserved": 40,
    "used": 3.68,
    "remaining": 36.32,
    "calls": 1840,
    "buyer_calls": null,
    "contested": false,
    "released": 0,
    "paused_until": null,
    "exhausted_reason": null,
    "settled_at": null
  }
}

Close a tab

POST/v1/authorize/tabs/{id}/close

Either side, any time while it's open or waiting for approval. The seller's next revocation list names it; when the buyer closes it the seller also gets authorize.tab.revoked. What today didn't use is released when the day settles.

Parameters

idstringpathRequired
The tab's ID.

Returns

The tab. See the tab object.

Errors

export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/authorize/tabs/tab_01M68AGWHQC9WE3AXPXBEGPY26/close" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "tab",
  "id": "tab_01M68AGWHQC9WE3AXPXBEGPY26",
  "status": "closed",
  "reason": "buyer_closed",
  "role": "buyer",
  "seller_agent_id": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
  "buyer_agent_id": "agt_01M68AGWGSBD8SBNVMJNRMMZ7S",
  "buyer_subject": "psub_q52nhotzngapcgh45pzo5px6na",
  "grant_id": "grt_01M68ZTABREFERENCE0000001",
  "price_sheet_hash": "aa8841143036db9561a0b8c75396e751596167560c406ab09546c0c6c06aeb07",
  "price_sheet": {
    "iss": "agt_01M68AGWAXG7JVNTZHE19RSPRE",
    "offer_id": "sheet_company_lookup_v3",
    "items": [
      {
        "sku": "lookup",
        "name": "Company lookup",
        "quantity": 1,
        "unit": "call",
        "unit_price": 0.002
      }
    ],
    "total": 0.002,
    "currency": "USD",
    "delivery": {
      "kind": "service",
      "deadline": "2026-11-30T06:32:00.802Z"
    },
    "refund_terms": [
      "none"
    ],
    "seller_confirmation": {
      "offered": "never",
      "response_time": "1bd"
    },
    "kid": "rzHunQ6UkOf9MsC4JNxhi_j_NNEUQdZz5q7bNi85W6M",
    "nonce": "YaZfpmfesComD8Jrrnocsg",
    "iat": 1793428320,
    "exp": 1793514720
  },
  "currency": "USD",
  "max_per_call": 0.01,
  "daily_cap": 40,
  "expires_at": "2026-11-14T06:32:00.811Z",
  "today": {
    "day": "2026-10-31",
    "status": "open",
    "reserved": 40,
    "used": 3.68,
    "remaining": 36.32,
    "calls": 1840,
    "buyer_calls": 1838,
    "contested": false,
    "released": 0,
    "paused_until": null,
    "exhausted_reason": null,
    "settled_at": null
  },
  "approval_id": null,
  "tab_token": null,
  "closed_by": "buyer",
  "timeline": [
    {
      "status": "pending_approval",
      "at": "2026-10-31T06:32:00.823Z",
      "by": "buyer"
    },
    {
      "status": "open",
      "at": "2026-10-31T06:32:00.872Z",
      "by": "provenance"
    },
    {
      "status": "closed",
      "at": "2026-10-31T06:32:02.463Z",
      "by": "buyer"
    }
  ],
  "created_at": "2026-10-31T06:32:00.823Z",
  "opened_at": "2026-10-31T06:32:00.834Z",
  "closed_at": "2026-10-31T06:32:02.463Z"
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.