External APIs
Learn how to integrate any external API into your Create applications using Functions
Functions let you connect to any external API by turning your words into code. This guide will show you how, using the Exa AI Search API as an example.
Watch this step-by-step tutorial to see these principles in action:
Overview
Find API Documentation
Locate the API documentation and endpoints
Create Function
Let Create analyze the API and generate code
Add Credentials
Store API keys as secrets
Test & Build
Test the Function and integrate into your app
Step-by-Step Guide
Create a New Function
Start by creating a Function using any of these methods:
- Logo Menu > New Function
- Press
option-F
(oralt-F
on Windows) - Type
/
in chat > Create Function
Find API Documentation
- Locate the API documentation for your service
- Find the specific endpoint you want to use
- Copy the documentation URL or endpoint details
For example, with Exa:
You can paste API documentation URLs directly into the Function chat - Create will screenshot them and write the necessary code.
Add API Credentials
Most APIs require authentication. Add your credentials as secrets:
- Open the “Secrets” panel from your Function’s 3-dot menu
- Click ”+ Add a new secret”
- Name it clearly (e.g. “EXA_API_KEY” for Exa)
- Enter your API key or token
Always use Secrets to store sensitive credentials.
Configure the Function
Tell Create what you want the Function to do:
- Paste the API documentation URL
- Describe the desired inputs and outputs
- Specify any error handling needs
Example prompt for Exa:
Test the Integration
Verify your setup using the Function test panel:
- Open the 3-dot menu > Test
- Enter sample data
- Click “Run Test”
- Check the response
If you get errors, paste them back into your Function chat. Create often knows how to fix specific API issues.
Build the Frontend
Add your Function to a page or component:
- Type
/
in chat - Select your Function
- Describe how you want to use it
Create will handle:
- Loading states
- Error messages
- UI around the results
Common API Patterns
When working with external APIs:
- Authentication: Most APIs require credentials (API keys, tokens, etc.)
- Error Handling: Plan for different types of errors and prompt Create how you want to handle
- Data Transformation: You may need to format data before/after API calls
Functions have a 5-minute timeout. For longer operations, consider chaining multiple Functions together.
Alternative Integration Methods
Can’t find an API’s documentation? You can also:
- Use automation platforms like Zapier or Make
- Screenshot API documentation for Create to analyze
- Paste example CURL commands or request formats
Need help with a specific API? Join our Discord community and ask in #help-me-build
Was this page helpful?