Praecise account/ Reference/ Account
Whether an address or an id is a Praecise account
get/api/accounts/lookup
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.
Before you call
- Credential
Authorization: Basic $KEY- Callers
Products marked for it in the account service's client list (the Praecise Cloud console).
Parameters
- emailstring (email)In the query
- idstring (uuid)In the query. The account's id:
subin ID tokens.
Responses
- 200application/jsonThere is such an account.
- accountobjectrequired
- idstring (uuid)requiredNever changes. Keep this, not the address.
- emailstring (email)required
- confirmedbooleanrequiredWhether the person has shown they read that mailbox. When false, do not act for the account on the strength of the address.
- idstring (uuid)required
- accountobjectrequired
- 400application/jsonNeither or both of
emailandidwere given, or the value is malformed.- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 401application/jsonNo valid client id and secret.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 403application/jsonThis client may not look accounts up.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 404application/jsonNo Praecise account has that address, or that id.
- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired
- 429application/jsonMore than 120 lookups in a minute.
Retry-Aftersays when to try again.- errorstringrequiredWhat went wrong, in a sentence.
- detailstring
- errorstringrequired