Login
Exchange the name and API key of your API credential for a token, valid for 10 days. Send this token with every other request, in the x-access-token header.
Authenticate on the API with your credentials to get a token that you can use in your requests. The token is valid for 10 days.
Body
namestringRequiredExample:
api_companyapiKeystringRequiredExample:
2ddd4027-c779-4b7c-80fe-8661c92c35ffResponses
200
Token to use in the other API calls
application/json
idintegerOptionalExample:
42emailstringOptionalExample:
api@hiboo.ioadminbooleanOptionalExample:
falsefirstNamestringOptionalExample:
JohnlastNamestringOptionalExample:
DoetokenstringOptionalExample:
eyJhbGciOiJIfkdFVHUREIsInR5cCI6IkpXVCJ9.xxXxXXX6OXXxXxxxx3XxXXXXXx6XxXxXxxxxXX6XXX3Xxx2XxX5OXwiXXxxXxxxXXx0XxX2Xxx4xX.Ylm61gfwIgGx2bQLjtq4UkqF1MOak9y8REsVfn1GtoQ401
The name or the API key is wrong, or the API credential is deactivated.
application/json
post/login
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": "api@hiboo.io",
"admin": false,
"firstName": "John",
"lastName": "Doe",
"token": "eyJhbGciOiJIfkdFVHUREIsInR5cCI6IkpXVCJ9.xxXxXXX6OXXxXxxxx3XxXXXXXx6XxXxXxxxxXX6XXX3Xxx2XxX5OXwiXXxxXxxxXXx0XxX2Xxx4xX.Ylm61gfwIgGx2bQLjtq4UkqF1MOak9y8REsVfn1GtoQ"
}Last updated
Was this helpful?