# Whether an address or an id is a Praecise account

`GET /api/accounts/lookup` · Praecise account · Account

For the server of a product that acts on accounts on another product's word. Authenticated with that product's own client id and secret; a person's service token or session is not accepted. Give exactly one of `email` and `id`; prefer `id` whenever the caller holds it. Limited to 120 calls a minute for each client, and logged.

- Callers: Products marked for it in the account service's client list (the Praecise Cloud console).

## Parameters

- `email` (query), string
- `id` (query), string: The account's id: `sub` in ID tokens.

## Responses

- `200`: There is such an account.
- `400`: Neither or both of `email` and `id` were given, or the value is malformed.
- `401`: No valid client id and secret.
- `403`: This client may not look accounts up.
- `404`: No Praecise account has that address, or that id.
- `429`: More than 120 lookups in a minute. `Retry-After` says when to try again.

## Example

```sh
curl -X GET 'https://accounts.praecise.com/api/accounts/lookup' \
  -H 'Authorization: Basic $KEY'
```
