# Re: v2 \`ancestors\` API behavior

**URL:** <https://community.developer.atlassian.com/t/re-v2-ancestors-api-behavior/78344>\
**Category:** \[CLOSED\] Confluence Cloud Embeds EAP\
**Created:** [March 17, 2024, 3:57am UTC](https://community.developer.atlassian.com/t/re-v2-ancestors-api-behavior/78344 "2024-03-17T03:57:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaiMunechika](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/kaimunechika/32/48451_2.png) [@KaiMunechika](https://community.developer.atlassian.com/u/KaiMunechika)\
**Post date:** [March 17, 2024, 3:57am UTC](https://community.developer.atlassian.com/t/re-v2-ancestors-api-behavior/78344/1 "2024-03-17T03:57:31Z")

</div>

Reposting and answering (apologies for the delay) the following question from @jens (from [here](https://community.developer.atlassian.com/t/rfc-37-embeds-as-a-new-confluence-content-type/77650/8))

> could you please confirm if instances of this new content type show up in the V2 API at [/pages/{ID}/ancestors](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors/#api-group-ancestors), similar to how whiteboards are represented there?

Yes, for example, say we have the following content tree:

```auto
Space home page
|- a whiteboard
   | - an embed
       |- a page leaf

```

And we call the v2 API:  
GET `pages/{id of "a page leaf"}/ancestors`,

the output today would look like this:

```auto
{
    "results": [
        {
            "id": "453204411600",
            "type": "page"
        },
        {
            "id": "453204443229",
            "type": "whiteboard"
        },
        {
            "id": "453204377782",
            "type": "embed"
        }
    ],
    "_links": {
        "base": "https://pug.jira-dev.com/wiki"
    }
}

```

And this applies for the corresponding [whiteboards/{ID}/ancestors API](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-ancestors/#api-whiteboards-id-ancestors-get)
