smartchat

Get current connection

Returns the account, the API key or connection and the permissions used for this call. Use it to test a connection or to see which permissions a key has. Read-only; no side effects.

GET /v1/me

Permissionnone (all permissions)
RiskRead
Idempotency-KeyNot needed (how it works)
Safe to repeatSafe: the call only reads.
Rate limit classread (120 requests per minute per key)
ConfirmationNone
MCP toolNot available in MCP
Since version2026-10-25

#What it does

  • Only reads data. It changes nothing and sends nothing.

#Examples

curl "https://api.smartchat.marketing/v1/me" \
  -H "Authorization: Bearer $SMARTCHAT_API_KEY"
import os
import requests

response = requests.get(
    "https://api.smartchat.marketing/v1/me",
    headers={"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"]},
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.smartchat.marketing/v1/me", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Response (200):

{
  "object": "me",
  "id": "acc_0f8c1a2e4b7d4c3e9a5b6d7e8f901234",
  "account": {
    "object": "account",
    "id": "acc_0f8c1a2e4b7d4c3e9a5b6d7e8f901234",
    "name": "Casa Olivo"
  },
  "key": {
    "object": "api_key",
    "id": "key_1a2b3c4d5e6f47a8b9c0d1e2f3a4b5c6",
    "name": "Zapier",
    "prefix": "sc_live_ab12"
  },
  "auth_type": "api_key",
  "environment": "live",
  "scopes": [
    "contacts:read",
    "templates:read"
  ],
  "rate_limits": {
    "read": 120,
    "write": 120,
    "send": 120,
    "bulk": 120,
    "upload": 120
  },
  "api_version": "2026-10-25"
}

#Response

Status 200. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.

NameTypeDescription
objectstringAlways "me". always me
idstringAccount ID (same as account.id).
accountobjectThe SmartChat account.
account.objectstringAlways "account". always account
account.idstringAccount ID.
account.namestringName of the account. up to 200 characters
keyobject or nullThe API key used for this call. Null for OAuth connections.
key.objectstringAlways "api_key". always api_key
key.idstringAPI key ID.
key.namestringName of the key. up to 200 characters
key.prefixstringFirst characters of the key, for display only. up to 40 characters
auth_typestringHow the call was authenticated. one of: api_key, oauth
environmentstringEnvironment of the key. Only "live" exists today; a sandbox may follow later. one of: live
scopesarray of stringPermissions of this key or connection. up to 100 items
rate_limitsobjectRequests per minute for this key, by rate limit class.
rate_limits.readintegerLimit for read calls. 1 to 100000
rate_limits.writeintegerLimit for write calls. 1 to 100000
rate_limits.sendintegerLimit for calls that send messages. 1 to 100000
rate_limits.bulkintegerLimit for bulk calls. 1 to 100000
rate_limits.uploadintegerLimit for uploads. 1 to 100000
api_versionstringVersion of the API that answered (also in the SmartChat-Version header). up to 10 characters

#Errors

CodeStatusWhen
api_key_expired401This API key has expired.
api_key_invalid401This API key is not valid.
api_key_revoked401This API key was revoked.
authentication_required401No API key was sent. Send 'Authorization: Bearer <key>'.
account_blocked403This account is blocked.
ip_not_allowed403This IP address is not allowed for this key.
rate_limited429Too many requests. Wait and try again.
internal_error500Something went wrong on our side.
service_unavailable503The service is temporarily unavailable.

All errors use one format.