> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Issues (or rotates) a partner API key. The plaintext is returned exactly

> once; only its SHA-256 is stored.

once; only its SHA-256 is stored.

### Path parameters

<ParamField path="id" type="string" required>
  Partner ID
</ParamField>

### Response

No response body. New API key — shown exactly once; replaces any previous key.

### Status codes

| Code  | Meaning                                                     |
| ----- | ----------------------------------------------------------- |
| `200` | New API key — shown exactly once; replaces any previous key |
| `403` | Admin credential required                                   |
| `404` | Unknown partner                                             |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://edi.stateset.com/v1/partners/{id}/api-key' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>
