---
schema_version: "1"
id: fb448321fc96b1bd3ad4dd80df9f585793b720b19cba8500b23658bef06eaffd
title: User Interface API Response Bodies
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_responses_overview.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_overview.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a99484a1349641d15a0f28af99ed61969f06f4c2ed75c1e75b0b241f49a99785
description: A request to a resource returns a response body. Some response bodies also contain nested response bodies.
---
# User Interface API Response Bodies

A request to a resource returns a response body. Some response bodies also contain nested response bodies.

A request to a resource always returns an [HTTP response code](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_errors.htm#ui_api_errors "The response header contains an HTTP status code. If the response isn’t successful, the response body contains an error message, and if appropriate, information about the field or object where the error occurred."), whether the request was successful or not.

- **[User Interface API Top-Level Response Bodies](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_top_level.htm)**  
    These response bodies are returned from requests to User Interface API resources. They may contain nested response bodies
- **[User Interface API Nested Response Bodies](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_nested.htm)**  
    These response bodies are nested in top-level response bodies.