his article explains how to use the Get Provider Schedule Templates query to retrieve provider schedules by location in Vetspire. You’ll also find clear definitions for each field returned in the API response.
Purpose
This query is designed to:
View which providers are scheduled at specific locations
See the schedule templates used for those assignments
Confirm which locations are tied to each template
Identify whether locations are currently active
GraphQL Query Example
query GetProviderScheduleTemplates {
locations {
providerSchedules {
scheduleTemplate {
id
name
locations {
isActive
id
name
}
}
id
providerId
end
}
}
}
Sample Response
Below is an example of the API response with modified, realistic data for training purposes:
{
"providerSchedules": [
{
"end": "2025-07-01",
"id": "1799991",
"providerId": "620001",
"scheduleTemplate": {
"id": "5401",
"name": "7B-M14",
"locations": [
{
"id": "17201",
"isActive": true,
"name": "B DFW Preston Rd"
},
{
"id": "23088",
"isActive": true,
"name": "B AUS Congress Ave"
},
{
"id": "17205",
"isActive": false,
"name": "B DFW Mockingbird Ln"
}
]
}
},
{
"end": "2025-07-05",
"id": "1799992",
"providerId": "620001",
"scheduleTemplate": {
"id": "5401",
"name": "7B-M14",
"locations": [
{
"id": "17201",
"isActive": true,
"name": "B DFW Preston Rd"
},
{
"id": "23088",
"isActive": true,
"name": "B AUS Congress Ave"
},
{
"id": "17205",
"isActive": false,
"name": "B DFW Mockingbird Ln"
}
]
}
}
]
}
Field Definitions
Field | Type | Description |
---|---|---|
locations | Array | List of all locations in your organization. May include provider schedules. |
providerSchedules | Array | List of schedule assignments for providers at each location. |
providerSchedules.id | String | Unique identifier for this provider schedule instance. |
providerSchedules.providerId | String | The Vetspire user ID of the assigned provider. |
providerSchedules.end | Date String | The end date for this schedule assignment, in YYYY-MM-DD format. |
providerSchedules.scheduleTemplate | Object | Details of the schedule template applied to the provider. |
scheduleTemplate.id | String | Unique identifier for the schedule template. |
scheduleTemplate.name | String | Name or label of the schedule template. |
scheduleTemplate.locations | Array | Locations where the schedule template is applied. |
locations[].id | String | Vetspire unique identifier for the location. |
locations[].name | String | Location name (typically includes city and street). |
locations[].isActive | Boolean | Indicates if the location is currently active (true = active, false = inactive). |
Common Use Cases
View assigned schedules for providers at specific locations
Audit which locations use each template
Confirm if templates are applied to inactive locations
Review template reuse across multi-location organizations
Additional Notes
Templates can be shared across locations; updating a template affects all linked locations
Provider IDs correspond to Vetspire user records; a secondary query may be used to pull provider names
The
isActive
field is helpful to identify inactive locations for template cleanup or updates
Need Help?
If you need assistance running this query or interpreting results, please contact Vetspire Support through chat or by submitting a Freshdesk ticket.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article