---
title: "Create a new JWT for authentication and set a cookie if using HTTP."
method: POST
path: "/api/v1/session"
tags: ["SessionService"]
---

# Create a new JWT for authentication and set a cookie if using HTTP.

`POST /api/v1/session`

## Request body

- SessionSessionCreateRequest — SessionCreateRequest is for logging in.
  - `password` string
  - `token` string
  - `username` string

## Response `200`

(empty)

- SessionSessionResponse — SessionResponse wraps the created token or returns an empty string if deleted.
  - `token` string

---

[API](https://skmtc.net/devtron-labs/apis/consolidate-services.md) · [All operations](https://skmtc.net/devtron-labs/apis/consolidate-services/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devtron-labs/consolidate-services/revisions/778bfc291d1e/schema)
