localsDocs Get sandbox keys
Reference/API reference

API reference

Every endpoint of the Locals API v1, with request and response examples.

All requests go to https://api.locals.money/v1 with JSON bodies and Authorization: Bearer <secret key>. That is the live environment: sandbox runs on its own deployment, with its own keys. See Environments and keys.

Amounts are decimal strings in major units ("12500.00"). Ids are opaque strings with a prefix. Every endpoint can also answer 401 unauthorized, 403 forbidden (suspended account), 403 ip_not_allowed and 429 rate_limited; they are not repeated below. Idempotency, pagination and the error body are in Requests, idempotency and errors.

Customers

A customer is the person or business that owns routes and transfers. Every customer is verified before it can move money, and Locals sets limits on what it moves. See Customers and verification.

POST/v1/customersAvailable

Create a customer and start their verification.

Businesses get a hosted verification (KYB) link to complete. Individuals are created from the verification data you already hold, sent in kyc: only for partners whose compliance agreement allows it, other partners get 400 on kyc. The hosted link for individuals is planned: an individual without kyc is 400.

One customer per externalId: creating it twice returns 409 customer_exists. This endpoint takes bodies up to 15 MB, for the images in kyc.

Request body

  • typestring individual businessrequired

    What kind of customer this is.

  • emailstringrequired

    Contact email of the customer. Up to 254 characters.

  • externalIdstringrequired

    Your own id for this customer, unique per partner. 1 to 128 printable ASCII characters, without spaces.

  • redirectobjectoptional

    Where the hosted verification sends the customer when it ends.

  • redirect.successUrlstringoptional

    HTTPS URL after a successful submission.

  • redirect.rejectUrlstringoptional

    HTTPS URL after a rejection.

  • kycobjectoptional

    Individuals only, and required for them: the verification data you hold for the person.

  • kyc.firstNamestringrequired

    1 to 100 characters.

  • kyc.middleNamestringoptional

    1 to 100 characters.

  • kyc.lastNamestringrequired

    1 to 100 characters.

  • kyc.dateOfBirthstringrequired

    YYYY-MM-DD.

  • kyc.nationalitystringrequired

    ISO 3166-1 alpha-2.

  • kyc.phonestringoptional

    E.164, for example +61412345678.

  • kyc.addressobjectrequired

    line1, city, state (the region name), postalCode and country (ISO 3166-1 alpha-2), all required.

  • kyc.idDocumentobjectrequired
  • kyc.idDocument.typestring PASSPORT DRIVERS_LICENSE NATIONAL_ID RESIDENCE_PERMITrequired
  • kyc.idDocument.countrystringrequired

    ISO 3166-1 alpha-2 country that issued it.

  • kyc.idDocument.frontImagestringrequired

    JPEG or PNG as a data URL: data:image/jpeg;base64,….

  • kyc.idDocument.backImagestringoptional

    JPEG or PNG as a data URL: data:image/jpeg;base64,….

  • kyc.selfieImagestringrequired

    JPEG or PNG as a data URL: data:image/jpeg;base64,….

Response · 201

  • idstringoptional

    Customer id.

  • externalIdstringoptional

    Your own id for the customer.

  • typestring individual businessoptional
  • statusstring pending active blockedoptional

    Customer status, see Statuses.

  • blockedobject | nulloptional

    While Locals or you block the customer: by (locals or tenant, that is you), reason and at. null when it is not blocked.

  • verificationobjectoptional
  • verification.statusstring | null processing action_required approved rejectedoptional

    Where the verification stands, see Verification status. null on a customer stored before this field, until Locals reads it again.

  • verification.reasonsarrayoptional

    Why the verification waits on the customer or was rejected, as lower case codes (bad_proof_of_identity…). [] otherwise.

  • verification.linkstring | nulloptional

    Hosted verification URL to send the customer to.

  • verification.levelsarrayoptional

    Being retired: use verification.status. Verification levels and their status.

  • capabilitiesarrayoptional

    What the customer can do: one per operation Locals offers, the ones it cannot do included. A route needs the route capability of its source currency enabled, a payout the payout capability. See Capabilities.

  • capabilities.operationstring payout routeoptional
  • capabilities.currencystring | nulloptional

    The source currency of the route (AUD, AED). null for payout.

  • capabilities.statusstring enabled processing action_required rejectedoptional

    action_required with no requirements: the customer finishes verification first if verification.status is action_required; otherwise Locals' support has to act, contact Locals.

  • capabilities.requirementsarrayoptional

    What is missing or was refused. [] when the capability is enabled.

  • capabilities.requirements.codestring name date_of_birth nationality email phone address id_document selfie liveness proof_of_address source_of_wealth questionnaire tax_id occupation business_documents beneficial_owners otheroptional
  • capabilities.requirements.statusstring missing rejectedoptional

    missing: not sent yet. rejected: sent and refused, send it again.

  • entitlementsarrayoptional

    Being retired: use capabilities. What the customer was granted once approved (virtual_account, base_payout).

  • versionintegeroptional

    Goes up with every change of the customer. A customer.updated with a lower version than the one you hold is older: ignore it.

  • createdAtstringoptional

    ISO 8601.

  • updatedAtstringoptional

    ISO 8601.

Errors

StatusWhen
400validation_failed: a field is missing or malformed, an individual without kyc, or kyc when your account does not send verification data.
403forbidden: Locals does not allow customers from that country.
409customer_exists: a customer with this externalId already exists.
413payload_too_large: the body is over 15 MB.
502upstream_unavailable or upstream_rejected: the banking partner did not answer or refused. The externalId stays free: retry.
503service_unavailable: with Retry-After, the banking partner is busy or failing and nothing was sent: send the request again after that many seconds. Without it, the customer could not be saved. Retry later.
curl -X POST https://api.locals.money/v1/customers \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "business",
    "email": "finance@harbour.example",
    "externalId": "acct_1042",
    "redirect": {
      "successUrl": "https://app.example/kyb/done"
    }
  }'
const res = await fetch('https://api.locals.money/v1/customers', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "type": "business",
    "email": "finance@harbour.example",
    "externalId": "acct_1042",
    "redirect": {
      "successUrl": "https://app.example/kyb/done"
    }
  }),
});
const data = await res.json();
Response · 201
{
  "id": "cus_8Hq2Lm",
  "externalId": "acct_1042",
  "type": "business",
  "status": "pending",
  "blocked": null,
  "verification": {
    "status": "action_required",
    "reasons": [],
    "link": "https://verify.locals.money/s/9f2c…",
    "levels": []
  },
  "capabilities": [
    {
      "operation": "payout",
      "currency": null,
      "status": "action_required",
      "requirements": []
    },
    {
      "operation": "route",
      "currency": "AUD",
      "status": "action_required",
      "requirements": []
    },
    {
      "operation": "route",
      "currency": "AED",
      "status": "action_required",
      "requirements": []
    }
  ],
  "entitlements": [
    {
      "name": "virtual_account",
      "status": "pending"
    },
    {
      "name": "base_payout",
      "status": "pending"
    }
  ],
  "version": 1,
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:12:44.120Z"
}

