---
title: "Sign in with email and password"
method: POST
path: "/login"
tags: ["Auth", "PT-2026Q1"]
---

# Sign in with email and password

`POST /login`

## Request

- Base URL: `https://api.pics.io`
- URL: `https://api.pics.io/login`
- Auth: HTTP bearer

Authenticates a user using email and password credentials and returns a pair of access and refresh tokens for subsequent API calls.

## Request body

- Login
  - `email` string, required
  - `password` string, required

## Response `200`

In the response you will receive field named `tokens` than contains `accessToken` and `refreshToken`. Access token has limited lifetime, after invalidation you need to refresh tokens using `refreshToken`

---

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