# Get Account from accountId

**URL:** <https://community.shiphero.com/t/get-account-from-accountid/2434>\
**Category:** GraphQL API\
**Created:** [April 12, 2023, 9:04am UTC](https://community.shiphero.com/t/get-account-from-accountid/2434 "2023-04-12T09:04:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadMamdouh](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@ahmadMamdouh](https://community.shiphero.com/u/ahmadMamdouh)\
**Post date:** [April 12, 2023, 9:04am UTC](https://community.shiphero.com/t/get-account-from-accountid/2434/1 "2023-04-12T09:04:38Z")

</div>

May you help me to know how could I get account data from accountId?  
i used this query but it doesn’t work

```auto
query {
  account(id: "your_account_id") {
    request_id
    complexity
    data {
      id
      email
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [April 12, 2023, 11:43am UTC](https://community.shiphero.com/t/get-account-from-accountid/2434/2 "2023-04-12T11:43:21Z")

</div>

Hey @ahmadMamdouh,

Thanks for reaching out!

When querying using account, the account query should look something like this:

```auto
{
  account{
    request_id
    complexity
    data {
      id
      legacy_id
      email
    }
  }
}

```

Please let me know if you have any questions or concerns.

Best,  
RayanP