GET/v1/customersAvailable

List your customers, newest first.

Customers as Locals stored them: the verification is read live only by GET/v1/customers/{id}. A customer whose creation is still under way can show as pending without capabilities.

Path and query parameters

  • externalIdstringqueryoptional

    Find a customer by your own id.

  • statusstring pending active blockedqueryoptional

    One value. pending and active leave blocked customers out.

  • typestring individual businessqueryoptional
  • pageintegerqueryoptional

    Page number, from 1. Default 1. Not together with cursor.

  • limitintegerqueryoptional

    1 to 100. Default 20.

  • cursorstringqueryoptional

    The nextCursor of the previous answer, for the next page by cursor: newest created first, and a page by cursor has page, totalCount and totalPages set to null. A cursor that cannot be read, or one sent with page, is 400. See Pagination.

Errors

StatusWhen
400validation_failed: an unknown filter or value, or a cursor that cannot be read or sent with page.
curl https://api.locals.money/v1/customers?externalId=acct_1042 \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/customers?externalId=acct_1042', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "data": [
    {
      "id": "cus_8Hq2Lm",
      "externalId": "acct_1042",
      "type": "business",
      "status": "active",
      "blocked": null,
      "verification": {
        "status": "approved",
        "reasons": [],
        "link": "https://verify.locals.money/s/9f2c…",
        "levels": [
          {
            "level": "business_base",
            "status": "approved"
          }
        ]
      },
      "capabilities": [
        {
          "operation": "payout",
          "currency": null,
          "status": "enabled",
          "requirements": []
        },
        {
          "operation": "route",
          "currency": "AUD",
          "status": "enabled",
          "requirements": []
        },
        {
          "operation": "route",
          "currency": "AED",
          "status": "action_required",
          "requirements": []
        }
      ],
      "entitlements": [
        {
          "name": "virtual_account",
          "status": "approved"
        },
        {
          "name": "base_payout",
          "status": "approved"
        }
      ],
      "version": 4,
      "createdAt": "2026-10-21T09:12:44.120Z",
      "updatedAt": "2026-10-21T09:44:52.318Z"
    }
  ],
  "page": 1,
  "totalCount": 1,
  "totalPages": 1,
  "hasMore": false,
  "nextCursor": null
}

GET/v1/customers/{id}Available

Retrieve a customer with its verification and capabilities.

Verification is read live on every call, so this returns the current state; if the banking partner does not answer, you get the last state Locals stored. verification.link stays the one issued on creation.

Path and query parameters

  • idstringpathrequired

    Customer id.

Errors

StatusWhen
404not_found: no customer with this id.
curl https://api.locals.money/v1/customers/cus_8Hq2Lm \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/customers/cus_8Hq2Lm', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "id": "cus_8Hq2Lm",
  "externalId": "acct_1042",
  "type": "business",
  "status": "active",
  "blocked": null,
  "verification": {
    "status": "approved",
    "reasons": [],
    "link": "https://verify.locals.money/s/9f2c…",
    "levels": [
      {
        "level": "business_base",
        "status": "approved"
      }
    ]
  },
  "capabilities": [
    {
      "operation": "payout",
      "currency": null,
      "status": "enabled",
      "requirements": []
    },
    {
      "operation": "route",
      "currency": "AUD",
      "status": "enabled",
      "requirements": []
    },
    {
      "operation": "route",
      "currency": "AED",
      "status": "action_required",
      "requirements": []
    }
  ],
  "entitlements": [
    {
      "name": "virtual_account",
      "status": "approved"
    },
    {
      "name": "base_payout",
      "status": "approved"
    }
  ],
  "version": 4,
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:44:52.318Z"
}

PATCH/v1/customers/{id}Available

Change a customer's email or verification data.

Only what you send changes. kyc takes any of the fields of kyc on creation, with the same rules; address and idDocument go whole. It is for individuals of partners whose compliance agreement allows sending verification data: other partners, and business customers, get 400 on kyc.

New verification data can start a new review: the answer carries the verification read right after the change, and Locals sends customer.updated when it changes. This endpoint takes bodies up to 15 MB, for the images in kyc.

Path and query parameters

  • idstringpathrequired

    Customer id.

Request body

  • emailstringoptional

    Contact email of the customer. Up to 254 characters.

  • kycobjectoptional

    Individuals only: the verification data to change. Any of firstName, middleName, lastName, dateOfBirth, nationality, phone, address, idDocument and selfieImage, in the formats of POST/v1/customers.

Errors

StatusWhen
400validation_failed: nothing to change, a field is malformed, or kyc on a business customer or when your account does not send verification data.
403customer_blocked: the customer is blocked. forbidden: Locals does not allow customers from that country.
404not_found: no customer with this id.
413payload_too_large: the body is over 15 MB.
422customer_not_ready: the customer is still being created.
502upstream_unavailable or upstream_rejected: the banking partner did not answer or refused. Nothing changed on a refusal. When it did not answer, send the same changes again: they leave the customer the same.
503service_unavailable: with Retry-After, the banking partner is busy or failing and nothing was sent: send the request again after that many seconds.
curl -X PATCH https://api.locals.money/v1/customers/cus_8Hq2Lm \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "jane.doe@example.com",
    "kyc": {
      "lastName": "Smith",
      "address": {
        "line1": "2 Pitt St",
        "city": "Sydney",
        "state": "NSW",
        "postalCode": "2001",
        "country": "AU"
      }
    }
  }'
const res = await fetch('https://api.locals.money/v1/customers/cus_8Hq2Lm', {
  method: 'PATCH',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "email": "jane.doe@example.com",
    "kyc": {
      "lastName": "Smith",
      "address": {
        "line1": "2 Pitt St",
        "city": "Sydney",
        "state": "NSW",
        "postalCode": "2001",
        "country": "AU"
      }
    }
  }),
});
const data = await res.json();
Response · 200
{
  "id": "cus_8Hq2Lm",
  "externalId": "acct_1042",
  "type": "individual",
  "status": "pending",
  "blocked": null,
  "verification": {
    "status": "processing",
    "reasons": [],
    "link": null,
    "levels": [
      {
        "level": "individual_base",
        "status": "in_progress"
      }
    ]
  },
  "capabilities": [
    {
      "operation": "payout",
      "currency": null,
      "status": "processing",
      "requirements": []
    },
    {
      "operation": "route",
      "currency": "AUD",
      "status": "processing",
      "requirements": []
    },
    {
      "operation": "route",
      "currency": "AED",
      "status": "action_required",
      "requirements": []
    }
  ],
  "entitlements": [
    {
      "name": "virtual_account",
      "status": "pending"
    },
    {
      "name": "base_payout",
      "status": "pending"
    }
  ],
  "version": 2,
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-28T10:05:13.402Z"
}

GET/v1/customers/{id}/limitsAvailable

