Skip to main content
GET
Returns who the API key you send belongs to: an account key or a client key, the account’s user ID, the client ID for a client key, and the name and email on it. It changes nothing and spends nothing, so it is a safe first call to check a key before an agent acts. It never returns the key itself. Unlike Get Account by API Key, it also answers for client API keys.

Query Parameters

string
required
Your SmartLead API key (a main or client key)

Response Fields

boolean
true
string
account for a main account key, client for a client key
integer
The key’s ID for an account key created on the API keys page; null for a client key or an older account key
string
The name given to that key; null when there is no key_id
integer
The account’s user ID
integer
The client’s ID for a client key; null for an account key
string
The account’s name, or the client’s name for a client key
string
The account’s email, or the client’s email for a client key
string
full for an account key (the whole account), client for a client key (that client’s data only)
boolean
Whether the key can make calls that use credits. true for every key today.

Response Codes

Success
Request successful
Bad Request
A query parameter other than api_key was sent
Unauthorized
Invalid or missing API key
Internal Server Error
Server error; retry the request