---
agentTools:
  projectIndex: https://pneumacare.readme.io/llms.txt
---

# Get a service provider

Get the profile of a service provider using their ID

[block:callout]
{
  "type": "warning",
  "title": "This endpoint is authenticated by the public API key"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "PneumaCare API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.pneumahealth.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "j72nw6niu527coanz7b8"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/services/providers/{id}": {
      "get": {
        "summary": "Get a service provider",
        "description": "Get the profile of a service provider using their ID",
        "operationId": "get-a-service-provider",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the service provider of interest",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"Service provider retrieved successfully\",\n  \"data\": {\n    \"id\": \"dj8oivaf1ffqw6j\",\n    \"name\": \"Lukman Sanni\",\n    \"email\": \"service+testings@pneuma.care\",\n    \"phone\": \"09087645321\",\n    \"type\": \"dietitian\",\n    \"description\": \"Cool fitness instructor test update.\",\n    \"business_name\": \"Viva Gym\",\n    \"address\": {\n      \"street_line_one\": \"76, Olagunju Street\",\n      \"street_line_two\": \"Behind shawarma plaza\",\n      \"post_code\": \"900108\",\n      \"type\": \"office\",\n      \"city\": \"Ikeja\",\n      \"state\": \"Lagos\",\n      \"country\": \"Nigeria\"\n    },\n    \"service_plans\": [\n      {\n        \"id\": \"33bl6pn6wdxrz76\",\n        \"name\": \"Premium\",\n        \"schedule\": \"Every Week\",\n        \"price\": \"500000\",\n        \"unit\": \"Weekly\",\n        \"type\": \"dietitian\",\n        \"description\": \"Eat Nutritious\",\n        \"created_at\": \"2021-11-24T14:38:12.000Z\",\n        \"updated_at\": null\n      },\n      {\n        \"id\": \"3e3p9huvdk4wz8m\",\n        \"name\": \"Premium\",\n        \"schedule\": \"Every Week\",\n        \"price\": \"500000\",\n        \"unit\": \"Weekly\",\n        \"type\": \"dietitian\",\n        \"description\": \"Eat Nutritious\",\n        \"created_at\": \"2021-11-24T14:08:11.000Z\",\n        \"updated_at\": null\n      },\n      {\n        \"id\": \"g2icl31jonzl67b\",\n        \"name\": \"Beginner\",\n        \"schedule\": \"Everyday\",\n        \"price\": \"300000\",\n        \"unit\": \"daily\",\n        \"type\": \"dietitian\",\n        \"description\": \"Monday to Friday of non stop fitness\",\n        \"created_at\": \"2021-11-24T14:38:12.000Z\",\n        \"updated_at\": null\n      },\n      {\n        \"id\": \"ubnss7d7t7z7y97\",\n        \"name\": \"Beginner\",\n        \"schedule\": \"Everyday\",\n        \"price\": \"300000\",\n        \"unit\": \"daily\",\n        \"type\": \"dietitian\",\n        \"description\": \"Monday to Friday of non stop fitness\",\n        \"created_at\": \"2021-11-24T14:08:11.000Z\",\n        \"updated_at\": null\n      }\n    ],\n    \"website_url\": null,\n    \"created_at\": \"2021-11-19T11:10:12.000Z\",\n    \"updated_at\": \"2021-11-23T19:42:07.000Z\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Service provider retrieved successfully"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "dj8oivaf1ffqw6j"
                        },
                        "name": {
                          "type": "string",
                          "example": "Lukman Sanni"
                        },
                        "email": {
                          "type": "string",
                          "example": "service+testings@pneuma.care"
                        },
                        "phone": {
                          "type": "string",
                          "example": "09087645321"
                        },
                        "type": {
                          "type": "string",
                          "example": "dietitian"
                        },
                        "description": {
                          "type": "string",
                          "example": "Cool fitness instructor test update."
                        },
                        "business_name": {
                          "type": "string",
                          "example": "Viva Gym"
                        },
                        "address": {
                          "type": "object",
                          "properties": {
                            "street_line_one": {
                              "type": "string",
                              "example": "76, Olagunju Street"
                            },
                            "street_line_two": {
                              "type": "string",
                              "example": "Behind shawarma plaza"
                            },
                            "post_code": {
                              "type": "string",
                              "example": "900108"
                            },
                            "type": {
                              "type": "string",
                              "example": "office"
                            },
                            "city": {
                              "type": "string",
                              "example": "Ikeja"
                            },
                            "state": {
                              "type": "string",
                              "example": "Lagos"
                            },
                            "country": {
                              "type": "string",
                              "example": "Nigeria"
                            }
                          }
                        },
                        "service_plans": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "33bl6pn6wdxrz76"
                              },
                              "name": {
                                "type": "string",
                                "example": "Premium"
                              },
                              "schedule": {
                                "type": "string",
                                "example": "Every Week"
                              },
                              "price": {
                                "type": "string",
                                "example": "500000"
                              },
                              "unit": {
                                "type": "string",
                                "example": "Weekly"
                              },
                              "type": {
                                "type": "string",
                                "example": "dietitian"
                              },
                              "description": {
                                "type": "string",
                                "example": "Eat Nutritious"
                              },
                              "created_at": {
                                "type": "string",
                                "example": "2021-11-24T14:38:12.000Z"
                              },
                              "updated_at": {}
                            }
                          }
                        },
                        "website_url": {},
                        "created_at": {
                          "type": "string",
                          "example": "2021-11-19T11:10:12.000Z"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2021-11-23T19:42:07.000Z"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61332d511b787e0026bea8d5:6198a161b1139800107957a0"
}
```