What the customer can still move, against the limits Locals sets.

Limits are in USD, per operation, for the last 24 hours (daily) and for the last 30 days (monthly), both rolling, separately for deposits (onramp) and payouts (offramp). customer are the customer's own limits and tenant the cap on your whole volume. A limit of null is no limit, and then remaining is null too. See Limits and blocks.

Path and query parameters

  • idstringpathrequired

    Customer id.

Response · 200

  • customerIdstringoptional
  • currencystringoptional

    Always USD. USDC and USDT count 1:1.

  • onrampobjectoptional

    Deposits into the customer's routes.

  • onramp.blockedbooleanoptional

    true while the customer is blocked, or has a deposit over a limit that Locals has not reviewed yet.

  • onramp.availablestring | nulloptional

    The most one operation can move now. null: no limit; "0" while blocked.

  • onramp.customerobjectoptional

    perOperation, and daily and monthly, each with limit, used and remaining.

  • onramp.tenantobjectoptional

    The cap on your whole volume, in the same shape.

  • offrampobjectoptional

    Payouts of the customer, in the same shape. blocked is true while the customer is blocked.

  • asOfstringoptional

    ISO 8601. When the volume was measured: used, remaining and available are as of then. A payout is checked again when it is made, never against this answer.

Errors

StatusWhen
404not_found: no customer with this id.
curl https://api.locals.money/v1/customers/cus_8Hq2Lm/limits \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/customers/cus_8Hq2Lm/limits', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "customerId": "cus_8Hq2Lm",
  "currency": "USD",
  "onramp": {
    "blocked": false,
    "available": "10000",
    "customer": {
      "perOperation": "10000",
      "daily": {
        "limit": "25000",
        "used": "12500.00",
        "remaining": "12500.00"
      },
      "monthly": {
        "limit": "100000",
        "used": "12500.00",
        "remaining": "87500.00"
      }
    },
    "tenant": {
      "perOperation": null,
      "daily": {
        "limit": null,
        "used": "48200.00",
        "remaining": null
      },
      "monthly": {
        "limit": "2000000",
        "used": "310400.00",
        "remaining": "1689600.00"
      }
    }
  },
  "offramp": {
    "blocked": false,
    "available": "800.00",
    "customer": {
      "perOperation": "5000",
      "daily": {
        "limit": "8000",
        "used": "7200.00",
        "remaining": "800.00"
      },
      "monthly": {
        "limit": "50000",
        "used": "21000.00",
        "remaining": "29000.00"
      }
    },
    "tenant": {
      "perOperation": null,
      "daily": {
        "limit": null,
        "used": "95000.00",
        "remaining": null
      },
      "monthly": {
        "limit": null,
        "used": "402000.00",
        "remaining": null
      }
    }
  },
  "asOf": "2026-10-21T10:15:30.512Z"
}

Routes

A route is a virtual account: local bank details that belong to one customer and settle every deposit to a stablecoin address. Locals cuts a route (blocked: true) while its customer is blocked or over a deposit limit. See Routes.

POST/v1/routesAvailable

Open a route: local bank details that settle in USDC or USDT on an EVM chain.

If the customer already has a pending or active route with the same source currency and the same destination (currency, chain and address), that route is returned with 200 instead of creating a new one; an inactive or closed route is not reused.

A new route starts as pending and becomes active within minutes. Show the depositInstructions to your customer only once the route is active and not blocked.

Request body

  • customerIdstringrequired

    A customer with the route capability of the source currency enabled.

  • sourceobjectrequired
  • source.currencystring AUD AEDrequired

    Currency the customer pays in. AED needs its own route capability and is not live yet; see Coverage.

  • destinationobjectrequired
  • destination.currencystring USDC USDTrequired

    Stablecoin each deposit settles in.

  • destination.chainstring arbitrum avalanche base ethereum optimism polygonrequired

    EVM chain the stablecoin is sent on. Other chains, such as solana or tron, are 400.

  • destination.addressstringrequired

    EVM address (0x and 40 hex characters) that receives the settlement.

Response · 201

  • idstringoptional
  • customerIdstringoptional
  • statusstring pending active inactive closedoptional
  • blockedbooleanoptional

    true while Locals has cut the route: its customer is blocked, or went over a deposit limit. Do not show the deposit instructions while it is true.

  • sourceobjectoptional

    currency and rail the customer pays with.

  • destinationobjectoptional

    currency, chain and address that receive the settlement.

  • depositInstructionsobjectoptional

    Bank details to show the customer. Only the keys that apply to the currency are present: accountName, bankName, accountNumber, routingNumber (BSB in Australia), iban, bic, bankAddress.

  • whitelistobject | nulloptional

    AUD routes: the one sending account deposits are credited from, id, accountNumber (masked), bsbNumber, bankName and status, the same as GET/v1/routes/{id}/whitelist; null when there is none, and always on AED routes. Its status is disabled while the route is cut and the banking partner sends deposits back. A change of the account sends no event: read the route.

  • createdAtstringoptional

    ISO 8601.

  • updatedAtstringoptional

    ISO 8601.

Errors

StatusWhen
400validation_failed: missing field, invalid address, unsupported currency or chain.
403customer_blocked: the customer is blocked. forbidden: Locals does not allow the destination wallet.
404not_found: unknown customerId.
422customer_not_ready: the customer is still being created, or its route capability of the source currency is not enabled, for example "Customer cus_8Hq2Lm is not enabled for AUD routes (processing)". limit_exceeded: a deposit of the customer, or of your account past its cap, went over a limit and Locals has not reviewed it yet.
429rate_limited: more than 10 requests for the same route are waiting at once. Nothing was done: send it again after Retry-After seconds.
502upstream_unavailable or upstream_rejected: the banking partner did not answer or refused.
503service_unavailable with Retry-After: the request waited too long behind others for the same route, or the banking partner is busy or failing. Nothing was done: send it again after Retry-After seconds.
curl -X POST https://api.locals.money/v1/routes \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": "cus_8Hq2Lm",
    "source": {
      "currency": "AUD"
    },
    "destination": {
      "currency": "USDC",
      "chain": "polygon",
      "address": "0x7a3f0000000000000000000000000000000091c2"
    }
  }'
const res = await fetch('https://api.locals.money/v1/routes', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "customerId": "cus_8Hq2Lm",
    "source": {
      "currency": "AUD"
    },
    "destination": {
      "currency": "USDC",
      "chain": "polygon",
      "address": "0x7a3f0000000000000000000000000000000091c2"
    }
  }),
});
const data = await res.json();
Response · 201
{
  "id": "route_3f9a",
  "customerId": "cus_8Hq2Lm",
  "status": "pending",
  "blocked": false,
  "source": {
    "currency": "AUD",
    "rail": "local_transfer"
  },
  "destination": {
    "currency": "USDC",
    "chain": "polygon",
    "address": "0x7a3f0000000000000000000000000000000091c2"
  },
  "depositInstructions": {
    "accountName": "Harbour & Co",
    "bankName": "Partner bank AU",
    "accountNumber": "12345678",
    "routingNumber": "000-000"
  },
  "whitelist": null,
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:12:44.120Z"
}

