---
schema_version: "1"
id: 2f837246ad014eb6bcc2cdf33747b60e12ca16f15cdcdfd3725ba31ea84e50b1
title: Appointment Slots (GET)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-scheduler-dev-guide/guides/salesforce-scheduler/scheduler-error-codes/appointmentslots-get.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/appointmentslots-get.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1b0eb838337cea7571f2a48e482be03688455ed52eb365067b95785535ff34a5
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# Appointment Slots (GET)

Contains the error codes and error code messages related with Salesforce Scheduler API for the `getAppointmentSlots` (GET) resource.

This table lists HTTP response code descriptions that are unique to this resource.

|HTTP Response Code|Error Code|Description|
|------------------|----------|-----------|
|400|`BAD_REQUEST`|Specify either a `workTypeGroupId` or a `workTypeId` and try again.|
|400|`BAD_REQUEST`|This isn't a valid `durationInMinutes` value. Specify a valid duration in minutes for the `durationInMinutes` parameter.|
|400|`BAD_REQUEST`|`AppointmentTopicTimeSlot` is not accessible for the current user.|
|400|`BAD_REQUEST`|Looks like you don't have access to `{WorkTypeGroup}` or `{WorkType}` object. Your Salesforce admin can help with that.|
|400|`BAD_REQUEST`|Looks like you don't have access to `{ServiceTerritory} `object. Your Salesforce admin can help with that.|
|400|`BAD_REQUEST`|Looks like you don't have access to `{ServiceResource}` object. Your Salesforce admin can help with that.|
|400|`BAD_REQUEST`|Remove the `primaryResourceId` from the requiredResourceIds list and try again.|
|400|`BAD_REQUEST`|Provide a valid `primaryResourceId` and try again.|
|400|`BAD_REQUEST`|The maximum number of required service resources is 5. Reduce the number of service resources in your request and try again.|
|400|`BAD_REQUEST`|Provide a resource ID in the `requiredResourceIds` field, and try again.|
|400|`BAD_REQUEST`|Specify a valid `workType` and try again.|
|400|`BAD_REQUEST`|Provide an end time that's after the start time, and try again.|
|400|`BAD_REQUEST`|This isn't a valid `startTime` or `endTime` value. Specify a valid date and time for the `startTime` or `endTime` parameter.|
|400|`BAD_REQUEST`|There is no active `workTypeGroup`.|

