Skip to main content
By default, related resources are returned as IDs. Use the expand query parameter to inline them.

Example

curl "https://api.spirii.com/v1/transactions/txn_01HW8K9ZT5?expand=cdr,location" \
  -H "Authorization: Bearer YOUR_API_KEY"
The response replaces cdr and location ID strings with the full nested objects.
Expansion is convenient but can increase response size significantly. Expand only what you need.