> For the complete documentation index, see [llms.txt](https://factagora.gitbook.io/deepverify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://factagora.gitbook.io/deepverify/getting-started/access-and-authentication.md).

# Access and authentication

{% hint style="info" %}
DeepVerify API is currently in Alpha. While we don't anticipate the API format to change, it might. Contact us to get a alpha access and heads up on breaking changes.
{% endhint %}

## Getting your API Key

1. **Sign Up**: Create an account on the Factagora developer portal.&#x20;
2. **Generate API Key**: After registering, navigate to the API section of your dashboard and generate your unique API key. This key will be required for authenticating all API requests.&#x20;
3. **Secure Your API Key**: Treat your API key like a password—do not share it publicly or expose it in client-side code. If your key is compromised, you can regenerate it from the dashboard.

## Authentication Process&#x20;

The DeepVerify API uses token-based authentication. Include your API key in the Authorization header of each request using the following format:

```http
Authorization: Bearer YOUR_API_KEY
```

## **Making an Authenticated API Request**&#x20;

Here’s an example of how to send a request with your API key:

```wasm
curl -X POST "https://api.factagora.com/v1/deepverify"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{"input_text": "The data you want to verify"}'
```

In this example:

* **YOUR\_API\_KEY** should be replaced with your actual API key.&#x20;
* **input\_text** is the text or data you want to submit for verification.&#x20;

## Error Handling&#x20;

If your API key is missing, invalid, or expired, the API will return an error message like the following:

```json
{ 
    "error": "Unauthorized", 
    "message": "Invalid or missing API key." 
} 
```

Make sure your API key is correct and active to avoid authentication errors.

## Best Practices&#x20;

* **Rotate Your API Keys**: Regularly rotate your API keys to ensure security.&#x20;
* **Limit Permissions**: If your API supports scopes, limit the permissions of your API key to only the necessary services.&#x20;
* **Monitor Usage**: Use the Factagora dashboard to monitor your API key usage and track potential misuse.
