Auth
API ▸ EndpointsOverview
Most API requests require a valid user ID and token. Tokens are unique per user and application, and have no expiration (unless revoked by the user).
A token may be obtained by prompting the user to login with an email
and password
.
Once you have the user ID and token you can store these for future use with your application.
Important: never log or store user’s password, once you have a token you no longer need it.
Endpoint
POST https://api.dropmark.com/v1/auth
Input
Name | Type | Desc |
---|---|---|
email |
String |
User’s email address (required) |
password |
String |
User’s password (required) |
Example
{
"email": "jane@example.com",
"password": "******"
}
Response
Status: 201 Created
{
"id": 1,
"name": "Jane Doe",
"email": "jane@example.com",
"username": "demo",
"avatar": "https://gravatar.com/avatar/db450747b81669f6cea",
"status": "active",
"plan": "free",
"token": "ee977806d7286510da8b9a7492ba58e2484c0ecc"
}