GET/v1/routesAvailable

List routes, newest first.

Routes as Locals stored them: GET/v1/routes/{id} refreshes a pending route.

Path and query parameters

  • customerIdstringqueryoptional

    Only this customer's routes.

  • statusstringqueryoptional

    Comma-separated or repeated: pending, active, inactive, closed.

  • pageintegerqueryoptional

    Page number, from 1. Default 1. Not together with cursor.

  • limitintegerqueryoptional

    1 to 100. Default 20.

  • cursorstringqueryoptional

    The nextCursor of the previous answer, for the next page by cursor: newest created first, and a page by cursor has page, totalCount and totalPages set to null. A cursor that cannot be read, or one sent with page, is 400. See Pagination.

Errors

StatusWhen
400validation_failed: an unknown filter or value, or a cursor that cannot be read or sent with page.
curl https://api.locals.money/v1/routes?customerId=cus_8Hq2Lm&status=active \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/routes?customerId=cus_8Hq2Lm&status=active', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "data": [
    {
      "id": "route_3f9a",
      "status": "active",
      "blocked": false,
      "source": {
        "currency": "AUD",
        "rail": "local_transfer"
      }
    }
  ],
  "page": 1,
  "totalCount": 1,
  "totalPages": 1,
  "hasMore": false,
  "nextCursor": null
}

GET/v1/routes/{id}Available

Retrieve a route. A pending route is refreshed before it is returned.

Path and query parameters

  • idstringpathrequired

Errors

StatusWhen
404not_found: no route with this id.
curl https://api.locals.money/v1/routes/route_3f9a \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/routes/route_3f9a', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "id": "route_3f9a",
  "customerId": "cus_8Hq2Lm",
  "status": "active",
  "blocked": false,
  "source": {
    "currency": "AUD",
    "rail": "local_transfer"
  },
  "destination": {
    "currency": "USDC",
    "chain": "polygon",
    "address": "0x7a3f0000000000000000000000000000000091c2"
  },
  "depositInstructions": {
    "accountName": "Harbour & Co",
    "bankName": "Partner bank AU",
    "accountNumber": "12345678",
    "routingNumber": "000-000"
  },
  "whitelist": {
    "id": "wl_4410",
    "accountNumber": "••••4321",
    "bsbNumber": "062-000",
    "bankName": "Commonwealth Bank of Australia",
    "status": "enabled"
  },
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:14:03.551Z"
}

GET/v1/routes/{id}/reconciliationAvailable

Compare the deposits Locals recorded on a route with the bank's view.

Covers the latest 100 deposits. deposits is the bank's view of the account. differences lists what does not match: a deposit whose status at Locals differs from the bank's, a deposit the bank shows that Locals has not recorded (recorded is null), or a recorded transfer the bank does not list (bank is null). It is empty when both sides agree.

Path and query parameters

  • idstringpathrequired

Response · 200

  • routeIdstringoptional
  • differencesarrayoptional

    transferId (null when Locals has not recorded the deposit), depositedAt, amount, currency, recorded (the status at Locals) and bank (the status at the bank).

  • depositsarrayoptional

    transferId (null when not recorded), status, depositedAt, amount and currency, as the bank shows them.

Errors

StatusWhen
404not_found: no route with this id.
502upstream_unavailable: the bank's history could not be read. Retry.
curl https://api.locals.money/v1/routes/route_3f9a/reconciliation \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/routes/route_3f9a/reconciliation', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "routeId": "route_3f9a",
  "differences": [
    {
      "transferId": "trf_a20c",
      "depositedAt": "2026-10-21T10:02:15Z",
      "amount": "640.00",
      "currency": "AUD",
      "recorded": "processing",
      "bank": "complete"
    }
  ],
  "deposits": [
    {
      "transferId": "trf_a20c",
      "status": "complete",
      "depositedAt": "2026-10-21T10:02:15Z",
      "amount": "640.00",
      "currency": "AUD"
    },
    {
      "transferId": "trf_91kd",
      "status": "complete",
      "depositedAt": "2026-10-21T09:41:07Z",
      "amount": "12500.00",
      "currency": "AUD"
    }
  ]
}

GET/v1/routes/{id}/whitelistAvailable

List the sending accounts allowed to pay into an AUD route.

Only AUD routes have an allow-list. Account numbers come back masked; bankName is the bank of the BSB, from the official BSB directory, or null when the BSB is not in it. The route carries the same account in whitelist.

Path and query parameters

  • idstringpathrequired

Errors

StatusWhen
400validation_failed: the route is not an AUD route.
404not_found: no route with this id.
curl https://api.locals.money/v1/routes/route_3f9a/whitelist \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/routes/route_3f9a/whitelist', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "data": [
    {
      "id": "wl_4410",
      "accountNumber": "••••4321",
      "bsbNumber": "062-000",
      "bankName": "Commonwealth Bank of Australia",
      "status": "enabled"
    }
  ]
}

POST/v1/routes/{id}/whitelistAvailable

Allow the account your customer pays from (Australia).

One allowed sending account per Australian route: once a route has one, deposits from any other account are returned to the sender. 201 when it is added, 200 when it is already the allowed account, and a different account replaces the current one (200).

Refused while the route is cut (blocked: true): allowing an account would let deposits in again.

Path and query parameters

  • idstringpathrequired

Request body

  • accountNumberstringrequired

    4 to 12 digits.

  • bsbNumberstringrequired

    000-000 or 000000.

Response · 201

  • idstringoptional
  • accountNumberstringoptional

    Masked: the last 4 digits.

  • bsbNumberstringoptional

    000-000.

  • bankNamestring | nulloptional

    The bank of the BSB, from the official BSB directory; null when the BSB is not in it.

  • statusstringoptional

    enabled once the account is allowed; disabled while the route is cut and the banking partner sends deposits back.

Errors

StatusWhen
400validation_failed: account or BSB malformed, or the route is not an AUD route.
403customer_blocked: the customer is blocked.
404not_found: no route with this id.
409conflict: the route is cut.
422limit_exceeded: a deposit over a limit is waiting for Locals' review.
curl -X POST https://api.locals.money/v1/routes/route_3f9a/whitelist \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "accountNumber": "87654321",
    "bsbNumber": "062-000"
  }'
const res = await fetch('https://api.locals.money/v1/routes/route_3f9a/whitelist', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "accountNumber": "87654321",
    "bsbNumber": "062-000"
  }),
});
const data = await res.json();
Response · 201
{
  "id": "wl_4410",
  "accountNumber": "••••4321",
  "bsbNumber": "062-000",
  "bankName": "Commonwealth Bank of Australia",
  "status": "enabled"
}

Quotes

A quote prices a payout before you commit: what you send, what arrives, the rate and the fees, until it expires. See Transfers and payouts.

POST/v1/quotesAvailable

