> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tapace.lk/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.

<ResponseField name="organizationId" type="string">
  The organization the key belongs to.
</ResponseField>

<ResponseField name="environment" type="string">
  `test` or `live`.
</ResponseField>

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

<ResponseExample>
  ```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"
  }
  ```
</ResponseExample>


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