---
title: "Link a stablecoin provider account"
method: POST
path: "/stablecoin-provider-accounts"
tags: ["Stablecoins"]
---

# Link a stablecoin provider account

`POST /stablecoin-provider-accounts`

## Request

- Base URL: `https://api.lightspark.com/grid/2025-10-13`
- URL: `https://api.lightspark.com/grid/2025-10-13/stablecoin-provider-accounts`
- Auth: HTTP basic

Link provider API credentials for the authenticated platform. Provider credentials are account-scoped and can be reused for multiple stablecoins. Currently, the only supported provider is `BRALE`; the provider environment is derived from the authenticated Grid platform mode.

## Headers

- `Idempotency-Key` string, required

## Request body

- StablecoinProviderAccountLinkRequest
  - `provider` 'BRALE', required: Stablecoin provider backing the linked account, stablecoin, or operation.
  - `apiClientId` string, required: Provider API client id used to verify and link the provider account.
  - `apiClientSecret` string, required: Provider API client secret. Grid verifies and stores this secret encrypted; it is never returned.
  - `providerAccountId` string: Provider account id. Optional when the submitted credentials expose exactly one provider account.

## Response `201`

Stablecoin provider account linked

- StablecoinProviderAccount
  - `id` string, required: System-generated stablecoin provider account link identifier.
  - `provider` 'BRALE', required: Stablecoin provider backing the linked account, stablecoin, or operation.
  - `providerAccountId` string, required: Provider account id.
  - `providerEnvironment` 'SANDBOX' | 'PRODUCTION', required: Provider environment derived from the authenticated Grid platform mode.
  - `status` 'ACTIVE' | 'INVALID' | 'REVOKED', required: Status of the linked stablecoin provider account credentials.
  - `lastVerifiedAt` string, date-time: Timestamp of the last successful provider credential verification.
  - `createdAt` string, date-time, required: Creation timestamp.
  - `updatedAt` string, date-time, required: Last update timestamp.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `409`: Conflict
- `500`: Internal service error

## Changes

> 115 revisions in range; 2 not diffed.

- **2026-10-28** `d996ddfb9d2b`: 2 info
  - added the optional property `details/missingFields` to the response with the `400` status
  - added the optional property `details/refusalReason` to the response with the `400` status
- **2026-10-26** `f11f1e76bdd7`: 1 warning
  - added the new `PURCHASE_CARD_LIMIT_REACHED` enum value to the `code` response property for the response status `409`
- **2026-10-26** `0a6dad5815c7`: 1 warning
  - added the new `INVOICE_ALREADY_USED` enum value to the `code` response property for the response status `409`
- **2026-10-24** `715332dcb111`: 1 warning
  - added the new `EXACT_AMOUNT_UNAVAILABLE` enum value to the `code` response property for the response status `400`
- **2026-10-20** `761d1d030cb5`: 2 warning
  - added the new `AGENT_CARD_EXISTS` enum value to the `code` response property for the response status `409`
  - added the new `CARDHOLDER_AGREEMENT_NOT_ACCEPTED` enum value to the `code` response property for the response status `400`

[Operation history](https://skmtc.dev/lightsparkdev/apis/grid-api/changes/stablecoin-provider-accounts/post.md)

---

[API](https://skmtc.dev/lightsparkdev/apis/grid-api.md) - [All operations](https://skmtc.dev/lightsparkdev/apis/grid-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lightsparkdev/apis/grid-api/revisions/7a1db46ec552?raw)
