Example Request
Example Response
Authorizations
Response
200 - application/json
Successful response
The response is of type object
.
curl --request GET \
--url https://api.usecobalt.com/v1/locations \
--header 'access_token: <api-key>' \
--header 'client_id: <api-key>' \
--header 'client_secret: <api-key>'
{
"success": true,
"locations": [
{
"id": "<string>",
"name": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"phone": "<string>",
"fax": "<string>"
}
]
}
Returns a list of locations associated with an account.
curl --request GET \
--url https://api.usecobalt.com/v1/locations \
--header 'access_token: <api-key>' \
--header 'client_id: <api-key>' \
--header 'client_secret: <api-key>'
{
"success": true,
"locations": [
{
"id": "<string>",
"name": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"phone": "<string>",
"fax": "<string>"
}
]
}
curl -X GET https://api.usecobalt.com/v1/locations \
-H 'Content-Type: application/json' \
-H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \
-H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \
-H 'access_token: 493JKLHIU98789hLKH9HHJH'
{
"success": true,
"locations": [
{
"id": "2452",
"name": "Happy Clinic",
"address": {
"address1": "1234 Main St",
"address2": "",
"city": "Sunnyland",
"state": "CA",
"zip": "23423"
},
"phone": "2223334444",
"fax": "5556667777"
}
]
}
Successful response
The response is of type object
.