> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usecobalt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Pharmacies

> Retrieve pharmacies from the EMR system for your organization.

## Example Request

```bash theme={null}
curl -X GET "https://api.usecobalt.com/v1/pharmacies" \
  -H "client_id: your_client_id" \
  -H "client_secret: your_client_secret" \
  -H "access_token: your_access_token"
```

## Example Response

```json theme={null}
{
  "success": true,
  "pharmacies": [
    {
      "id": "abc123def456ghi789",
      "ehr_id": "12345",
      "name": "Main Street Pharmacy",
      "address": {
        "address1": "123 Main St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94102"
      },
      "phone": "(415) 555-0123",
      "email": "info@mainstreetpharmacy.com",
      "status": "active"
    },
    {
      "id": "xyz789ghi012jkl345",
      "ehr_id": "67890",
      "name": "Downtown Medical Pharmacy",
      "address": {
        "address1": "456 Market St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94105"
      },
      "phone": "(415) 555-0456",
      "email": "contact@downtownmedpharm.com",
      "status": "active"
    }
  ]
}
```

## Response Fields

### Top-Level Fields

* **success** (boolean): Whether the request was successful
* **pharmacies** (array): Array of pharmacy objects for the organization

### Pharmacy Object

* **id** (string): Cobalt pharmacy ID (UUID without dashes)
* **ehr\_id** (string): The pharmacy ID as it appears in the EMR system
* **name** (string): Pharmacy name
* **address** (object): Pharmacy address information
  * **address1** (string): Street address
  * **city** (string): City name
  * **state** (string): State abbreviation
  * **zip** (string): ZIP code
* **phone** (string): Contact phone number
* **email** (string): Contact email address
* **status** (string): Pharmacy status - either "active" or "inactive"


## OpenAPI

````yaml GET /pharmacies
openapi: 3.0.0
info:
  title: Cobalt API
  version: 1.0.1
  description: API for interacting with Cobalt's EHR integration services
servers:
  - url: https://api.usecobalt.com/v1
security:
  - ClientCredentials: []
    ClientSecret: []
    AccessToken: []
paths:
  /pharmacies:
    get:
      tags:
        - Pharmacies
      summary: List pharmacies
      description: Retrieve pharmacies from the EMR system for your organization.
      operationId: getPharmacies
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  pharmacies:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Cobalt pharmacy ID (UUID without dashes)
                        ehr_id:
                          type: string
                          description: The pharmacy ID as it appears in the EMR system
                        name:
                          type: string
                          description: Pharmacy name
                        address:
                          type: object
                          properties:
                            address1:
                              type: string
                              description: Street address
                            city:
                              type: string
                              description: City name
                            state:
                              type: string
                              description: State abbreviation
                            zip:
                              type: string
                              description: ZIP code
                        phone:
                          type: string
                          description: Contact phone number
                        email:
                          type: string
                          description: Contact email address
                        status:
                          type: string
                          enum:
                            - active
                            - inactive
                          description: Pharmacy status
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
        '404':
          description: User not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
components:
  securitySchemes:
    ClientCredentials:
      type: apiKey
      in: header
      name: client_id
    ClientSecret:
      type: apiKey
      in: header
      name: client_secret
    AccessToken:
      type: apiKey
      in: header
      name: access_token

````