---
title: "Authenticate with API key"
method: POST
path: "/auth"
tags: ["Authentication"]
---

# Authenticate with API key

`POST /auth`

Exchange a NachoNacho API key for a short-lived JWT.

## Authentication Flow
1. Obtain an API key from your [NachoNacho account dashboard](https://app.nachonacho.com/settings/api) (format: `NN_live_<key>`)
2. Call `POST /auth` with your API key to receive a short-lived JWT
3. Use that JWT as a `Bearer` token on all subsequent requests

## Request body

- object
  - `apiKey` string, required — Your NachoNacho API key (format NN_live_&lt;key&gt;)

## Response `200`

JWT token issued successfully

- object
  - `access_token` string — JWT to use as Bearer token on subsequent requests

## Other responses

- `401` — Invalid or missing API key

---

[API](https://skmtc.dev/nachonacho/apis/nachonacho-public-api.md) · [All operations](https://skmtc.dev/nachonacho/apis/nachonacho-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nachonacho/nachonacho-public-api/revisions/0c3733b7fab0/schema)
