Create
Create generates a new model API key for the caller.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
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
AnthropicCredentialFormat selects the Anthropic-compatible key family. It has no options yet.
The app this key will access.
Human-readable name for this key.
The Edge inference route for API calls with this key.
Maximum scopes this key may use (must be subset of caller's grants and catalog).
Response
Successful response
The ModelAPIKeyServiceCreateResponse message.
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.
The inference origin clients use as the API base URL. The key binding selects the Edge.
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
The OAuth resource indicator for the Edge bound to this key.