Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The ModelAPIKeyServiceCreateRequest message.

This message contains a oneof named credential_format. Only a single field of the following list may be set at a time:

  • anthropic
anthropic
Anthropic Credential Format · object | null

AnthropicCredentialFormat selects the Anthropic-compatible key family. It has no options yet.

appId
string

The app this key will access.

displayName
string

Human-readable name for this key.

edgeId
string

The Edge inference route for API calls with this key.

expiresTime
string<date-time> | null
scopeCeiling
string[] | null

Maximum scopes this key may use (must be subset of caller's grants and catalog).

Response

200 - application/json

Successful response

The ModelAPIKeyServiceCreateResponse message.

bearerToken
string

The complete Bearer token for LLM API calls (only returned on Create, one-time reveal). Format: c1llm_{27-char-id}_{base64url-secret} This is the full authentication credential; store it securely and do not request it again.

inferenceBaseUrl
string

The inference origin clients use as the API base URL. The key binding selects the Edge.

key
Model Api Key · object | null

ModelAPIKey is returned by Get/List operations (metadata only, no secret).

This message contains a oneof named credential_format. Only a single field of the following list may be set at a time:

  • anthropic
resourceUri
string

The OAuth resource indicator for the Edge bound to this key.