Consumers
Get consumer
Consumer detail including their aggregated counts with the connections they have authorized.
get/vault/consumers/{consumer_id}
Path parameters
consumer_idstring required
ID of the consumer to return
Headers
x-apideck-app-idstring required
The ID of your Unify application
Response
Consumer
Example response
{
"status_code": 200,
"status": "OK",
"data": {
"consumer_id": "test_consumer_id",
"application_id": "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
"metadata": {
"account_name": "SpaceX",
"user_name": "Elon Musk",
"email": "elon@musk.com",
"image": "https://www.spacex.com/static/images/share.jpg"
},
"connections": [
{
"id": "1111+test_user_id",
"name": "Salesforce",
"icon": "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png",
"logo": "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg",
"website": "https://www.salesforce.com",
"tag_line": "CRM software solutions and enterprise cloud computing from Salesforce, the leader in customer relationship management (CRM) and PaaS. Free 30 day trial.",
"service_id": "teamleader",
"unified_api": "crm",
"consumer_id": "test_user_id",
"auth_type": "oauth2",
"enabled": true,
"settings": {
"instance_url": "https://eu28.salesforce.com"
},
"metadata": {
"account": {
"name": "My Company",
"id": "c01458a5-7276-41ce-bc19-639906b0450a"
},
"plan": "enterprise"
},
"created_at": "2020-09-19T12:18:37.071Z",
"updated_at": "2020-09-19T12:18:37.071Z",
"state": "authorized",
"health": "ok"
}
],
"services": [
"salesforce",
"stripe"
],
"aggregated_request_count": 101,
"request_counts": {
"unify": 100,
"proxy": 10,
"vault": 21
},
"created": "2021-05-07T12:55:42.242Z",
"modified": "2021-05-07T12:55:42.242Z",
"request_count_updated": "2021-05-07T12:55:42.242Z"
},
"meta": {
"items_on_page": 50,
"cursors": {
"previous": "em9oby1jcm06OnBhZ2U6OjE=",
"current": "em9oby1jcm06OnBhZ2U6OjI=",
"next": "em9oby1jcm06OnBhZ2U6OjM="
},
"total_count": 1,
"warnings": [
{
"type": "downstream_request_failed",
"status_code": 429,
"operation": "getManager"
}
]
}
}