curl --request GET \
--url https://api.stage.origin.one/api/v2/services/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.origin.one/api/v2/services/{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/services/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "5 Panel Urine Drug Screen",
"object": "service",
"type": "labBasedToxicology",
"attributes": {
"category": "standardPanels",
"type": "urine"
},
"isDot": false,
"url": "/api/v2/services/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
}{
"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 service
Returns a service offered by a company linked to the API token or by one of its locations. Returns 404 for any failure — does not reveal whether the service exists. Requires the service.read scope.
curl --request GET \
--url https://api.stage.origin.one/api/v2/services/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.stage.origin.one/api/v2/services/{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/services/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "5 Panel Urine Drug Screen",
"object": "service",
"type": "labBasedToxicology",
"attributes": {
"category": "standardPanels",
"type": "urine"
},
"isDot": false,
"url": "/api/v2/services/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
}{
"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.
"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
Response
Success.
Unique identifier of the service.
"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
Service name.
"5 Panel Urine Drug Screen"
Object type; always service.
service "service"
Service type. New values may be added.
additionalService, backgroundCheckService, breathAlcoholTest, clinical, confirmationTest, injuryCareService, instantDrugTest, labBasedToxicology, occupationalHealthService, safetyTraining, vaccination, mroService, unknown "labBasedToxicology"
Testing category and specimen type; null when the service has neither.
Show child attributes
Show child attributes
Whether the service is a DOT-regulated test.
false
Canonical path of this resource, relative to the API origin.
"/api/v2/services/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"