Skip to main content
Skip table of contents

Login

The login process will generate an access token to be used on all authenticated requests to Pico’s API.

There is no need to login on each request, since the token will be valid for 3 months.

In case a token will be invalid a login will be needed.

Token value should be provided on all API call using the Auth Header

Request

JSON
{
"email": "api.example@picogp.com",
"password": "123456"
}

Response

JSON
{
"data": {
"user": {
"is_blocked": 0,
"first_name": "Api",
"last_name": "Example",
"email": "api.example@picogp.com",
"user_id": "54",
"company_id": "123456",
"date_added": "2020-08-24 14:03:52",
"date_updated": "2020-08-24 14:05:03",
"role_id": "5",
"is_first_login": "1",
"company_name": "Pico Get Personal Training"
},
"token":
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIkldjhfgdjhgfjhdbnmxcbjdsFkljklsdnvDUzI1NiJ9.eyJpYXQiOjE1OTgyNzc5MzgsI
m5iZiI6MTU5ODI3Nzk0OCwiZXhwIjoxNjAwODY5OTM4LCJkYXRhIjp7lkfl;InVzZXJJZCI6IjU0IiwiY29tcGFueUlkIj
oiNDE1MCIsImVtYWlsIjoiYXBpLmV4YW1wbGVAcGljb2dwLmNvbSIsInJvbGVJfdsklhgdshjgEdjskhWEZCI6IjUiL
CJmaiOiJBcGkiLCJsYXN0TmFtZSI6IkV4YW1wbGUiLCJwZXJtaXNbnVsbH19.S2ClsZaNvlPsx3dajeyk22a5LjZsn
bhwt42e8WlfIkljl@"
}
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.