---
title: "Login - Get API Key"
method: POST
path: "/authorize"
tags: ["authentication"]
---

# Login - Get API Key

`POST /authorize`

**This endpoint allows you to get an API Key**

By providing your turboSMTP authentication details you will be able to get an API Key.

Use your API Key to consume APIs that require authorization.

## Request body

- AuthenticationLoginRequestBody
  - `email` string, email, required — The email of turboSMTP account
  - `password` string, required — The password of turboSMTP account
  - `no_expire` boolean — **false**: authentication will expire after 2 hours. **true**: authentication will keep you signed in, and will never expire. (Use [/authentication/deauthorize](#/authentication/AuthenticationLogout) to logout and release your an API Key)

## Response `200`

Sucess

User logged in sucessfully, use the auth value as API Key from request body in future API calls.

- AuthenticationLoginSuccessResponsetBody
  - `auth` string — API Key to be used in authorization header

## Other responses

- `400` — Bad Request ###### Produces: * missing_required_parameter
- `403` — Forbidden Email address or password provided are incorrect. ###### Produces: * wrong_credentials_specified

---

[API](https://skmtc.net/serversmtp/apis/turbosmtp-public-apis.md) · [All operations](https://skmtc.net/serversmtp/apis/turbosmtp-public-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/serversmtp/turbosmtp-public-apis/versions/8503e099b215/schema)
