---
title: "Create a session ie. log in."
method: POST
path: "/sessions"
tags: ["Users"]
---

# Create a session ie. log in.

`POST /sessions`

## Request body

- object
  - `user` string
  - `password` string
  - `method` string
  - `oidc_provider` string

## Response `201`

Successfully created session.

- Session
  - `id` integer
  - `token` string

---

[API](https://skmtc.net/kraken-ci/apis/server-api.md) · [All operations](https://skmtc.net/kraken-ci/apis/server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kraken-ci/server-api/revisions/1f2ae877f985/schema)
