---
title: "Authenticate"
method: POST
path: "/authenticate/"
---

# Authenticate

`POST /authenticate/`

## Request

- Base URL: `https://api.simple.ink` (the document declares no server; this is the origin it was published from)
- URL: `https://api.simple.ink/authenticate/`
- Auth: none declared

First endpoint that gathers magic.link tokens and issues our own JWT tokens.

With authjwt_cookie_csrf_protect set to True, set_access_cookies() and
set_refresh_cookies() will now also set the non-httponly CSRF cookies

## Request body

- User
  - `magic_token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/simple/apis/simple-api.md) - [All operations](https://skmtc.dev/simple/apis/simple-api/llms.txt) - [OpenAPI document](https://skmtc.dev/simple/apis/simple-api/revisions/ebca3feff579?raw)
