API keys
Get an API key
Permission
inference-api-keys:readAuthenticationGET
Returns one key's metadata. The secret is never retrievable.
The ETag covers the whole public representation, so it changes when last_used_at changes — not only when you edit the key.
See key management.
inferenceBearerAuthheader
AuthorizationBearer <token>Use an Inference API key. Access and keys.
id*stringFormat
uuidAPI key metadata.
application/json- response
Safe API-key metadata. Secret and hash material are never present.
id*stringFormat
uuidprefix*stringLength
1 <= lengthname*stringLength
1 <= length <= 120scopes*array<string>Items
1 <= items <= 256status*stringValue in
"active""expired""revoked"created_by_user_id*|Format
uuidcreated_by_api_key_id*|Format
uuidlast_used_at*|Format
date-timeexpires_at*|Format
date-timerevoked_at*|Format
date-timeversion*integerFormat
int64Range
1 <= valuecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -X GET 'https://api.kejue.co/v1/inference/api-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "prefix": "string", "name": "string", "scopes": [ "string" ], "status": "active", "created_by_user_id": "209f54c4-4c33-43bc-9c6a-ef4c65ad7473", "created_by_api_key_id": "16a8c1ea-aaaf-49f0-9266-c657c48ceff3", "last_used_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z", "version": 1, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}