Fleek AI Agent APIs
Deploying AI agents on Fleek has never been a hassle and you can now deploy from within your applications and projects as well. By exposing these APIs, Fleek enables users to seamlessly integrate AI agent management capabilities into their applications.
Prerequisites and setup
To follow the guide below, you need to ensure that you have a Fleek account. You can sign up for one if you don’t already have one at app.fleek.xyz.
API Base Endpoint: https://api.fleek.xyz/api
Creating API Keys
Create an API key from the Eliza deployment page
To create an API key:
- On the fleek.xyz/eliza page. Click on the “Account settings” button at the bottom of the page.
- The “API tokens” tab shows up with all the API keys you have created.
- To create an API key from the Eliza deployment page, click on the “Create API token” button and a modal appears.
- Type in the name of the API key you want to create and click on the “Create API token” button.
Create an API key from the Fleek dashboard
To create an API key:
- Navigate to your Fleek project’s dashboard.
- In the sidebar, click on your profile icon to reveal the menu.
- Select the menu option “Account settings”.
- In the account settings page, click on the “API Keys” tab.
- On this panel, you will find a list of managed API keys.
To create an API key, type your desired key name in the input field and click on the “Add API token” button.
Using the Fleek agent APIs
You can find the API documentation here. With these APIs, you can:
- Fetch an agent’s details
- Create agents
- Get an agent’s status (active or inactive)
- View your created agents
- Delete agents
- Update agents
- Get agent logs
- Start an agent
- Stop an agent
AI agent proxy on Fleek
Fleek provides an endpoint that proxies requests to an AI agent’s API on Fleek, supporting GET, POST, PUT, DELETE, etc.
URL structure:
https://api.fleek.xyz/api/v1/ai-agents/{agentId}/api/{*key}
Headers:
X-Api-Key
– Required for authentication.
Path Parameters:
agentId
– AI agent’s ID.key
– API path on the agent’s server.
Example Request
fetch('https://api.fleek.xyz/api/v1/ai-agents/12345/api/message', {
method: 'POST',
headers: {
'X-Api-Key': 'your-api-key',
'Content-Type': 'application/json',
},
body: JSON.stringify({ text: 'Hello, AI!' }),
});
For more details, check the full API docs .