# Get account

> One connected account, as a bare object.

Canonical: <https://www.tryadeli.com/docs/api/accounts/get-account>

`GET https://app.tryadeli.com/api/v1/profiles/{profileId}/accounts/{accountId}`

Authorization: `Bearer <API key>` — see [Authentication](https://www.tryadeli.com/docs/authentication)

Returns a **bare** account object — no `status`, no `errors` wrapper. Its fields
are described in [The account object](https://www.tryadeli.com/docs/api/accounts#the-account-object).

**Path parameters**

| Name        | Type   | Required | Description                                                                           |
| ----------- | ------ | -------- | ------------------------------------------------------------------------------------- |
| `profileId` | `uuid` | Yes      | A profile in your organization. Any other value returns 404 profile\_not\_found.      |
| `accountId` | `uuid` | Yes      | A connected account in that profile. Any other value returns 404 account\_not\_found. |

**Errors** — `401 unauthorized`, `400 invalid_request`, `404 profile_not_found`,
`404 account_not_found`, `502 database_error`.

An X account adds `xCapabilities`, its paid background reads; see
[Update X account](https://www.tryadeli.com/docs/api/accounts/update-x-account).

## Request examples

**cURL**

```bash
curl --fail-with-body "https://app.tryadeli.com/api/v1/profiles/00000000-0000-4000-8000-000000000001/accounts/00000000-0000-0000-0000-000000000000" \
  -H "Authorization: Bearer $ADELI_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://app.tryadeli.com/api/v1/profiles/00000000-0000-4000-8000-000000000001/accounts/00000000-0000-0000-0000-000000000000", {
  headers: {
    Authorization: `Bearer ${process.env.ADELI_API_KEY}`,
  },
});
console.log(await response.json());
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://app.tryadeli.com/api/v1/profiles/00000000-0000-4000-8000-000000000001/accounts/00000000-0000-0000-0000-000000000000",
    headers={"Authorization": f"Bearer {os.environ['ADELI_API_KEY']}"},
)
print(response.json())
```

## Responses

### 200

```json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "accountId": "00000000-0000-0000-0000-000000000000",
  "profileId": "00000000-0000-4000-8000-000000000001",
  "platform": "tiktok",
  "providerId": "app-scoped-open-id",
  "displayName": "Creator",
  "displayIdentifier": "creator",
  "connectionStatus": "connected"
}
```

### 404

```json
{
  "error": {
    "code": "account_not_found",
    "message": "Account not found"
  }
}
```
