---
title: "Set/replace third-party token (self, step-up)"
method: POST
path: "/api/v1/account/integrations/{provider}"
tags: ["account"]
---

# Set/replace third-party token (self, step-up)

`POST /api/v1/account/integrations/{provider}`

## Request

- Base URL: `https://amplerun-api.spiry.org`
- URL: `https://amplerun-api.spiry.org/api/v1/account/integrations/{provider}`
- Auth: HTTP bearer

Encrypted at rest the same way as an admin secret setting; never re-shown once saved.

## Path parameters

- `provider` 'huggingface', required

## Headers

- `Idempotency-Key` string, uuid, required

## Request body

- object
  - `token` string, required

## Response `201`

Token stored.

## Other responses

- `default`: Error envelope. 401 unauthenticated, 403/404 forbidden, 409 conflict, 422 invalid input, 429 rate limited (code UNAVAILABLE, retryable:true, no Retry-After header), 503 unavailable money/provider state with retryable:true.

---

[API](https://skmtc.dev/amplerun/apis/amplerun-business-api.md) · [All operations](https://skmtc.dev/amplerun/apis/amplerun-business-api/llms.txt) · [OpenAPI document](https://skmtc.dev/amplerun/apis/amplerun-business-api/revisions/40944687fa52?raw)
