Skip to main content

Authentication

All requests to the Talkover API require authentication using environment tokens. This guide explains how to get your token and use it in API requests.

Getting Your Environment Token

Step 1: Access Your Dashboard

  1. Log in to your Talkover account at app.talkover.ai
  2. Navigate to Account in the left sidebar
  3. Click on “Environments”

Step 2: Copy Your Token

Your environment tokens will be displayed in the Environments section. Each environment has its own token that starts with talq_ followed by a long string of characters.
Example token format: talq_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
Security Notice: Your environment token is like a password. Never share it publicly, commit it to version control, or include it in client-side code.

Using Your Token in API Requests

HTTP headers

Include your token in the Authorization header of all API requests:

Example cURL Request

Example JavaScript Request

Example Python Request

Environment Variables

For security, store your token in environment variables:

Bash/Linux/macOS

Windows (Command Prompt)

Windows (PowerShell)

Using Environment Variables in Code

Token Security Best practices

Do

  • Store tokens in environment variables
  • Use secure secret management services
  • Rotate tokens regularly
  • Use different tokens for different environments (dev, staging, prod)

Don’t

  • Never commit tokens to version control
  • Don’t share tokens in public repositories
  • Avoid hardcoding tokens in your application
  • Don’t include tokens in client-side code

Token Management

Regenerating Your Token

If your token is compromised or you need to rotate it:
  1. Go to AccountEnvironments in your dashboard
  2. Click “Regenerate Token”
  3. Copy the new token
  4. Update your applications with the new token
  5. Delete the old token from your code

Token Expiration

Environment tokens don’t expire automatically, but you can regenerate them at any time for security purposes.

Troubleshooting

Common Authentication Errors

Testing Your Token

You can test if your token is working by making a simple request:
If successful, you should receive a response with your agents list (or an empty array if you don’t have any agents yet).

Next Steps