Get Bearer Token
Obtain bearer token which is needed for authentication into the app.
Endpoint
http
POST /api/v1/loginParameters
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | yes | The user registered email. |
password | string | yes | The user password. |
Request example
sh
curl --location --request POST 'https://files.ro/api/v1/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "john@doe.com",
"password": "filesro"
}'Response
json
{
"type": "success",
"message": "You were successfully authenticated",
"data": {
"token": "1|token"
}
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}json
{
"type": "error",
"message": "Email address is not verified."
}