Relationships

When an object has related items, for example (an address is attached to a profile), there will be a relationships key in the response, which contains details about the type and ID of any related items.

Example Object with Relationships

{
  "data": {
    ...
  },
  "relationships": {
    "account": {
      "data": {
        "type": "accounts",
        "id": "{ACCOUNT_ID}"
      }
    },
    "profile": {
      "data": {
        "type": "profiles",
        "id": "{PROFILE_ID}"
      }
    }
  }
}

Was this page helpful?