API Reference

Generated from the Wishbone OpenAPI schema (v2.0.0). Every endpoint below shows the exact request — method, URL, headers and body.

Base URLs

Sandboxhttps://sandbox.api.getwishbone.ioTest keys (wbk_test_…). No real money moves.
Productionhttps://api.getwishbone.ioLive keys (wbk_live_…). Issued at onboarding.

The machine-readable schema is at /openapi.json — point your codegen at it directly.

The hosted sandbox is not currently reachable. The reference below is generated from the shipped API schema and is accurate, but requests against sandbox.api.getwishbone.io will not succeed until the environment is live. See environment status.

Bank / Issuer API — contents

POST/v1/accountsPOST/v1/accounts/lookupGET/v1/accounts/{account_id}DELETE/v1/accounts/{account_id}POST/v1/accounts/{account_id}/school-linksDELETE/v1/accounts/{account_id}/school-links/{school_id}GET/v1/donationsPOST/v1/donations/lookupPOST/v1/donations/requestGET/v1/donations/{donation_id}POST/v1/donations/{donation_id}/cancelGET/v1/schoolsGET/v1/schools/{school_id}POST/v1/embed/token

School Feed API — contents

GET/v1/school/giftsGET/v1/school/gifts/{gift_id}

Bank / Issuer API

Server-to-server. Your backend authenticates with an API key and never exposes it to a client.

Accounts

Bank: cardholder accounts, held only as a keyed hash of your reference.

Create or Reactivate an Account

#
POSThttps://sandbox.api.getwishbone.io/v1/accounts

Idempotent: the same `cardholder_ref` always maps to the same account.

Authentication

X-Wishbone-API-Key

Request

curl -X POST "https://sandbox.api.getwishbone.io/v1/accounts" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "cardholder_ref": "c_7f3a91e2"
  }'

Body

cardholder_refstringREQUIREDmax 255 chars, min 1 chars

Your own opaque, stable identifier for the cardholder. Never an email, name, phone or card number. Wishbone stores only a keyed hash of it.

Response

HTTP/1.1 201 Created
{
  "success": true,
  "data": {
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "status": "active",
    "created_at": "2026-05-07T14:10:00+00:00",
    "unlinked_at": null,
    "school_links": []
  },
  "meta": { "request_id": "req_01HX..." }
}

Find an Account by Your Reference

#
POSThttps://sandbox.api.getwishbone.io/v1/accounts/lookup

The reference travels in the body, not the URL, so it stays out of access logs.

Authentication

X-Wishbone-API-Key

Request

curl -X POST "https://sandbox.api.getwishbone.io/v1/accounts/lookup" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "cardholder_ref": "c_7f3a91e2"
  }'

Body

cardholder_refstringREQUIREDmax 255 chars, min 1 chars

Your own opaque, stable identifier for the cardholder. Never an email, name, phone or card number. Wishbone stores only a keyed hash of it.

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "status": "active",
    "created_at": "2026-05-07T14:10:00+00:00",
    "unlinked_at": null,
    "school_links": [
      { "school_id": "sch_tennessee", "status": "linked", "linked_at": "2026-05-07T14:12:41+00:00" }
    ]
  },
  "meta": { "request_id": "req_01HX..." }
}

Get an Account

#
GEThttps://sandbox.api.getwishbone.io/v1/accounts/{account_id}

Authentication

X-Wishbone-API-Key

Request

curl "https://sandbox.api.getwishbone.io/v1/accounts/b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET"

Path parameters

account_idstring (uuid)REQUIRED

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "status": "active",
    "created_at": "2026-05-07T14:10:00+00:00",
    "unlinked_at": null,
    "school_links": [
      { "school_id": "sch_tennessee", "status": "linked", "linked_at": "2026-05-07T14:12:41+00:00" }
    ]
  },
  "meta": { "request_id": "req_01HX..." }
}

Unlink an Account

#
DELETEhttps://sandbox.api.getwishbone.io/v1/accounts/{account_id}

Marks the account unlinked and erases every school donor reference. Gifts already accepted still reach the school, without a donor reference.

Authentication

X-Wishbone-API-Key

Request

curl -X DELETE "https://sandbox.api.getwishbone.io/v1/accounts/b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET"

Path parameters

