POST
/
v1
/
auth
/
token
curl --request POST \
  --url https://api.ziplink.click/v1/auth/token \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "[email protected]",
  "password": "super-secret"
}'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ3d3cuemlwbGluay5jbGljayIsImV4cCI6MTcxOTU3OTAwOSwiaWF0IjoxNzE5NTc5MDA5LCJpc3MiOiJ6aXBsaW5rLWlzcyIsInN1YiI6ImZlNzhiNjE0LTQxZjctNDg4Yy1iMzkxLTI5OTA3YWJjY2JmMSJ9.ANpBUwz6iXVhnxg5b2j7Y-U3vABTWLhG-al5Ubv85SI",
  "refresh_token": "62FWZioMyworuZoodRsNYeQNwjHFaP5tFN7Z_GapVOSzX5WBYnz7YpCObuadccpedkAF-yWNEmyXjrO98Oy3Spc0hLq1GqDbXQLvfnLrSw8Wx5IOzFn6S7u74lVla7BWNnRqHl8slxL3AV5M-1zDQlC71Ks-AMlT78-7tTplNDmBYB3Es2DD5ZzdTXugHdYR9Iqy1369lQNAmDXsDdupKA6_6ZTXSw5xdfaYUi5UaqGxV0fdLgYkzw90bR2ICWxFWLvDm9WwoPq8mgwfFvQ4wnCFO7FXZm-AKOFq4EhztE6Y7uFGf0zZwDeVakXHBerF3YK5mkftY6hHhp-y6TWI6NMRwAmJL02tyAiG_TyrBdTDdU2RTw=="
}

Body

application/json
Obtain access and refresh tokens.
email
string
required

Email address of the user.

Required string length: 6 - 254
password
string
required

Password of the user. Required together with the new_password field.

Required string length: 8 - 64
Example:

"super-secret"

Response

200
application/json
OK

A token pair returned upon authentication.

access_token
string
required

JWT access token.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ3d3cuemlwbGluay5jbGljayIsImV4cCI6MTcxOTU3OTAwOSwiaWF0IjoxNzE5NTc5MDA5LCJpc3MiOiJ6aXBsaW5rLWlzcyIsInN1YiI6ImZlNzhiNjE0LTQxZjctNDg4Yy1iMzkxLTI5OTA3YWJjY2JmMSJ9.ANpBUwz6iXVhnxg5b2j7Y-U3vABTWLhG-al5Ubv85SI"

refresh_token
string
required

Refresh token to get a new access token.

Example:

"62FWZioMyworuZoodRsNYeQNwjHFaP5tFN7Z_GapVOSzX5WBYnz7YpCObuadccpedkAF-yWNEmyXjrO98Oy3Spc0hLq1GqDbXQLvfnLrSw8Wx5IOzFn6S7u74lVla7BWNnRqHl8slxL3AV5M-1zDQlC71Ks-AMlT78-7tTplNDmBYB3Es2DD5ZzdTXugHdYR9Iqy1369lQNAmDXsDdupKA6_6ZTXSw5xdfaYUi5UaqGxV0fdLgYkzw90bR2ICWxFWLvDm9WwoPq8mgwfFvQ4wnCFO7FXZm-AKOFq4EhztE6Y7uFGf0zZwDeVakXHBerF3YK5mkftY6hHhp-y6TWI6NMRwAmJL02tyAiG_TyrBdTDdU2RTw=="