Price a payout from USDC or USDT to a local currency.

Quotes are short-lived: accept one with POST/v1/transfers before expiresAt, or request a new one. A quote belongs to your account and to no customer until you accept it.

The quote is checked against the cap on your whole payout volume; the customer's own limits are checked when you accept it.

Request body

  • sourceobjectrequired
  • source.currencystring USDC USDTrequired

    Stablecoin you send. Only these two: limits are measured in USD.

  • source.chainstring arbitrum avalanche base ethereum optimism polygon solana tronrequired
  • source.amountstringrequired

    Decimal string, major units.

  • destinationobjectrequired
  • destination.currencystringrequired

    ISO 4217 code of the local currency that arrives, e.g. PHP.

  • destination.countrystringrequired

    ISO 3166-1 alpha-2 country of the receiving bank.

  • destination.railstring bank swiftrequired

    swift is for business customers.

Response · 201

  • idstringoptional
  • sourceobjectoptional

    amount, currency, chain.

  • destinationobjectoptional

    amount, currency, rail that arrive.

  • ratenumber | nulloptional

    Destination units per source unit. null when no rate is given.

  • feesobjectoptional

    fxFee, platformFee, paymentMethodFee and networkFee when they apply, each with amount and currency, and total.

  • localsFeeobject | nulloptional

    Locals' fee on this payout: percent, and amount and currency (that percentage of source.amount, in its currency). Billed to you on your statement, not taken from the payout: source.amount and destination.amount do not include it. null when you have none.

  • tenantFeeobject | nulloptional

    Your own fee on this payout, in the same shape. Always null for now: the banking partner cannot collect it on the quote yet.

  • expiresAtstringoptional

    ISO 8601. After this, the quote cannot be accepted.

Errors

StatusWhen
400validation_failed: unsupported chain, a source currency other than USDC or USDT, or a malformed amount.
403forbidden: Locals does not allow payouts to that country.
422limit_exceeded: the payout would go over the cap on your volume. The body says which limit and what is left.
502upstream_rejected or upstream_unavailable: the banking partner refused the quote or did not answer. Quote the reference in the message when you contact us.
503service_unavailable with Retry-After: the banking partner is busy or failing. Nothing was sent: request the quote again after Retry-After seconds.
curl -X POST https://api.locals.money/v1/quotes \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "source": {
      "currency": "USDC",
      "chain": "polygon",
      "amount": "3200.00"
    },
    "destination": {
      "currency": "PHP",
      "country": "PH",
      "rail": "bank"
    }
  }'
const res = await fetch('https://api.locals.money/v1/quotes', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "source": {
      "currency": "USDC",
      "chain": "polygon",
      "amount": "3200.00"
    },
    "destination": {
      "currency": "PHP",
      "country": "PH",
      "rail": "bank"
    }
  }),
});
const data = await res.json();
Response · 201
{
  "id": "quo_7d2e",
  "source": {
    "amount": "3200.00",
    "currency": "USDC",
    "chain": "polygon"
  },
  "destination": {
    "amount": "182400.00",
    "currency": "PHP",
    "rail": "bank"
  },
  "rate": 57,
  "fees": {
    "total": {
      "amount": "0.00",
      "currency": "USDC"
    }
  },
  "localsFee": {
    "percent": "0.3",
    "amount": "9.60",
    "currency": "USDC"
  },
  "tenantFee": null,
  "expiresAt": "2026-10-21T09:27:44Z"
}

Transfers

A transfer is money moving. kind: route transfers are deposits into a route; kind: quoted transfers are payouts created from a quote. Both share one status model.

POST/v1/transfersAvailable

Accept a quote and get the exact funding instructions.

Send the exact depositInstructions.amount to depositInstructions.address on the quoted chain. The payout starts when the funds arrive.

One transfer per quote: retrying with the same quote, customer, purpose code and payout account (every field) returns the transfer already created with 200, also after the quote expired. The same quote with any other detail is 409 quote_already_used, even when the first request got no answer. A payout account the banking partner refuses frees the quote, so a corrected account can use it.

The customer's limits and blocks are checked before the banking partner is called.

Request body

  • customerIdstringrequired

    A customer with the payout capability enabled.

  • quoteIdstringrequired

    An unexpired quote.

  • purposeCodestringrequired

    Why the money moves: one of the purpose codes, e.g. TRANSFER_TO_OWN_ACCOUNT.

  • payoutAccountobjectrequired

    The bank account that receives the money.

  • payoutAccount.accountHolderNamestringrequired

    1 to 140 characters.

  • payoutAccount.accountNumberstringoptional

    Required unless iban is sent. 4 to 34 letters, digits, spaces or dashes.

  • payoutAccount.ibanstringoptional

    Required unless accountNumber is sent.

  • payoutAccount.bankNamestringrequired

    1 to 140 characters.

  • payoutAccount.bankCountrystringrequired

    ISO 3166-1 alpha-2.

  • payoutAccount.currencystringrequired

    The quote's destination.currency; any other is 400.

  • payoutAccount.recipientTypestring individual businessoptional

    Required for AED, CAD, EUR, GBP, MXN and USD. See Payout accounts.

  • payoutAccount.dateOfBirthstringoptional

    YYYY-MM-DD. Required for individual recipients in AED, CAD, EUR, GBP, MXN and USD.

  • payoutAccount.accountTypestring savings checking paymentoptional
  • payoutAccount.swiftCodestringoptional

    8 or 11 characters.

  • payoutAccount.bicCodestringoptional

    8 or 11 characters.

  • payoutAccount.bsbCodestringoptional

    000-000 or 000000.

  • payoutAccount.abaCodestringoptional

    9 digits.

  • payoutAccount.sortCodestringoptional

    00-00-00 or 000000.

  • payoutAccount.addressobjectoptional

    Optional: street, city, state, postalCode and country, all required when you send it.

Response · 201

  • idstringoptional
  • kindstring route quotedoptional
  • customerIdstringoptional
  • routeIdstring | nulloptional

    Set for deposits; null for quoted payouts.

  • statusstring pending processing review complete refunding refunded failedoptional
  • sourceobjectoptional

    amount, currency, rail; deposits add reference and senderName.

  • destinationobjectoptional

    amount, currency, rail; settlements add address and txHash.

  • quoteobject | nulloptional

    id, rate, expiresAt for quoted transfers.

  • depositInstructionsobject | nulloptional

    Single-use address, exact amount, currency, chain to fund a quoted transfer.

  • payoutAccountobject | nulloptional

    bankName, accountHolderName, last4, country, currency. Full numbers are never returned.

  • refundReasonstring | nulloptional

    Why the transfer failed or was refunded; null otherwise.

  • actionRequiredobject | nulloptional

    What the end user has to do for a held payout to go on: type (wallet_verification), url and expiresAt. null otherwise. See Wallet verification.

  • statusHistoryarrayoptional

    Every status the transfer went through, with at timestamps.

  • createdAtstringoptional

    ISO 8601.

  • updatedAtstringoptional

    ISO 8601.

