Authentication
To use the Lynks AI External API, you need to authenticate your requests. The authentication method depends on your subscription level.API Keys
There are two types of API keys you may need to use:- Lynks API Key: Required for all users
- OpenAI API Key: Required for certain subscription levels
Lynks API Key
All users must include the Lynks API Key in their requests. This key is provided when you sign up for the Lynks AI service. To use the Lynks API Key, include it in theX-Api-Key header of your HTTP requests:
OpenAI API Key
Depending on your subscription level, you may also need to provide an OpenAI API Key. This key is used for advanced AI-powered features. If required, include the OpenAI API Key in theX-OpenAI-Key header of your HTTP requests:
If you’re unsure whether you need to provide an OpenAI API Key, please check your subscription details or contact our support team.
Obtaining an OpenAI API Key
If your subscription requires an OpenAI API Key, follow these steps to obtain one:- Go to the OpenAI website and sign up for an account if you haven’t already.
- Once logged in, navigate to the API section of your account.
- Create a new API key. Make sure to save this key securely, as it won’t be shown again.
- Use this key in your requests to the Lynks AI External API as described above.
Example Request
Here’s an example of how to include both API keys in a curl request:your_lynks_api_key_here and your_openai_api_key_here with your actual API keys.