---
updatedAt: 2025-09-24T21:06:33.000Z
agentTools:
  projectIndex: https://docs.quable.com/llms.txt
---

# Authentication - Get token with api-v4

```python Python
import requests
import json

instance = "my-pim
user     = "me"
password = "password"

api_url = "https://{}.quable.com/api_1.php/sessions".format(instance)
headers = {'Content-Type': 'application/json' }
payload = {'signin': {'username': user, 'password': password}}

response 			= requests.request("POST", urlSession, headers=headers, payload=payload)
auth_response = json.loads(response.text)

headers['Authorization'] = 'Bearer ' + auth_response["oauth"]["access_token"]
```

```json Response Example
{"success":true}
```

# Get Bearer Token - api-v4