API reference · AI gateway
Store the organization's own credential for a provider, sealed for the edge
POST
/v1/orgs/{org}/ai/credentialsStore the organization's own credential for a provider, sealed for the edge. Needs providers outside the EU enabled
- Permission
ai.credentials.manage- Audit log
ai.credential.create- Operation
ai.credentials.create
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
org | path | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
Idempotency-Key | header | string | no | One key per intended mutation. A retry with the key replays the recorded response instead of executing again; the key with another request answers 422 idempotency_key_reused. For example "01h455vb4pex5vsknk084sn02q" |
x-obhut-management-assignment | header | string | no | Select one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q" |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | yes | 1 to 100 characters |
provider | string | yes | |
secret | string | yes | 1 to 16384 characters |
baseUrl | string | no | 1 to 2048 characters |
Response 201
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | for example "pcr_01h455vb4pex5vsknk084sn02q" |
orgId | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
name | string | yes | |
provider | string | yes | |
baseUrl | string or null | yes | |
createdAt | string (date-time) | yes | UTC, ISO 8601. |