Authentication

Make your first v2 request

Check a scoped organization key with a read-only request.

Ask your Toku contact for a test organization if you are trying the API for the first time. In Settings › Developer › API keys, create a key with Expenses: Read and leave every other area at None. Choose an expiry and confirm with your authenticator. Store the one-time secret in your server's secret manager and load it into TOKU_API_KEY.

Request one item from the list of reimbursements your organization has pushed. This does not submit a claim or initiate a payment.

curl -i 'https://api.toku.com/expense-imports/approved-reimbursements?limit=1' \
  -H "Authorization: Bearer $TOKU_API_KEY"

A 200 confirms both authentication and read access. If no claims have been pushed, the body is {"items":[],"nextCursor":null}. On 401, check that you used the current organization secret, not a personal token. On 403, inspect details.code before changing permissions. Do not send an organization or role header: the key identifies both.

See the key guide for rotation and the reimbursement recipe for a full integration.

Was this page helpful? Suggest edits