I noticed that the Perplexity API Reference page only lists one route for calling the Chat Completions API. However, there is a mention of a Bearer token in the headers, but there is no information or sample on how to obtain this token for use in the Chat Completions requests.
Could you provide guidance on how to retrieve the token, and perhaps share additional examples demonstrating the usage of the Perplexity API?
API Reference
I noticed that the Perplexity API Reference page only lists one route for calling the Chat Completions API. However, there is a mention of a Bearer token in the headers, but there is no information or sample on how to obtain this token for use in the Chat Completions requests.
Could you provide guidance on how to retrieve the token, and perhaps share additional examples demonstrating the usage of the Perplexity API?