Skip to main content

Expanding responses

Expanding responses allows you to reduce API requests by including additional related information in a single response.

What are expandable properties?

The Mambo API's expand feature lets you retrieve additional properties of objects in your response:

  • Properties that can be expanded are marked as Expandable in the API explorer.
  • You can request multiple expanded properties in a single API call.
  • Nested properties can be expanded using dot notation (e.g., parent.summary).

Examples of expanding responses

Basic expansion (single property)

Retrieve a user's point transactions with the parent object expanded:

Java
.NET
PHP

Multiple properties expansion

Expand both the parent and source properties in a single request:

Java
.NET
PHP

Nested properties expansion

Access deeper levels of related objects using dot notation:

Java
.NET
PHP

Performance considerations

While expansion reduces the number of API calls, expanding too many properties in a single request may increase response time. Consider expanding only the properties you need for your immediate use case.