Overview
API keys start with
sk_. Use the key only on the token endpoint — send the returned access_token on Developer API requests.
Gateway paths are relative to the base URL (for example GET /developer/company/invoices).
Create an API key
Any active member of your company can create keys from the Incard dashboard. The full secret is shown once at creation. Store it in a secrets manager or environment variable — you cannot retrieve it again. Listing keys in the dashboard shows only a prefix for identification. You can have up to 5 active keys per member. Revoke an unused key to free a slot.Exchange for an access token
Exchange your API key for a short-lived access token before calling the Developer API. Send the key in the request body:access_token and refresh it before expires_at. Do not send your API key on Developer API requests — only on the token endpoint.
Call the Developer API
Send the access token as a Bearer credential on every request. Protected endpoints also requireX-On-Behalf-Of with the company UUID you are acting on behalf of:
Permissions
An API key is tied to the member who created it. On each Developer API request,X-On-Behalf-Of selects which company the call applies to; the gateway checks that the member has access to that company and builds role-based headers for downstream services.
Permissions follow the member’s company role for the company in X-On-Behalf-Of. An owner can access every endpoint their company is entitled to; an employee has the most restricted access. Create keys with a member account that has the permissions your integration needs.
If the authenticated principal lacks permission for an endpoint, the API returns 403 Forbidden.