> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pagsmile.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Managed Account

> Retrieve a managed account.

Retrieve one visible managed account by merchant reference or bank account reference.

### Endpoint

`POST /v3/onboarding/managed_accounts/detail`

### Authentication and target

A user-scoped owner credential is required. The selected managed account must be visible through the user's active Master Account relationship. This route does not become accessible merely by adding account-targeting headers.

Do not send X-ISPB or X-Account-Number. This user-only management route rejects account-targeting headers. The account selector documented below belongs in the JSON request body.

### Request body

Send exactly one selector:

| Field          | Required    | Description                                    |
| -------------- | ----------- | ---------------------------------------------- |
| `reference_id` | Conditional | Managed-account merchant reference.            |
| `account`      | Conditional | Object containing `ispb` and `account_number`. |

### Success data

A `managed_account` with reference, holder document/name, document type, model, account and compliance statuses, compliance session, trading name, notification email, timestamps, optional bank account, and optional linked account.

### Behavior and validation

This is a synchronous read. Bank account references can be absent before opening completes.

### Errors

Every call can fail for missing or invalid signature headers, an expired timestamp, nonce replay, an invalid body hash or signature, insufficient permission, or a downstream service error. Endpoint-specific errors include:

* `invalid_parameter` when neither or both selectors are sent.
* `invalid_user` when the owner lacks an active Master context.
* `permission_denied` when the account is outside the owner's relationship.
* `not_found` when no visible account matches.

### Example request

```bash theme={null}
curl --request POST "${BASE_URL}/v3/onboarding/managed_accounts/detail" \
  --header "Content-Type: application/json" \
  --header "X-Client-ID: ${CLIENT_ID}" \
  --header "X-Timestamp: ${TIMESTAMP_MS}" \
  --header "X-Nonce: ${NONCE}" \
  --header "X-Signature: ${SIGNATURE}" \
  --data '{"reference_id":"managed-va-demo-001"}'
```

### Example response

```json theme={null}
{"code":200,"message":"success","data":{"managed_account":{"reference_id":"managed-va-demo-001","model":2,"status":1,"compliance_status":1}},"time":1710002100000}
```
