---
title: "Issue API key"
method: POST
path: "/user/api-token/create"
tags: ["user"]
---

# Issue API key

`POST /user/api-token/create`

This endpoint creates a Gigasheet API token from an Auth0 consent code. Unlike other API endpoints, this endpoint cannot itself be authenticated using an API token, it must be authenticated using the interactive login flow. To create an API token, follow the Getting Started documentation.

## Request body

- UsersCreateApiTokenRequest
  - `code` string, required — The consent code.
  - `redirect_uri` string, required — The redirect URI to give to Auth0 when converting the code to a permanet API token. Must match the redirect URI in the request that was sent to generate the consent code.

## Response `200`

OK

- unknown

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

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