account_idstring (uuid)REQUIRED

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "status": "unlinked",
    "unlinked_at": "2026-05-07T15:01:12+00:00"
  },
  "meta": { "request_id": "req_01HX..." }
}

Start a School Account Link

#
POSThttps://sandbox.api.getwishbone.io/v1/accounts/{account_id}/school-links

Returns the school's own sign-in URL. Open it for the cardholder. The cardholder proves who they are to the school directly. Wishbone reads back only the school's opaque donor reference; the bank never sees it and the school never sees anything from the bank.

Authentication

X-Wishbone-API-Key

Request

curl -X POST "https://sandbox.api.getwishbone.io/v1/accounts/b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34/school-links" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "return_url": "mybank://wishbone/complete",
    "school_id": "sch_tennessee"
  }'

Path parameters

account_idstring (uuid)REQUIRED

Body

return_urlstringREQUIREDmax 2048 chars, min 1 chars

Where Wishbone sends the cardholder when linking ends. `status=linked|failed` and `school_id` are appended.

school_idstringREQUIRED

Response

HTTP/1.1 201 Created
{
  "success": true,
  "data": {
    "school_id": "sch_tennessee",
    "authorize_url": "https://login.utsports.example/oauth/authorize?response_type=code&client_id=wishbone&redirect_uri=...&state=...",
    "expires_at": "2026-05-07T14:27:00Z"
  },
  "meta": { "request_id": "req_01HX..." }
}

Donations

Bank: push gifts and track them.

List Gifts

#
GEThttps://sandbox.api.getwishbone.io/v1/donations

Your gifts, oldest first, for reconciliation.

Authentication

X-Wishbone-API-Key

Request

curl "https://sandbox.api.getwishbone.io/v1/donations" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET"

Query parameters

status"accepted" | "delivered" | "cancelled"
created_afterstring (date-time)
created_beforestring (date-time)
limitinteger>= 1, <= 100
cursorstring

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": [
    { "donation_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92", "status": "delivered", "dollar_amount": 50.0, "...": "..." }
  ],
  "meta": { "request_id": "req_01HX...", "limit": 50, "next_cursor": null }
}

Find a Gift by Your Reference

#
POSThttps://sandbox.api.getwishbone.io/v1/donations/lookup

Use after a timeout to learn whether a request landed.

Authentication

X-Wishbone-API-Key

Request

curl -X POST "https://sandbox.api.getwishbone.io/v1/donations/lookup" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "bank_transaction_ref": "TXN-12345"
  }'

Body

bank_transaction_refstringREQUIREDmax 255 chars, min 1 chars

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "donation_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92",
    "status": "accepted",
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "school_id": "sch_tennessee",
    "school_name": "Tennessee Fund",
    "fund_designation": "annual_fund",
    "dollar_amount": 50.0,
    "points_redeemed": 5000,
    "program_id": "lp_acme_rewards",
    "recurring": false,
    "recurrence_cadence": null,
    "donor_linked": null,
    "created_at": "2026-05-07T14:22:00+00:00",
    "delivered_at": null,
    "cancelled_at": null
  },
  "meta": { "request_id": "req_01HX..." }
}

Submit a Gift

#
POSThttps://sandbox.api.getwishbone.io/v1/donations/request

Debit the cardholder's points first, then call this. `202` means accepted and recorded. The gift becomes `delivered` once the school pulls it, and you receive `donation.delivered`.

Authentication

X-Wishbone-API-Key

Request

curl -X POST "https://sandbox.api.getwishbone.io/v1/donations/request" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "bank_transaction_ref": "TXN-12345",
    "dollar_amount": 50,
    "fund_designation": "annual_fund",
    "school_id": "sch_tennessee"
  }'

Body

bank_transaction_refstringREQUIREDmax 255 chars, min 1 chars

Your idempotency key. Stored only as a keyed hash, so it is never echoed back.

dollar_amountanyREQUIRED

USD value after your points conversion. Up to 2 decimal places.

fund_designationstringREQUIRED
school_idstringREQUIRED
account_idstring (uuid)

Wishbone account for the cardholder. Optional; without it, or without a school link, the school receives the gift with no donor reference.

points_redeemedinteger>= 0

Returned to you only; never sent to the school.

program_idstringmax 64 chars

Your rewards program. Returned to you only.

recurrence_cadence"monthly" | "quarterly"
recurringboolean

Response

