> For the complete documentation index, see [llms.txt](https://mastodon.gitbook.io/mastodon/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mastodon.gitbook.io/mastodon/entities/context.md).

# Context

## Example

{% code title="Truncated response from GET statuses/:id/context" %}

```javascript
{
  "ancestors": [
    {
      "id": "103188938570975982",
      "created_at": "2019-11-23T19:44:00.124Z",
      "in_reply_to_id": null,
      ...
    },
    {
      "id": "103188971072973252",
      "created_at": "2019-11-23T19:52:23.398Z",
      "in_reply_to_id": "103188938570975982",
      ...
    },
    {
      "id": "103188982235527758",
      "created_at": "2019-11-23T19:55:08.208Z",
      "in_reply_to_id": "103188971072973252",
      ...
  ],
  "descendants": [
    {
      "id": "103189026958574542",
      "created_at": "2019-11-23T20:06:36.011Z",
      "in_reply_to_id": "103189005915505698",
      ...
    }
  ]
}
```

{% endcode %}

## Required attributes

### `ancestors`

**Description:** Parents in the thread.\
**Type:** Array of [Status](/mastodon/entities/status.md)\
**Version history:** Added in 0.6.0

### `descendants`

**Description:** Children in the thread.\
**Type:** Array of [Status](/mastodon/entities/status.md)\
**Version history:** Added in 0.6.0

## See also

* [GET /api/v1/statuses/:id/context](/mastodon/methods/statuses.md#parent-and-child-statuses)

{% embed url="<https://github.com/tootsuite/mastodon/blob/master/app/serializers/rest/context_serializer.rb>" %}
app/serializers/rest/context\_serializer.rb
{% endembed %}
