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
1
Create a New Function
Start by creating a Function using any of these methods:
- Logo Menu > New Function
- Press
option-F(oralt-Fon Windows) - Type
/in chat > Create Function
2
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
3
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
4
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
5
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
6
Build the Frontend
Add your Function to a page or component:
- Type
/in chat - Select your Function
- Describe how you want to use it
- 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