Skip to main content

Authentication

All API endpoints are authenticated using API Keys. These can either be passed directly to the URL or they can be defined in an environment file. Passing Directly:
"headers": [
  {
    x-api-key: "YOUR_KEY"
  }
]
Environment Variables:
export VALENCE_API_KEY= "api_key_here"
export VALENCE_DISCRETE_URL= "https://discrete-api-url" # Optional: custom Discrete audio endpoint
export VALENCE_ASYNCH_URL= "https://asynch-api-url" # Optional: custom Asynch audio endpoint
export VALENCE_LOG_LEVEL= "DEBUG"  # Optional: INFO, DEBUG, ERROR