Skip to main content
All CollectionsDevelopment & integrationAuthentication
How do I authenticate to use the Quable API?
How do I authenticate to use the Quable API?

Use the token provided in your Quable PIM to make API calls

Lucien Berkani avatar
Written by Lucien Berkani
Updated over a year ago

You want to use the Quable PIM API to create, update or simply consult your data ?

You just have to authenticate yourself with the token provided by default, and available from your Quable PIM interface, in the Administration > API Tokens section.

You can click on the icons in the "action" column to view or copy your token:

The Full Access Token allows you to:

  • create new data, usually using the [POST] method,

  • update your data, usually using the [PUT] method,

  • and consult your data, usually using the [GET] method.

The Read Access Token allows you only to consult your data, usually using the [GET] method.

You want, for example, to retrieve a list of assets, using a client like Postman?

Nothing could be simpler, you just have to fill in your Quable PIM token in the "Token" field, present in the "Authorization" section after having selected the "Bearer" type:

You want to retrieve this assets list using a Python script?

Here is an example of how to use your Quable PIM token:

urlGet = "https://{}.quable.com/api/assets"
import requests
import json

instance = "VOTRE-PIM"
apiToken = "VOTRE-TOKEN"

url = "https://{}.quable.com/api/assets".format(instance)
payload={}
headers = {
'accept': 'application/ld+json',
'Authorization': 'Bearer {}'.format(apiToken)
}

response = requests.request("GET", url, headers=headers, data=payload, timeout=30)

print(response.json())

You will notice that, thanks to these tokens, there is no need to use the [POST] /api_1.php/sessions API

Did this answer your question?