---
agentTools:
  projectIndex: https://docs.oncallhealth.io/llms.txt
---

# Get a provider

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "oncall",
    "version": "1.2"
  },
  "servers": [
    {
      "url": "https://api.oncallhealth.ca"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://example.com/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/providers/{id}/": {
      "get": {
        "summary": "Get a provider",
        "description": "",
        "operationId": "get-a-provider",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the provider.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"url\": \"https://api.oncallhealth.ca/providers/1234/\",\n    \"full_name\": \"Test Provider\",\n    \"email\": \"provider@example.com\",\n    \"memberships\": [\n        \"https://api.oncallhealth.ca/divisions/123/\"\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "example": "https://api.oncallhealth.ca/providers/1234/"
                    },
                    "full_name": {
                      "type": "string",
                      "example": "Test Provider"
                    },
                    "email": {
                      "type": "string",
                      "example": "provider@example.com"
                    },
                    "memberships": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "https://api.oncallhealth.ca/divisions/123/"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Authorization",
        "value": "Token YOUR_PROVIDER_TOKEN"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "62e03e9f2e494c003d6f7e00:62e03e9f2e494c003d6f7e1a"
}
```