Errors

StatusWhen
400validation_failed: missing or malformed payout account fields, recipientType or dateOfBirth missing for the currency, a payoutAccount.currency other than the quote's, or a payout account the banking partner refused (with a reference).
403customer_blocked: the customer is blocked. forbidden: Locals does not allow the bank country, the address country or the account.
404not_found: unknown quote or customer.
409quote_already_used: the quote is already used for another customer, purpose code or account. operation_in_doubt: what became of an earlier attempt of the same payout at the banking partner is not known yet; nothing was sent this time and the quote stays taken by that payout. Send the same payout again later: it is looked up again. Not kept for the Idempotency-Key, so a retry with the same key runs again. If it does not settle, contact Locals with the quote id.
422quote_expired, customer_not_ready (the customer is still being created, or its payout capability is not enabled: "Customer cus_8Hq2Lm is not enabled for payouts (processing)"), or limit_exceeded with the limit and what is left.
429rate_limited: more than 10 requests for the same quote are waiting at once. Nothing was done: send it again after Retry-After seconds.
502upstream_unavailable or upstream_rejected: the banking partner did not answer or refused. Retry with the same body: one quote is one transfer.
503service_unavailable with Retry-After: the request waited too long behind others for the same quote, or the banking partner is busy or failing. Nothing was done and the quote is not used: send the same request again after Retry-After seconds.
curl -X POST https://api.locals.money/v1/transfers \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": "cus_8Hq2Lm",
    "quoteId": "quo_7d2e",
    "purposeCode": "TRANSFER_TO_OWN_ACCOUNT",
    "payoutAccount": {
      "accountHolderName": "Maria Santos",
      "accountNumber": "000123456789",
      "bankName": "Sample Bank PH",
      "bankCountry": "PH",
      "currency": "PHP"
    }
  }'
const res = await fetch('https://api.locals.money/v1/transfers', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "customerId": "cus_8Hq2Lm",
    "quoteId": "quo_7d2e",
    "purposeCode": "TRANSFER_TO_OWN_ACCOUNT",
    "payoutAccount": {
      "accountHolderName": "Maria Santos",
      "accountNumber": "000123456789",
      "bankName": "Sample Bank PH",
      "bankCountry": "PH",
      "currency": "PHP"
    }
  }),
});
const data = await res.json();
Response · 201
{
  "id": "trf_4b7q",
  "kind": "quoted",
  "customerId": "cus_8Hq2Lm",
  "routeId": null,
  "status": "pending",
  "source": {
    "amount": "3200.00",
    "currency": "USDC",
    "rail": "polygon"
  },
  "destination": {
    "amount": "182400.00",
    "currency": "PHP",
    "rail": "bank"
  },
  "quote": {
    "id": "quo_7d2e",
    "rate": 57,
    "expiresAt": "2026-10-21T09:27:44Z"
  },
  "depositInstructions": {
    "address": "0x91c2000000000000000000000000000000007a3f",
    "amount": "3200.00",
    "currency": "USDC",
    "chain": "polygon"
  },
  "payoutAccount": {
    "bankName": "Sample Bank PH",
    "accountHolderName": "Maria Santos",
    "last4": "6789",
    "country": "PH",
    "currency": "PHP"
  },
  "refundReason": null,
  "actionRequired": null,
  "statusHistory": [
    {
      "status": "pending",
      "at": "2026-10-21T09:13:02Z"
    }
  ],
  "createdAt": "2026-10-21T09:13:02.207Z",
  "updatedAt": "2026-10-21T09:13:02.207Z"
}

GET/v1/transfersAvailable

List transfers, most recently updated first.

By page, sorted by the time of each transfer's latest update at the banking partner. By cursor, newest created first: the nextCursor of an answer by page starts that walk from the newest transfer, so drop duplicates by id.

Path and query parameters

  • kindstring route quotedqueryoptional
  • customerIdstringqueryoptional
  • routeIdstringqueryoptional

    Deposits of one route.

  • statusstringqueryoptional

    Comma-separated statuses.

  • pageintegerqueryoptional

    Page number, from 1. Default 1. Not together with cursor.

  • limitintegerqueryoptional

    1 to 100. Default 20.

  • cursorstringqueryoptional

    The nextCursor of the previous answer, for the next page by cursor: newest created first, and a page by cursor has page, totalCount and totalPages set to null. A cursor that cannot be read, or one sent with page, is 400. See Pagination.

Errors

StatusWhen
400validation_failed: an unknown filter or value, or a cursor that cannot be read or sent with page.
curl https://api.locals.money/v1/transfers?kind=quoted&status=processing,review \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/transfers?kind=quoted&status=processing,review', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "data": [
    {
      "id": "trf_91kd",
      "kind": "route",
      "routeId": "route_3f9a",
      "status": "complete",
      "source": {
        "amount": "12500.00",
        "currency": "AUD",
        "reference": "HC-2210"
      },
      "destination": {
        "amount": "8137.50",
        "currency": "USDC",
        "txHash": "0x5e0c…a7d4"
      }
    }
  ],
  "page": 1,
  "totalCount": 1,
  "totalPages": 1,
  "hasMore": false,
  "nextCursor": null
}

GET/v1/transfers/{id}Available

Retrieve a transfer with its status history.

Path and query parameters

  • idstringpathrequired

Errors

StatusWhen
404not_found: no transfer with this id.
curl https://api.locals.money/v1/transfers/trf_91kd \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/transfers/trf_91kd', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "id": "trf_91kd",
  "kind": "route",
  "customerId": "cus_8Hq2Lm",
  "routeId": "route_3f9a",
  "status": "complete",
  "source": {
    "amount": "12500.00",
    "currency": "AUD",
    "rail": "local_transfer",
    "reference": "HC-2210",
    "senderName": "HARBOUR AND CO"
  },
  "destination": {
    "amount": "8137.50",
    "currency": "USDC",
    "rail": "polygon",
    "address": "0x7a3f0000000000000000000000000000000091c2",
    "txHash": "0x5e0c…a7d4"
  },
  "refundReason": null,
  "actionRequired": null,
  "statusHistory": [
    {
      "status": "processing",
      "at": "2026-10-21T09:41:07Z"
    },
    {
      "status": "complete",
      "at": "2026-10-21T09:44:52Z"
    }
  ],
  "createdAt": "2026-10-21T09:41:07.903Z",
  "updatedAt": "2026-10-21T09:44:52.318Z"
}

Events

Locals tells you when something changes by sending signed events to your HTTPS endpoints. Each event has an id, and GET/v1/events lists them to catch up. See Events.

POST/v1/webhook-endpointsAvailable

Register an HTTPS endpoint that receives events.

Up to 10 active endpoints per account. The response carries the signing secret, shown only here: store it with your other secrets.

Request body

  • urlstringrequired

    Public HTTPS URL, up to 2048 characters, without credentials or a fragment. Private and reserved addresses are refused.

  • eventsarrayoptional

    Event types to send, without repeats. Leave it out to receive every type.

