# 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.

Last updated: 2026-10-25. Source: https://docs.smartchat.marketing/en/api/reference/meta/get_me/

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`

| | |
|---|---|
| Permission | `none` ([all permissions](https://docs.smartchat.marketing/en/api/permissions/)) |
| Risk | Read |
| Idempotency-Key | Not needed ([how it works](https://docs.smartchat.marketing/en/concepts/idempotency/)) |
| Safe to repeat | Safe: the call only reads. |
| Rate limit class | `read` (120 requests per minute per key) |
| Confirmation | None |
| MCP tool | Not available in MCP |
| Since version | 2026-10-25 |

## What it does

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

## Examples

**curl**

```bash
curl "https://api.smartchat.marketing/v1/me" \
  -H "Authorization: Bearer $SMARTCHAT_API_KEY"
```

**Python**

```python
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())
```

**TypeScript**

```typescript
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):


```json
{
  "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-*`.

| Name | Type | Description |
|---|---|---|
| `object` | string | Always "me". always `me` |
| `id` | string | Account ID (same as account.id). |
| `account` | object | The SmartChat account. |
| `account.object` | string | Always "account". always `account` |
| `account.id` | string | Account ID. |
| `account.name` | string | Name of the account. up to 200 characters |
| `key` | object or null | The API key used for this call. Null for OAuth connections. |
| `key.object` | string | Always "api_key". always `api_key` |
| `key.id` | string | API key ID. |
| `key.name` | string | Name of the key. up to 200 characters |
| `key.prefix` | string | First characters of the key, for display only. up to 40 characters |
| `auth_type` | string | How the call was authenticated. one of: `api_key`, `oauth` |
| `environment` | string | Environment of the key. Only "live" exists today; a sandbox may follow later. one of: `live` |
| `scopes` | array of string | Permissions of this key or connection. up to 100 items |
| `rate_limits` | object | Requests per minute for this key, by rate limit class. |
| `rate_limits.read` | integer | Limit for read calls. 1 to 100000 |
| `rate_limits.write` | integer | Limit for write calls. 1 to 100000 |
| `rate_limits.send` | integer | Limit for calls that send messages. 1 to 100000 |
| `rate_limits.bulk` | integer | Limit for bulk calls. 1 to 100000 |
| `rate_limits.upload` | integer | Limit for uploads. 1 to 100000 |
| `api_version` | string | Version of the API that answered (also in the SmartChat-Version header). up to 10 characters |

## Errors

| Code | Status | When |
|---|---|---|
| [`api_key_expired`](https://docs.smartchat.marketing/en/errors/#api_key_expired) | 401 | This API key has expired. |
| [`api_key_invalid`](https://docs.smartchat.marketing/en/errors/#api_key_invalid) | 401 | This API key is not valid. |
| [`api_key_revoked`](https://docs.smartchat.marketing/en/errors/#api_key_revoked) | 401 | This API key was revoked. |
| [`authentication_required`](https://docs.smartchat.marketing/en/errors/#authentication_required) | 401 | No API key was sent. Send 'Authorization: Bearer <key>'. |
| [`account_blocked`](https://docs.smartchat.marketing/en/errors/#account_blocked) | 403 | This account is blocked. |
| [`ip_not_allowed`](https://docs.smartchat.marketing/en/errors/#ip_not_allowed) | 403 | This IP address is not allowed for this key. |
| [`rate_limited`](https://docs.smartchat.marketing/en/errors/#rate_limited) | 429 | Too many requests. Wait and try again. |
| [`internal_error`](https://docs.smartchat.marketing/en/errors/#internal_error) | 500 | Something went wrong on our side. |
| [`service_unavailable`](https://docs.smartchat.marketing/en/errors/#service_unavailable) | 503 | The service is temporarily unavailable. |

All errors use [one format](https://docs.smartchat.marketing/en/concepts/errors-overview/).
