Skip to main content
GET
Get

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.

Path Parameters

id
string
required

The unique ID of the model API key (27-character base62 identifier).

Response

200 - application/json

Successful response

The ModelAPIKeyServiceGetResponse message.

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