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

# Authenticate

### Description

This endpoint allows you to **verify your API token** and retrieve basic account information. Useful for confirming that your API key is valid and active.

### Headers

<ParamField header="Authorization" type="string" required="true">
  Bearer YOUR\_API\_TOKEN — obtainable from **Hyperstack Dashboard → Settings → API Access**
</ParamField>

### Success Response Fields

<ResponseField name="success" type="boolean">
  Indicates whether authentication was successful.
</ResponseField>

<ResponseField name="message" type="string">
  A human-readable confirmation message. Value: `"Authentication Successful"`.
</ResponseField>

<ResponseField name="account_name" type="string">
  The display name of the authenticated organization.
</ResponseField>

<ResponseField name="account_id" type="string">
  The unique slug/identifier of the authenticated organization.
</ResponseField>

### Responses

<ResponseExample>
  ```json 200 Success theme={null}
  {
    "success": true,
    "message": "Authentication Successful",
    "account_name": "Acme Corp",
    "account_id": "acme-corp"
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "detail": "Invalid token or organization not found"
  }
  ```
</ResponseExample>

```bash theme={null}
curl -X POST "https://api.thehyperstack.com/v1/auth" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
```
