---
title: "Create a new limited usage api key owned by the logged in user, of type specified by usage parameter."
method: POST
path: "/users/limited-usage-api-key"
tags: ["LimitedUsageAPIKey"]
---

# Create a new limited usage api key owned by the logged in user, of type specified by usage parameter.

`POST /users/limited-usage-api-key`

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.

## Query parameters

- `usage` 'inference' | 'observability', required

## Request body

- CreateLimitedUsageAPIKeyRequest
  - `alias` string
  - `expires_at` string, required
  - `project_id` string — Optional project ID the token is scoped to

## Response `200`

- LimitedUsageAPIKeyPostResponse
  - `api_key_info` GeneratedLimitedUsageAPIKey, required
    - `alias` string
    - `api_key` string, required
    - `created_at` string, required
    - `expires_at` string, required
    - `key_id` string, required
    - `project_id` string
    - `usage` 'inference' | 'observability', required

## Other responses

- `401` — Error Authentication Failed
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/revisions/a3fd2dedc72b/schema)
