curl --request GET \
--url https://api.stage.origin.one/api/v2/clinics/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.origin.one/api/v2/clinics/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stage.origin.one/api/v2/clinics/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"address": {
"city": "Seattle",
"country": "US",
"line1": "123 Main St",
"line2": "Suite 400",
"object": "address",
"postalCode": "98101",
"state": "WA"
},
"id": "42",
"name": "Austin Downtown Clinic",
"object": "clinic",
"phone": "+1-512-555-0100",
"coordinates": {
"lat": 30.2672,
"long": -97.7431
},
"isActive": true,
"services": [
{
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "5 Panel Urine Drug Screen",
"object": "service",
"type": "labBasedToxicology",
"url": "/api/v2/services/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
}
],
"url": "/api/v2/clinics/42",
"distance": {
"miles": 1.8
}
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}Get a clinic
Returns a clinic owned by the API token’s tenant. Returns 404 for any failure — does not reveal whether the clinic exists. Requires the clinic.read scope.
curl --request GET \
--url https://api.stage.origin.one/api/v2/clinics/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.origin.one/api/v2/clinics/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stage.origin.one/api/v2/clinics/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"address": {
"city": "Seattle",
"country": "US",
"line1": "123 Main St",
"line2": "Suite 400",
"object": "address",
"postalCode": "98101",
"state": "WA"
},
"id": "42",
"name": "Austin Downtown Clinic",
"object": "clinic",
"phone": "+1-512-555-0100",
"coordinates": {
"lat": 30.2672,
"long": -97.7431
},
"isActive": true,
"services": [
{
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "5 Panel Urine Drug Screen",
"object": "service",
"type": "labBasedToxicology",
"url": "/api/v2/services/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
}
],
"url": "/api/v2/clinics/42",
"distance": {
"miles": 1.8
}
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}{
"error": "Bad Request",
"errors": [
{
"code": "tooSmall",
"detail": "Too small: expected number to be >=1",
"meta": {},
"source": {
"pointer": "/page"
}
}
],
"statusCode": 400
}Authorizations
Origin One API token. Pass it in the Authorization header: Authorization: Bearer <token>.
Path Parameters
Unique identifier of the resource.
"123"
Response
Success.
Postal address; null when the clinic has none.
Show child attributes
Show child attributes
Unique identifier of the clinic.
"42"
Clinic name.
"Austin Downtown Clinic"
Object type; always clinic.
clinic "clinic"
Primary phone number.
"+1-512-555-0100"
Geographic position; null when the clinic has none on file.
Show child attributes
Show child attributes
Whether the clinic is currently active.
true
Services the clinic offers that your API token can order, from the catalog of its linked companies. Empty when none of them match, which does not mean the clinic offers no services.
Show child attributes
Show child attributes
Canonical path of this resource, relative to the API origin.
"/api/v2/clinics/42"
Distance from the search origin. Present only in search results ranked by distance.
Show child attributes
Show child attributes