Rensei docs

Bind or clear the BYOK credential one serving uses (org admin, human principal only).

Bind or clear the BYOK credential one serving uses (org admin, human principal only). - Rensei REST API operation reference.

PUT
/api/org/{orgId}/model-library/entries/{entryId}/servings/{servingId}/credential

Authorization

headerAuthorizationBearer <WorkOS user access token>

WorkOS user access token created by the Rensei CLI. The authenticated organization is resolved from membership and may be narrowed with X-Rensei-Org.

Path Parameters

orgId*string

Organization id (must match the authenticated org).

entryId*string

Model library entry id.

Length1 <= length <= 200
servingId*string

Live serving id of the entry.

Length1 <= length <= 200

Request Body

application/json
  1. body
byokCredentialId*|

A live org credential whose kind can serve this serving; null selects the org canonical credential.

Length1 <= length <= 200

Response Body

The stored binding and the entry revision.

application/json
  1. response
binding*
Example Request
curl -X PUT 'https://app.rensei.ai/api/org/string/model-library/entries/string/servings/string/credential' \  -H 'Content-Type: application/json' \  -d '{  "byokCredentialId": "string"}'
Example Response
{  "binding": {    "entryId": "string",    "servingId": "string",    "byokCredentialId": "string",    "revision": -9007199254740991  }}