Create an API Key

1

Sign Up / Log In

Visit Datura Console https://console.datura.ai/ and log in to your account. If you don’t have an account, create one first.

2

Navigate to API Keys

After logging in to Datura Console, go to the API Keys page.

3

Generate New Key

  1. Click on the “Generate API Key” button.
  2. Give your key a name for easy identification.
  3. Click on the “Generate” button to create the key.
  4. Copy the key immediately and store it securely. You will not be able to see it again.
Keep your API key confidential. Do not share it publicly or expose it in client-side code. If compromised, it could result in unauthorized access to your account

API keys are essential for authenticating requests to Desearch’s API. They ensure secure access and help manage usage limits. Follow this guide to create and use your API key effectively.

Using Your API Key

To authenticate requests, include your API key in the Authorization header.

curl --location 'https://apis.datura.ai/desearch/ai/search' \
--header 'Authorization: dt_$UZA25rX0jLD654y7AGswWvqABCeJHFiCLqqBWPF6abc' \
--header 'Content-Type: application/json' \
--data '{
  "date_filter": "PAST_24_HOURS",
  "model": "NOVA",
  "prompt": "Latest TAO trends",
  "streaming": true,
  "tools": [
    "Twitter Search"
  ]
}'

Managing Your API Key

Regenerate Key: If your key is compromised, revoke it and generate a new one.

Delete Key: Remove unused keys to enhance security.

Important API Key Security Practices

✅ Keep your API key secret.

✅ Use environment variables to store keys securely.

✅ Implement rate limiting and monitoring for API usage.