---
title: "Create a token"
method: POST
path: "/api/v1/sessions"
tags: ["Authentication"]
---

# Create a token

`POST /api/v1/sessions`

## Request body

- CreateSession
  - `login` string, required — E-mail
  - `password` string, required — password
  - `account_id` integer — (optional) The account id to generate the token for

## Response `200`

token created

---

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