Setting up your API Credentials
Last updated August 13, 2024
Setting Up Your API Credentials
Before you can start using Duffel's API to access travel products and build your applications, you'll need to set up your API credentials. These credentials ensure secure access to your account and allow you to manage your API usage.
Obtaining Your API Credentials
- Log in to your Duffel Account: Visit the Duffel website and log in using the credentials you created during signup.
- Navigate to the API Credentials Section: Look for an "API" or "Developer" section within your account settings. Typically, you can find this in the navigation menu or user profile area.
- Generate API Keys: Within the API Credentials section, you'll find options to generate API keys. Click the "Generate API Key" button to create a new key.
- Choose a Key Name: Give your API key a descriptive name that helps you identify it for future reference.
- Copy and Secure Your API Key: Once generated, your API key will be displayed. Carefully copy this key and store it in a secure location. Do not share your API key with anyone.
- Manage API Key Permissions: In some cases, you may be able to set specific permissions for each API key. This allows you to control which parts of the API a particular key can access.
**Remember:** It's good practice to have separate API keys for different applications or environments (development, production, etc.) to enhance security and traceability.
Was this article helpful?