curl --request GET \
--url https://api.partoo.co/v2/api_keys \
--header 'x-APIKey: <api-key>'{
"page": 1,
"max_page": 10,
"count": 287,
"api_keys": [
{
"id": 3245,
"label": "API key name",
"user_id": "5309c3a237bbc544d8e26737",
"user_name": "Perceval de Galles",
"user_role": "BUSINESS_MANAGER",
"disabled": false,
"expiration_date": "2022-06-05",
"last_used_at": "2019-08-22 11:46:38.914467+00",
"created_by": "5309c3a237bbc544d8e26737",
"created_by_name": "John Smith",
"created_at": "2018-03-12 11:49:03.399475+00",
"revoked_by": "5309c3a237bbc544d8e26737",
"revoked_by_name": "John Smith",
"revoked_at": "2020-10-20 11:46:38.914467+00",
"ip_whitelist": [
"172.16.0.0/12",
"127.0.0.1"
]
}
]
}This endpoint lets you list all the API keys you have access to.
curl --request GET \
--url https://api.partoo.co/v2/api_keys \
--header 'x-APIKey: <api-key>'{
"page": 1,
"max_page": 10,
"count": 287,
"api_keys": [
{
"id": 3245,
"label": "API key name",
"user_id": "5309c3a237bbc544d8e26737",
"user_name": "Perceval de Galles",
"user_role": "BUSINESS_MANAGER",
"disabled": false,
"expiration_date": "2022-06-05",
"last_used_at": "2019-08-22 11:46:38.914467+00",
"created_by": "5309c3a237bbc544d8e26737",
"created_by_name": "John Smith",
"created_at": "2018-03-12 11:49:03.399475+00",
"revoked_by": "5309c3a237bbc544d8e26737",
"revoked_by_name": "John Smith",
"revoked_at": "2020-10-20 11:46:38.914467+00",
"ip_whitelist": [
"172.16.0.0/12",
"127.0.0.1"
]
}
]
}The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.
Filter api_keys by status. A key is inactive when expired or disabled.
active, inactive, disabled, expired "active"
Was this page helpful?