Response · 201

  • idstringoptional
  • urlstringoptional
  • eventsarrayoptional

    The event types it receives. Empty: every type.

  • statusstring active disabledoptional
  • disabledReasonstring | nulloptional

    Why it is disabled: deleted, or every delivery failed for 3 days.

  • secretsarrayoptional

    id, prefix (the first 10 characters) and createdAt of each signing secret, never the secret itself.

  • createdAtstringoptional

    ISO 8601.

  • updatedAtstringoptional

    ISO 8601.

  • secretstringoptional

    The signing secret, whsec_…. Only in this response.

Errors

StatusWhen
400validation_failed: url is not public HTTPS or has credentials or a fragment, or an unknown event type.
409conflict: you already have 10 active endpoints.
curl -X POST https://api.locals.money/v1/webhook-endpoints \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://app.example/hooks/locals",
    "events": [
      "transfer.completed",
      "route.activated"
    ]
  }'
const res = await fetch('https://api.locals.money/v1/webhook-endpoints', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://app.example/hooks/locals",
    "events": [
      "transfer.completed",
      "route.activated"
    ]
  }),
});
const data = await res.json();
Response · 201
{
  "id": "we_2c81",
  "url": "https://app.example/hooks/locals",
  "events": [
    "transfer.completed",
    "route.activated"
  ],
  "status": "active",
  "disabledReason": null,
  "secrets": [
    {
      "id": "whs_51ad",
      "prefix": "whsec_AbCd",
      "createdAt": "2026-10-21T09:12:44.120Z"
    }
  ],
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:12:44.120Z",
  "secret": "whsec_…"
}

GET/v1/webhook-endpointsAvailable

List your endpoints, newest first, deleted ones included.

curl https://api.locals.money/v1/webhook-endpoints \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/webhook-endpoints', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "data": [
    {
      "id": "we_2c81",
      "url": "https://app.example/hooks/locals",
      "events": [
        "transfer.completed",
        "route.activated"
      ],
      "status": "active",
      "disabledReason": null,
      "secrets": [
        {
          "id": "whs_51ad",
          "prefix": "whsec_AbCd",
          "createdAt": "2026-10-21T09:12:44.120Z"
        }
      ],
      "createdAt": "2026-10-21T09:12:44.120Z",
      "updatedAt": "2026-10-21T09:12:44.120Z"
    }
  ]
}

DELETE/v1/webhook-endpoints/{id}Available

Delete an endpoint: it stops receiving events.

The endpoint is kept as disabled, with disabledReason: "Deleted", so its deliveries stay readable. Repeating the call answers 200 again.

Path and query parameters

  • idstringpathrequired

    Endpoint id.

Errors

StatusWhen
404not_found: no endpoint with this id.
curl -X DELETE https://api.locals.money/v1/webhook-endpoints/we_2c81 \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "id": "we_2c81",
  "url": "https://app.example/hooks/locals",
  "events": [
    "transfer.completed",
    "route.activated"
  ],
  "status": "disabled",
  "disabledReason": "Deleted",
  "secrets": [
    {
      "id": "whs_51ad",
      "prefix": "whsec_AbCd",
      "createdAt": "2026-10-21T09:12:44.120Z"
    }
  ],
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:44:52.318Z"
}

POST/v1/webhook-endpoints/{id}/secretsAvailable

Rotation, step 1: add a second signing secret.

While an endpoint has two secrets, every event is signed with both: see Rotate the secret. At most two per endpoint. No body.

Path and query parameters

  • idstringpathrequired

    Endpoint id.

Response · 201

  • idstringoptional

    Secret id, to retire it later.

  • prefixstringoptional

    The first 10 characters, as the endpoint lists it.

  • createdAtstringoptional

    ISO 8601.

  • secretstringoptional

    The new signing secret. Only in this response.

Errors

StatusWhen
404not_found: no endpoint with this id.
409conflict: the endpoint already has two secrets, or it is deleted.
curl -X POST https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
  },
});
const data = await res.json();
Response · 201
{
  "id": "whs_7e30",
  "prefix": "whsec_Zx9q",
  "createdAt": "2026-10-21T09:44:52.318Z",
  "secret": "whsec_…"
}

DELETE/v1/webhook-endpoints/{id}/secrets/{secretId}Available

Rotation, step 2: retire a signing secret.

Retire the old secret once your receiver checks the new one. The last secret cannot be retired. Answers the endpoint.

Path and query parameters

  • idstringpathrequired

    Endpoint id.

  • secretIdstringpathrequired

    Secret id, from secrets.

Errors

StatusWhen
404not_found: unknown endpoint or secret.
409conflict: it is the last secret.
curl -X DELETE https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets/whs_51ad \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets/whs_51ad', {
  method: 'DELETE',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "id": "we_2c81",
  "url": "https://app.example/hooks/locals",
  "events": [
    "transfer.completed",
    "route.activated"
  ],
  "status": "active",
  "disabledReason": null,
  "secrets": [
    {
      "id": "whs_7e30",
      "prefix": "whsec_Zx9q",
      "createdAt": "2026-10-21T09:44:52.318Z"
    }
  ],
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:44:52.318Z"
}

POST/v1/webhook-endpoints/{id}/testAvailable

Send a signed test event to one endpoint, now.

Sends a webhook.test event, with data: { endpointId }, to that endpoint only, whatever event types it takes, signed like every other event. Answers with the result, 200 also when the endpoint failed. The test event is not stored, not retried and not listed in GET/v1/events. Works on an endpoint disabled after failures, not on a deleted one. No body.

Path and query parameters

  • idstringpathrequired

    Endpoint id.

Response · 200

  • eventIdstringoptional
  • okbooleanoptional

    true when the endpoint answered 2xx in time.

  • statusCodeinteger | nulloptional

    What the endpoint answered; null without an answer.

  • durationMsintegeroptional
  • errorstring | nulloptional

    Why it failed; null when ok.

Errors

StatusWhen
404not_found: no endpoint with this id.
409conflict: the endpoint is deleted.
curl -X POST https://api.locals.money/v1/webhook-endpoints/we_2c81/test \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81/test', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
  },
});
const data = await res.json();
Response · 200
{
  "eventId": "evt_9b0e",
  "ok": true,
  "statusCode": 200,
  "durationMs": 184,
  "error": null
}

GET/v1/eventsAvailable

List your events, to catch up after downtime.

Every event of your account, delivered or not, with the full object in data. Without after, newest first. With after, the events after that one oldest first: page forward with the last id you got until hasMore is false.

Path and query parameters

  • typestring customer.updated customer.verification.updated customer.blocked customer.unblocked route.activated route.closed route.deposit.received transfer.processing transfer.review transfer.action_required transfer.completed transfer.failed transfer.refundedqueryoptional

    One event type.

  • afterstringqueryoptional

    Only events after this event id.

  • limitintegerqueryoptional

    1 to 100. Default 20.

Errors

