---
title: "Create API keys for a user"
method: POST
path: "/user/api-keys"
tags: ["User"]
---

# Create API keys for a user

`POST /user/api-keys`

This endpoint is used to create API keys for a user. In estuary, each user is given an API key to access all features.

## Query parameters

- `expiry` string
- `perms` string

## Response `200`

OK

- ApiGetApiKeysResp
  - `expiry` string
  - `isSession` boolean
  - `label` string
  - `token` string
  - `tokenHash` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/application-research/apis/estuary-api.md) · [All operations](https://skmtc.net/application-research/apis/estuary-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/application-research/estuary-api/revisions/b9ae518bf64b/schema)