HTTP/1.1 202 Accepted
{
  "success": true,
  "data": {
    "donation_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92",
    "status": "accepted",
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "school_id": "sch_tennessee",
    "school_name": "Tennessee Fund",
    "fund_designation": "annual_fund",
    "dollar_amount": 50.0,
    "points_redeemed": 5000,
    "program_id": "lp_acme_rewards",
    "recurring": false,
    "recurrence_cadence": null,
    "donor_linked": null,
    "created_at": "2026-05-07T14:22:00+00:00",
    "delivered_at": null,
    "cancelled_at": null
  },
  "meta": { "request_id": "req_01HX..." }
}

Get a Gift

#
GEThttps://sandbox.api.getwishbone.io/v1/donations/{donation_id}

Authentication

X-Wishbone-API-Key

Request

curl "https://sandbox.api.getwishbone.io/v1/donations/9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET"

Path parameters

donation_idstring (uuid)REQUIRED

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "donation_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92",
    "status": "delivered",
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "school_id": "sch_tennessee",
    "school_name": "Tennessee Fund",
    "fund_designation": "annual_fund",
    "dollar_amount": 50.0,
    "points_redeemed": 5000,
    "program_id": "lp_acme_rewards",
    "recurring": false,
    "recurrence_cadence": null,
    "donor_linked": true,
    "created_at": "2026-05-07T14:22:00+00:00",
    "delivered_at": "2026-05-07T14:31:09+00:00",
    "cancelled_at": null
  },
  "meta": { "request_id": "req_01HX..." }
}

Cancel a Gift

#
POSThttps://sandbox.api.getwishbone.io/v1/donations/{donation_id}/cancel

Allowed until the school has been shown the gift. Then refund the points.

Authentication

X-Wishbone-API-Key

Request

curl -X POST "https://sandbox.api.getwishbone.io/v1/donations/9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92/cancel" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET"

Path parameters

donation_idstring (uuid)REQUIRED

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "donation_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92",
    "status": "cancelled",
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34",
    "school_id": "sch_tennessee",
    "school_name": "Tennessee Fund",
    "fund_designation": "annual_fund",
    "dollar_amount": 50.0,
    "points_redeemed": 5000,
    "program_id": "lp_acme_rewards",
    "recurring": false,
    "recurrence_cadence": null,
    "donor_linked": null,
    "created_at": "2026-05-07T14:22:00+00:00",
    "delivered_at": null,
    "cancelled_at": "2026-05-07T14:23:30+00:00"
  },
  "meta": { "request_id": "req_01HX..." }
}

Schools

Bank: browse schools and funds.

List Schools

#
GEThttps://sandbox.api.getwishbone.io/v1/schools

Authentication

X-Wishbone-API-Key

Request

curl "https://sandbox.api.getwishbone.io/v1/schools" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET"

Query parameters

searchstring
statestring
conferencestring
activeboolean
limitinteger>= 1, <= 100
cursorstring

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": [
    {
      "school_id": "sch_tennessee",
      "name": "Tennessee Fund",
      "university": "University of Tennessee",
      "nickname": "Volunteers",
      "city": "Knoxville",
      "state": "TN",
      "conference": "SEC",
      "logo_url": "https://cdn.getwishbone.io/schools/sch_tennessee/logo.png",
      "hero_image_url": "https://cdn.getwishbone.io/schools/sch_tennessee/hero.jpg",
      "minimum_donation_usd": 5.0,
      "platform": "pac_io",
      "account_linking": true,
      "active": true,
      "fund_count": 2,
      "total_raised_usd": 18450.0
    }
  ],
  "meta": { "request_id": "req_01HX...", "total": 1, "limit": 50, "next_cursor": null }
}

Get School Detail

#
GEThttps://sandbox.api.getwishbone.io/v1/schools/{school_id}

Authentication

X-Wishbone-API-Key

Request

curl "https://sandbox.api.getwishbone.io/v1/schools/sch_tennessee" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET"

Path parameters

