# Certn API Documentation - Authentication

> Source: https://centric-api-docs.certn.co/#authentication
> Interactive docs: https://centric-api-docs.certn.co/#authentication

## Authentication

We use API keys to authenticate requests. Keys are associated with your Customer Account (rather than an individual User within your account). You can create and manage your API keys in the Integrations area of the Client Portal.

### Using API Keys in Requests

Include a request header named Authorization in your API requests. Set the header value to the string `Api-Key YOUR_API_KEY`:

```http
Authorization: Api-Key YOUR_API_KEY
```

**Example (curl):**
```bash
curl "https://api.sandbox.certn.co/api/public/cases/" \
  -H "Authorization: Api-Key sk_test_abc123def456"
```

**Example (Python):**
```python
import requests

response = requests.get(
    "https://api.sandbox.certn.co/api/public/cases/",
    headers={"Authorization": "Api-Key sk_test_abc123def456"}
)
print(response.json())
```

**Example (Node.js):**
```javascript
const response = await fetch(
  'https://api.sandbox.certn.co/api/public/cases/',
  {
    headers: { 'Authorization': 'Api-Key sk_test_abc123def456' }
  }
);
const data = await response.json();
```

### API Key Expiry

- API keys expire **after 1 year (365 days)** from the date of creation.
- **All Admin users** in the account will receive email notifications **30, 14, 7, and 1 day(s) before expiry, and on the expiry date**.
- **More than one active API key can exist per account, so rotation to a new API key requires no downtime.**

---

## Additional Resources

- [Interactive Documentation](https://centric-api-docs.certn.co)
- [OpenAPI Specification](https://centric-api-docs.certn.co/openapi.yaml)
- [All Reference Docs](https://centric-api-docs.certn.co/reference/)

*Generated from Certn API Documentation*