---
title: "Login"
method: POST
path: "/user/login"
tags: ["User"]
---

# Login

`POST /user/login`

This endpoint is to log in a different user. You do not need to call this Endpoint with your API username and password in order to use the API.

This Endpoint is intended to those who want to add Sprift platform into their platforms using an iFrame and let Sprift users to login to Sprift.

## Headers

- `SPRIFT-API-KEY` string, required

## Response `200`

Log user in

- InlineResponse2001
  - `status` boolean
  - `token` string — Token assigned to the user.
  - `expires` string — Token expiry date
  - `url` string — The URL that is generated for the logged in User to use Sprift platform without requiring login.
  - `telephone` number — User telephone
  - `email` string — User email address

## Other responses

- `400` — Missing credentials
- `403` — Invalid API Key
- `404` — User not found

---

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