---
schema_version: "1"
id: 193f995582de50f6a9491c3415946a6abf1e2665d89306257b1c777caf70cf43
title: Get Service Appointment Details
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/uc5-get-service-appointment-details.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/uc5-get-service-appointment-details.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 67be8a8bfb96b598fad610fc11275493c91ca764f07b4df38091cff0cb7dbea0
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# Get Service Appointment Details

A service appointment represents an appointment that’s booked via Salesforce Scheduler. Use a GET method to fetch the details of a service appointment record.

This task helps you retrieve additional details of each service appointment that you listed in the previous task.

**Sample Request**

Here’s a sample GET request to retrieve the details of a service appointment.

```nolang
https://YOUR_INSTANCE.salesforce.com/services/data/vXX.X/query/?q=SELECT+Id,SchedEndTime,SchedStartTime,ServiceTerritoryId,WorkTypeId+FROM+ServiceAppointment+WHERE+id+=+'08pB0000000aKf2IAE'
```

Where `YOUR_INSTANCE` is a variable.

**Sample Response**

The request returns the details of an anonymous service appointment.

```nolang
{
  "totalSize": 1,
  "done": true,
  "records": [
    {
      "attributes": {
        "type": "ServiceAppointment",
        "url": "/services/data/v53.0/sobjects/ServiceAppointment/08pB0000000aKf2IAE"
      },
      "Id": "08pB0000000aKf2IAE",
      "SchedEndTime": "2021-10-25T18:30:00.000+0000",
      "SchedStartTime": "2021-10-25T17:30:00.000+0000",
      "ServiceTerritoryId": "0HhB0000000TaHOKA0",
      "WorkTypeId": "08qB0000000UF63IAG"
    }
  ]
}
```

Use a `collection` object to capture all the details of service appointments.

