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

# Authentication

> Learn how to authenticate your requests to the NeetoPlaydash API using API keys.

### Generating an API Key

To use the NeetoPlaydash APIs, you must first generate an API key.
[Learn how to generate your API key here.](https://help.neetoplaydash.com/articles/api-keys)

### Making authenticated API requests

To authenticate your API requests, include a valid API key in the X-Api-Key header.

```bash theme={null}
curl https://{your-subdomain}.neetoplaydash.com/api/external/v1/projects \
  --header 'X-Api-Key: your-api-key' \
  --header 'Content-Type: application/json'
```

### Header Format

Include your API key in the `X-Api-Key` header of every request:

```http theme={null}
X-Api-Key: your_api_key_here
```

<Tip>
  Generate separate API keys for different workspaces. An API key generated in
  one workspace will not work in another.
</Tip>

<Warning>
  API keys provide access to sensitive data. Treat them like passwords and
  follow security best practices.
</Warning>

## Error Responses

### 401 Unauthorized

If your API key is missing, invalid, or expired, you'll receive a 401 error:

```json theme={null}
{
  "error": "Could not authenticate, invalid API Key"
}
```

### Common Authentication Issues

<AccordionGroup>
  <Accordion title="Invalid API key">
    **Problem**: API key is missing or invalid. <br />
    **Solution**: Verify your API key is correct and hasn't been revoked/expired.
  </Accordion>

  <Accordion title="Incorrect workspace subdomain">
    **Problem**: Subdomain is left as the default value (**spinkart**) or
    incorrect. <br />
    **Solution**: Verify your subdomain name is properly added in the request
    URL.
  </Accordion>
</AccordionGroup>
