# Check a key

`GET` `https://goblins-call-api.onrender.com/v1/me`

Says which key you are using and which workspace it acts in, with that workspace’s balance. A quick way to confirm a key works.

Needs a [workspace API key](https://www.cracklehq.com/docs/authentication).

## Response

- `apiKey` (object): The key the request was made with.
- `workspaces` (object[]): The one workspace the key belongs to.

Request:

cURL:

```bash
curl "https://goblins-call-api.onrender.com/v1/me" \
  -H "Authorization: Bearer $CRACKLE_API_KEY"
```

Node.js:

```js
const response = await fetch('https://goblins-call-api.onrender.com/v1/me', {
  headers: {
    Authorization: `Bearer ${process.env.CRACKLE_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

Python:

```python
import os
import requests

response = requests.get(
    "https://goblins-call-api.onrender.com/v1/me",
    headers={"Authorization": f"Bearer {os.environ['CRACKLE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
data = response.json()
```

Response · 200 OK:

```json
{
  "account": null,
  "apiKey": { "id": "key_4b7e1d9a2c5f8036", "name": "Production server" },
  "isAdmin": false,
  "workspaces": [
    {
      "id": "usr_8c1d2e3f4a5b",
      "name": "Sunrise Dental",
      "balance": 42.1853,
      "currency": "USD",
      "plan": "starter",
      "maxConcurrentCalls": 5
    }
  ]
}
```

Source: https://www.cracklehq.com/docs/reference/workspace/me
