> ## Documentation Index
> Fetch the complete documentation index at: https://tapace.lk/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Check an API key

> Returns the organization and environment of the key used.

Use this to confirm a key works and to see whether it's a test or live key.

**organizationId** `string`

The organization the key belongs to.

**environment** `string`

`test` or `live`.

```bash cURL theme={null}
curl https://api.tapace.lk/v1/me \
  -H "Authorization: Bearer $TAPACE_API_KEY"
```

```json 200 theme={null}
{
  "organizationId": "org_2tQpA8kLmN3vX",
  "environment": "test"
}
```

```json 401 theme={null}
{
  "error": {
    "code": "invalid_api_key",
    "message": "Invalid API key."
  },
  "requestId": "req_8f3a2c1d9e7b6a54"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.