---
title: "Create Onramp Auth Token"
method: POST
path: "/onramp/auth/token"
tags: ["onramp"]
---

# Create Onramp Auth Token

`POST /onramp/auth/token`

## Request

- Base URL: `https://api.coinvoyage.io/v3`
- URL: `https://api.coinvoyage.io/v3/onramp/auth/token`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/coinvoyage/apis/coinvoyage-api-v3/docs/onramp/auth/token/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a short-lived Stripe Link auth token client secret for React Native seamless sign-in. The server uses the previously stored Link OAuth token for the provided auth intent.

## Headers

- `X-API-KEY` string, required

## Request body

- LinkAuthTokenRequest
  - `auth_intent_id` string, required

## Response `200`

Link auth token client secret created

- LinkAuthTokenResponse
  - `link_auth_token_client_secret` string, required
  - `expires_in` integer, required

## Other responses

- `401`: Unauthorized
- `422`: Invalid request body or seamless sign-in unavailable
- `502`: Stripe Link seamless sign-in failed upstream
- `504`: Stripe Link seamless sign-in timed out

---

[API](https://skmtc.dev/coinvoyage/apis/coinvoyage-api-v3.md) - [All operations](https://skmtc.dev/coinvoyage/apis/coinvoyage-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/coinvoyage/apis/coinvoyage-api-v3/revisions/3535f46f4c27?raw)
