[#1329] Login Failure

Migrated from Redmine #1329 | Author: Soporte Soporte
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-12-03


I am integrating the SimplyBook API into my own API, and I am currently facing an issue with authentication.
When a request is made to SimplyBook, I retrieve the token I have stored. If I don’t have a token, I login to obtain one and use it for the requests. However, there are some cases where the token is no longer valid, or I don’t have one. When I attempt to login, the endpoint returns a “Forbidden” error. Even if I try logging in again, it continues to return “Forbidden”. After waiting a few minutes, the endpoint finally responds with a token, allowing me to continue operating.

URL: https://user-api-v2.simplybook.me/admin/auth
Type: POST
Body: {
“Company”: “{companyName}”,
“Login”: “{email}”,
“Password”: “{password}”
}

Scott Brown wrote:

I’m seeing this too: occasionally the SB Rest API will return “Forbidden” when trying to login, before eventually working fine. The solution seems to be adding retries, though I’m concerned too many retries will get us locked out for a time.
Did you find a solution for this?

Dmytro Bondarev wrote:

Hi, it seems you are facing login attempts limits.
Please provide full response to investigate.

Basically you should use refresh token to get new token.