Login
Use your credentials to generate a temporary token that you use in your requests.
Authenticate on the API with your credentials to get a token that you can use in your requests.
Body
namestringOptionalExample:
api_company
apiKeystringOptionalExample:
2ddd4027-c779-4b7c-80fe-8661c92c35ff
Responses
200
Token to use in the other API calls
application/json
401
Unable to authenticate the token
application/json
post
POST /login HTTP/1.1
Host: api.hiboo.io
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"name": "api_company",
"apiKey": "2ddd4027-c779-4b7c-80fe-8661c92c35ff"
}
{
"id": 42,
"email": "[email protected]",
"admin": false,
"firstName": "John",
"lastName": "Doe",
"token": "eyJhbGciOiJIfkdFVHUREIsInR5cCI6IkpXVCJ9.xxXxXXX6OXXxXxxxx3XxXXXXXx6XxXxXxxxxXX6XXX3Xxx2XxX5OXwiXXxxXxxxXXx0XxX2Xxx4xX.Ylm61gfwIgGx2bQLjtq4UkqF1MOak9y8REsVfn1GtoQ"
}
Was this helpful?