> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# Make your first request

Set `API_HOST` to the API domain assigned to your integration and `API_KEY` to a key enabled for v2. These examples use `jq` to read the token.

#### Get an access token

```bash
TOKEN=$(curl -s -X POST "https://$API_HOST/api/v2/access-token" \
  -H "Authorization: Bearer $API_KEY" | jq -r .token)
```

#### Check connectivity

`GET /ping` confirms that the token is valid, that its key still allows calls from your address, and which environment answered. It has no side effects and every enabled key can call it.

```bash
curl "https://$API_HOST/api/v2/ping" \
  -H "Authorization: Bearer $TOKEN"
```

```json
{ "message": "pong", "livemode": false, "apiVersion": "2.0" }
```

A platform key can add `Account-Holder` to confirm that it can act on that account holder.

#### Read a list

With a platform key that holds `accountHolders:read`, list your account holders. Do not send `Account-Holder` on this call.

```bash
curl "https://$API_HOST/api/v2/accountHolders?limit=10" \
  -H "Authorization: Bearer $TOKEN"
```

```json
{
  "data": [
    {
      "id": "2b1f8f53-5d0e-4c0f-9a51-1d3b8c2e4f10",
      "object": "accountHolder",
      "livemode": false,
      "type": "BUSINESS",
      "name": "Atlas Travel LLC",
      "status": "ACTIVE"
    }
  ],
  "pageInfo": { "hasNextPage": false, "endCursor": null }
}
```

With a company key that holds `cards:read`, list the cards of your own account holder instead:

```bash
curl "https://$API_HOST/api/v2/cards?limit=10" \
  -H "Authorization: Bearer $TOKEN"
```

## Next steps

* Send an `Idempotency-Key` on every `POST`. See [Idempotency](/v2/docs/guides/idempotency).
* Handle errors by `code`. See [Errors](/v2/docs/guides/errors).
* Subscribe to changes instead of polling. See [Webhooks and events](/v2/docs/guides/webhooks).