AuthLogin

Login

Exchange email and password for an API key to authenticate all subsequent Supasend API requests.

curl -X POST "https://api.supasend.io/api/v1/auth/login" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "you@example.com",
  "password": "supersecret"
}'
{
  "user": {
    "id": "example_string",
    "email": "user@example.com",
    "name": "John Doe"
  },
  "token": "sk_live_a1b2c3d4e5f6..."
}
POST
/api/v1/auth/login
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Body

application/json
emailstring
Required
Example:
you@example.com
passwordstring
Required
Example:
supersecret

Responses

userobject
tokenstring

API key — pass in the X-API-Key header for all other endpoints. Shown once.

Login

Exchanges credentials for a fresh API key.