school_idstringREQUIRED

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "school_id": "sch_tennessee",
    "name": "Tennessee Fund",
    "university": "University of Tennessee",
    "minimum_donation_usd": 5.0,
    "platform": "pac_io",
    "account_linking": true,
    "active": true,
    "primary_color": "#FF8200",
    "secondary_color": "#58595B",
    "impact_statement": "Support Tennessee Athletics and help Volunteers compete at the highest level.",
    "funds": [
      { "fund_id": "annual_fund", "label": "Annual Fund", "description": "General athletics support", "minimum_usd": 5.0, "active": true },
      { "fund_id": "scholarship", "label": "Scholarship Fund", "description": "Student-athlete scholarships", "minimum_usd": 25.0, "active": true }
    ],
    "tax_info": {
      "ein": "62-0646012",
      "receipt_issuer": "University of Tennessee Athletics",
      "receipt_address": "1600 Phillip Fulmer Way, Knoxville, TN 37916"
    }
  },
  "meta": { "request_id": "req_01HX..." }
}

Embed

Bank: tokens for the hosted flow.

Generate Embed Token

#
POSThttps://sandbox.api.getwishbone.io/v1/embed/token

Authentication

X-Wishbone-API-Key

Request

curl -X POST "https://sandbox.api.getwishbone.io/v1/embed/token" \
  -H "X-Wishbone-API-Key: wbk_test_YOUR_KEY_ID:YOUR_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "b3d1f0c2-8a4e-4f77-9c2f-1e5a7d9b0c34"
  }'

Body

account_idstring (uuid)REQUIRED
cancel_urlstring
dollar_amountany
expires_ininteger>= 60, <= 900

Token TTL in seconds. Max 900 (15 min).

fund_designationstring
lock_amountboolean
lock_schoolboolean
return_urlstring
school_idstring
theme_overrideobject

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
    "embed_token": "wbt_gAAAAAB...",
    "embed_url": "https://embed.getwishbone.io/v1/session?token=wbt_gAAAAAB...",
    "expires_at": "2026-05-07T14:32:00Z"
  },
  "meta": { "request_id": "req_01HX..." }
}

School Feed API

Read-only. A school pulls its gifts with a school key (wbs_…). Banks do not call these.

School Feed

School: pull gifts (read-only, school key).

Pull New Gifts

#
GEThttps://sandbox.api.getwishbone.io/v1/school/gifts

Authentication

X-Wishbone-School-Key

Request

curl "https://sandbox.api.getwishbone.io/v1/school/gifts" \
  -H "X-Wishbone-School-Key: wbs_test_YOUR_KEY_ID:YOUR_SECRET"

Query parameters

cursorstring

The `next_cursor` from your last page. Passing it confirms you stored everything up to it.

limitinteger>= 1, <= 500

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": [
    {
      "gift_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92",
      "cursor": "cur_MTA0Mg",
      "created_at": "2026-05-07T14:22:00+00:00",
      "fund_designation": "annual_fund",
      "fund_label": "Annual Fund",
      "dollar_amount": 50.0,
      "currency": "USD",
      "recurring": false,
      "recurrence_cadence": null,
      "payer": { "payer_id": "5c1e9a40-2b7d-4f0e-9a51-3d8c2e7b6f14", "name": "Acme Bank" },
      "donor_ref": "TN-DONOR-88421"
    }
  ],
  "meta": { "request_id": "req_01HX...", "limit": 100, "next_cursor": "cur_MTA0Mg" }
}

Get One Gift

#
GEThttps://sandbox.api.getwishbone.io/v1/school/gifts/{gift_id}

Authentication

X-Wishbone-School-Key

Request

curl "https://sandbox.api.getwishbone.io/v1/school/gifts/9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92" \
  -H "X-Wishbone-School-Key: wbs_test_YOUR_KEY_ID:YOUR_SECRET"

Path parameters

gift_idstring (uuid)REQUIRED

Response

HTTP/1.1 200 OK
{
  "success": true,
  "data": {
  "gift_id": "9f14c6d2-7b3a-4e51-a0c8-2d6b8e4f1a92",
  "cursor": "cur_MTA0Mg",
  "created_at": "2026-05-07T14:22:00+00:00",
  "fund_designation": "annual_fund",
  "fund_label": "Annual Fund",
  "dollar_amount": 50.0,
  "currency": "USD",
  "recurring": false,
  "recurrence_cadence": null,
  "payer": { "payer_id": "5c1e9a40-2b7d-4f0e-9a51-3d8c2e7b6f14", "name": "Acme Bank" },
  "donor_ref": "TN-DONOR-88421"
},
  "meta": { "request_id": "req_01HX..." }
}