---
title: "Store an inference-provider credential"
method: POST
path: "/v1/miner/inference-auth/{provider}"
tags: ["miner"]
---

# Store an inference-provider credential

`POST /v1/miner/inference-auth/{provider}`

Store (or overwrite) the miner's credential for the given provider.

Validates the credential before persisting so bad input fails here rather
than at first claim_work. The first stored provider becomes the miner's
default; switching default afterward goes through the dedicated PATCH
endpoint.

## Path parameters

- `provider` string, required

## Request body

- StoreInferenceCredentialRequest — Request body for ``POST /v1/miner/inference-auth/{provider}``.
  - `credential` string, required — Provider-specific credential (refresh token, API key, etc.)

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/oroagents/apis/oro-api.md) · [All operations](https://skmtc.dev/oroagents/apis/oro-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/oroagents/oro-api/revisions/38ef86138115/schema)