StatusWhen
400validation_failed: an unknown type, or page, which this list does not take.
404not_found: no event with the after id.
curl https://api.locals.money/v1/events?after=evt_6f1a&limit=100 \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/events?after=evt_6f1a&limit=100', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "data": [
    {
      "id": "evt_6f1a",
      "type": "transfer.completed",
      "createdAt": "2026-10-21T09:44:52.318Z",
      "data": {
        "id": "trf_91kd",
        "kind": "route",
        "customerId": "cus_8Hq2Lm",
        "routeId": "route_3f9a",
        "status": "complete",
        "source": {
          "amount": "12500.00",
          "currency": "AUD",
          "rail": "local_transfer",
          "reference": "HC-2210",
          "senderName": "HARBOUR AND CO"
        },
        "destination": {
          "amount": "8137.50",
          "currency": "USDC",
          "rail": "polygon",
          "address": "0x7a3f0000000000000000000000000000000091c2",
          "txHash": "0x5e0c…a7d4"
        },
        "refundReason": null,
        "actionRequired": null,
        "statusHistory": [
          {
            "status": "processing",
            "at": "2026-10-21T09:41:07Z"
          },
          {
            "status": "complete",
            "at": "2026-10-21T09:44:52Z"
          }
        ],
        "createdAt": "2026-10-21T09:41:07.903Z",
        "updatedAt": "2026-10-21T09:44:52.318Z"
      }
    }
  ],
  "hasMore": false
}

GET/v1/events/{id}Available

Retrieve one event.

Path and query parameters

  • idstringpathrequired

    Event id.

Errors

StatusWhen
404not_found: no event with this id.
curl https://api.locals.money/v1/events/evt_6f1a \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/events/evt_6f1a', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "id": "evt_6f1a",
  "type": "transfer.completed",
  "createdAt": "2026-10-21T09:44:52.318Z",
  "data": {
    "id": "trf_91kd",
    "kind": "route",
    "customerId": "cus_8Hq2Lm",
    "routeId": "route_3f9a",
    "status": "complete",
    "source": {
      "amount": "12500.00",
      "currency": "AUD",
      "rail": "local_transfer",
      "reference": "HC-2210",
      "senderName": "HARBOUR AND CO"
    },
    "destination": {
      "amount": "8137.50",
      "currency": "USDC",
      "rail": "polygon",
      "address": "0x7a3f0000000000000000000000000000000091c2",
      "txHash": "0x5e0c…a7d4"
    },
    "refundReason": null,
    "actionRequired": null,
    "statusHistory": [
      {
        "status": "processing",
        "at": "2026-10-21T09:41:07Z"
      },
      {
        "status": "complete",
        "at": "2026-10-21T09:44:52Z"
      }
    ],
    "createdAt": "2026-10-21T09:41:07.903Z",
    "updatedAt": "2026-10-21T09:44:52.318Z"
  }
}

GET/v1/events/{id}/deliveriesAvailable

How an event was delivered: one delivery per endpoint.

Up to 50, newest first.

Path and query parameters

  • idstringpathrequired

    Event id.

Response · 200

  • dataarrayoptional
  • data.idstringoptional
  • data.endpointIdstringoptional
  • data.statusstring pending sending succeeded failedoptional
  • data.attemptsintegeroptional
  • data.nextAttemptAtstring | nulloptional

    When the next attempt goes, while pending.

  • data.lastAttemptAtstring | nulloptional
  • data.lastStatusCodeinteger | nulloptional

    What your endpoint answered last.

  • data.lastErrorstring | nulloptional
  • data.lastDurationMsinteger | nulloptional
  • data.createdAtstringoptional

Errors

StatusWhen
404not_found: no event with this id.
curl https://api.locals.money/v1/events/evt_6f1a/deliveries \
  -H "Authorization: Bearer $LOCALS_KEY"
const res = await fetch('https://api.locals.money/v1/events/evt_6f1a/deliveries', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
  },
});
const data = await res.json();
Response · 200
{
  "data": [
    {
      "id": "dlv_3a7c",
      "endpointId": "we_2c81",
      "status": "succeeded",
      "attempts": 1,
      "nextAttemptAt": null,
      "lastAttemptAt": "2026-10-21T09:44:53.104Z",
      "lastStatusCode": 200,
      "lastError": null,
      "lastDurationMs": 212,
      "createdAt": "2026-10-21T09:44:53.020Z"
    }
  ]
}

POST/v1/events/{id}/redeliverAvailable

Send an event again, to every endpoint or to one.

Without endpointId, every delivery of the event goes again. With it, only the one to that endpoint, created if the endpoint did not take the event then, for example an endpoint created after the event. The event keeps its id, so your duplicate check still works. Asking again for the same endpoint reopens its delivery, never a second one.

While 50 or more deliveries of your account are waiting to go out now, of any event, the call is 409 too_many_pending_deliveries and nothing changes; retries scheduled for later do not count. Send it again once those have gone out.

Path and query parameters

  • idstringpathrequired

    Event id.

Request body

  • endpointIdstringoptional

    One active endpoint of yours.

Response · 200

  • eventIdstringoptional
  • deliveriesintegeroptional

    How many deliveries go again because of this call: the one created plus the ones reopened. One still pending or sending is not counted.

Errors

StatusWhen
404not_found: unknown event or endpoint.
409conflict: the endpoint is not active. too_many_pending_deliveries: 50 or more deliveries of your account are waiting to go out now; nothing changed.
curl -X POST https://api.locals.money/v1/events/evt_6f1a/redeliver \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "endpointId": "we_2c81"
  }'
const res = await fetch('https://api.locals.money/v1/events/evt_6f1a/redeliver', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "endpointId": "we_2c81"
  }),
});
const data = await res.json();
Response · 200
{
  "eventId": "evt_6f1a",
  "deliveries": 1
}

Sandbox

Only with sandbox keys. Nothing here moves real money.

POST/v1/test/routes/{id}/simulateAvailable

Simulate an incoming bank transfer on a route.

Produces the same transfer and events as a real deposit, a moment later. Only on the sandbox deployment: on live it returns 404.

Path and query parameters

  • idstringpathrequired

Request body

  • amountstringrequired

    Decimal string in the route's currency.

  • scenariostring create_only completed failedrequired

    create_only leaves the deposit in progress; completed settles it; failed fails it.

Errors

StatusWhen
400validation_failed: malformed amount or unknown scenario.
404not_found: on the live deployment, or unknown route.
502upstream_unavailable: the simulator did not answer. Retry.
curl -X POST https://api.locals.money/v1/test/routes/route_3f9a/simulate \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "250.00",
    "scenario": "completed"
  }'
const res = await fetch('https://api.locals.money/v1/test/routes/route_3f9a/simulate', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "amount": "250.00",
    "scenario": "completed"
  }),
});
const data = await res.json();
Response · 202
{
  "routeId": "route_3f9a",
  "amount": "250.00",
  "scenario": "completed",
  "accepted": true
}