# \[#1279\] Failed legacy api authentication

**URL:** https://tech-support.simplybook.me/t/1279-failed-legacy-api-authentication/1279
**Category:** Bug Reports
**Tags:** migrated, redmine-1279
**Created:** [September 12, 2024, 1:05pm UTC](https://tech-support.simplybook.me/t/1279-failed-legacy-api-authentication/1279 "2024-09-12T13:05:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [September 12, 2024, 1:05pm UTC](https://tech-support.simplybook.me/t/1279-failed-legacy-api-authentication/1279/1 "2024-09-12T13:05:51Z")

</div>

**Migrated from Redmine #1279** | _Author: Matteo Frigerio_  
_Status: New | Priority: Immediate, there is BUG! | Created: 2024-09-12_

* * *

When I perform

```

curl --location 'https://user-api.simplybook.me/login' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "getUserToken",
    "params": [
        "mycompany",
        "myuser",
        "mypassword"
    ],
    "id": 1
}'

```

I obtain either

```

{
    "error": {
        "code": -32000,
        "message": "Company does not exist",
        "data": []
    },
    "id": "1",
    "jsonrpc": "2.0"
}

```

or

```

{
    "error": {
        "code": -32000,
        "message": "Unexpected error",
        "data": null
    },
    "id": "1",
    "jsonrpc": "2.0"
}

```

What am I doing wrong?

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [September 12, 2024, 1:06pm UTC](https://tech-support.simplybook.me/t/1279-failed-legacy-api-authentication/1279/2 "2024-09-12T13:06:44Z")

</div>

**Redmine Admin** wrote:

hi, what is your company booking site url?

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [September 12, 2024, 1:35pm UTC](https://tech-support.simplybook.me/t/1279-failed-legacy-api-authentication/1279/3 "2024-09-12T13:35:29Z")

</div>

**Matteo Frigerio** wrote:

Redmine Admin wrote:

> hi, what is your company booking site url?

We have few of them: unibocconi.secure.simplybook.pro, provaub.secure.simplybook.pro, bbooking.secure.simplybook.pro (the firs element is the one I use as company during the api requests).

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [September 12, 2024, 1:37pm UTC](https://tech-support.simplybook.me/t/1279-failed-legacy-api-authentication/1279/4 "2024-09-12T13:37:26Z")

</div>

**Redmine Admin** wrote:

you need to use [https://user-api.simplybook.pro](https://user-api.simplybook.pro) API endpoint then

---

<div class="post-metadata">

### Author: ![system](https://tech-support.simplybook.me/uploads/default/original/1X/faedac32116409149d0a20d900b3047df01a4ad0.png) [@system](https://tech-support.simplybook.me/u/system)
#### Post date: [September 12, 2024, 1:39pm UTC](https://tech-support.simplybook.me/t/1279-failed-legacy-api-authentication/1279/5 "2024-09-12T13:39:53Z")

</div>

**Matteo Frigerio** wrote:

Redmine Admin wrote:

> you need to use [https://user-api.simplybook.pro](https://user-api.simplybook.pro) API endpoint then

Thabk you very much; what about the ticket I opened at [Bug #1276: Detailed report not working in new version of the APIs - API - Simplybook.me support for developers](https://support.dev.simplybook.me/issues/1276#change-5270) ? any progress on that?
