For an overview of managing all interface types, see Managing Agent Interfaces.
1
Access the Interfaces Panel
Access the interfaces panel by either:
- Clicking the ellipsis (…) menu to the right of your Agent and selecting Interfaces
- Opening the Agent in Studio and clicking Settings > Interfaces
2
Access API Interface Details
In the interfaces panel, click View API Info next to the API interface. You will see a window detailing the Agent’s unique identifiers and providing example Agent Execution API calls.
3
Choose Your Code Example Format
Airia provides example API calls in multiple formats including cURL and Python. Select your preferred format using the dropdown menu to get language-specific implementation examples.
4
Configure Your Integration
Use the provided GUID, API URL, and code examples to configure the API interface within your application or system integration.
5
Manage API Keys
API keys are required for authentication. You can manage them directly from the API interface:Click View API Keys from the API interface details
Select New API Key to create a new key
Enter the API Key Name
Define the Scope of this key to the appropriate project
Click Create to generate your API Key
6
Test Your API Interface
Test your API interface configuration using your chosen development tool or application. Use the provided code examples as a starting point to verify the agent responds correctly to API calls.
Troubleshooting
How do I ensure my API interface uses the correct agent version?
How do I ensure my API interface uses the correct agent version?
All interfaces execute against the Active version of your agent. Before configuring your API interface:
- Navigate to the Agent you want to configure API access for
- Verify the Agent is showing the correct Active Version from your recent testing
- If an update is required:
- Go into the Agent
- Select the version number in the top left
- Click Set Active
- Return to the list of Agents
Why are my API calls failing with authentication errors?
Why are my API calls failing with authentication errors?
API authentication issues are commonly caused by:
- Missing API Key: Ensure you have generated an API key and included it in your requests
- Incorrect Scope: Verify your API key has the correct project scope permissions
- Expired API Key: Check if your API key needs to be regenerated
- Wrong Headers: Ensure you’re using the correct authentication headers as shown in the code examples
How do I test my API integration?
How do I test my API integration?
To verify your API interface is working correctly:
- Use the provided code examples as a starting point
- Test with a simple request first to verify connectivity
- Check the response format matches your expectations
- Verify the agent processes requests as expected
- Monitor the request/response in your development tools