LimitedUsageAPIKey
Create a new limited usage api key owned by the logged in user, of type specified by usage parameter.
A successful response from this resource will contain json-encoded details of the limited usage API key. This is the only time the customer will be able to view the api key associated with the API key id.
post/users/limited-usage-api-key
Request
- Base URLhttps://api.cloud.crusoe.ai/v1
- Authnone declared
- TypeScripthttps://skmtc.dev/crusoecloud/apis/crusoe-cloud-api-gateway/docs/users/limited-usage-api-key/post.tsA function with typed inputs. Its response is checked against the schema.
Query parameters
usage'inference' | 'observability' required
Request body
Example request
{
"alias": "token1",
"expires_at": "2021-12-03T19:58:34Z",
"project_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}Response
Example response
{
"api_key_info": {
"alias": "newAPIKey",
"api_key": "R7p5XctCQMuGlpVBmVdqzA",
"created_at": "2021-11-03T22:16:27Z",
"expires_at": "2021-12-03T19:58:34Z",
"key_id": "R7p5XctCQMuGlpVBmVdqzA",
"project_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"usage": "inference"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.