Get a token from api key (public)

POST /auth/token

Will genereate an api token from the api key

Headers

application/json

Body

Responses

POST /auth/token
curl \
 -X POST https://domain.tld/api/v2/auth/token \
 -H "Content-Type: application/json" \
 -H "X-Popsell-Domain: example.com" \
 -d '{"api_key":"string"}'
Request examples
# Headers
X-Popsell-Domain: example.com

# Payload
{
  "api_key": "string"
}
Response examples (200)
{
  "token": "string"
}
Response examples (401)
{
  "message": "Unauthorized."
}
{
  "message": "Invalid email or password"
}
Response examples (422)
{
  "message": "field is required! (and 3 more error)",
  "errors": {
    "field": [
      "Error message details here"
    ],
    "additionalProperty1": [
      "Error message details here"
    ],
    "additionalProperty2": [
      "Error message details here"
    ]
  }
}