Pre-Configured APIs
OpenAI
API configuration: openai
Features
Features | Status |
---|---|
Auth (API Key) | ✅ |
Sync data | ✅ |
Perform workflows | ✅ |
Proxy requests | ✅ |
Receive webhooks | 🚫 (time to contribute: <48h) |
We can implement missing features in <48h, just ask for it in the community.
Getting started
Need help getting started? Get help in the community.
API gotchas
- OpenAI uses API_KEY auth mode with
Authorization: Bearer API_KEY
in the request header to access different endpoints. - Nango supports automatic retries based on the
x-ratelimit-reset-requests
header from OpenAI’s API. This header indicates when the request limit will reset, allowing Nango to efficiently manage API calls. Unlikex-ratelimit-reset-tokens
, which pertains to the total token usage,x-ratelimit-reset-requests
specifically addresses the number of API requests. - For users associated with multiple organizations or accessing their projects via a legacy user API key, optional headers can be included to specify the organization and project for the API request. Organization IDs can be found on your Organization settings page, while project IDs can be found on your General settings page.
- This can be done at the script level:
const config:ProxyConfiguration = {
endpoint: '/v1/models',
headers: {
'OpenAI-Organization': $organizationId,
'OpenAI-Project': $projectId
}
};
Add Getting Started links and Gotchas by editing this page