Endpoints
Explore all available Polylith API endpoints to manage workflows, agents, and integrations seamlessly.
Polylith offers a variety of endpoints to interact with workflows, agents, and integrations. This guide provides an overview of all key endpoints, their usage, and example requests.
1. Base URL
All API requests start with the following base URL:
Copy
Copy
Make sure to include your Polylith API Key in the request headers:
Copy
Copy
2. Endpoints Overview
Endpoint
Method
Description
/workflows
POST
Create a new AI workflow.
/workflows/{id}
GET
Retrieve details of a specific workflow.
/agents
POST
Deploy a new AI agent.
/agents/{id}
GET
Get details of a deployed agent.
/integrations
GET
List all supported integrations.
/vector-stores
GET
Retrieve supported vector stores.
3. Endpoint Details and Examples
1. Create a Workflow
Endpoint:
Copy
Copy
Request Example:
Copy
Copy
Response Example:
Copy
Copy
2. Get Workflow Details
Endpoint:
Copy
Copy
Request Example:
Copy
Copy
Response Example:
Copy
Copy
3. Deploy an AI Agent
Endpoint:
Copy
Copy
Request Example:
Copy
Copy
Response Example:
Copy
Copy
4. Get Agent Details
Endpoint:
Copy
Copy
Request Example:
Copy
Copy
Response Example:
Copy
Copy
5. List All Integrations
Endpoint:
Copy
Copy
Request Example:
Copy
Copy
Response Example:
Copy
Copy
6. Retrieve Supported Vector Stores
Endpoint:
Copy
Copy
Request Example:
Copy
Copy
Response Example:
Copy
Copy
4. Error Responses
API responses include standardized error codes for troubleshooting:
Code
Message
Description
400
Bad Request
Invalid request data.
401
Unauthorized
Missing or invalid API key.
404
Not Found
Resource does not exist.
429
Too Many Requests
Rate limit exceeded.
500
Internal Server Error
Something went wrong on our end.
Conclusion
Polylith provides a robust set of endpoints to create workflows, deploy agents, and integrate with AI models and vector stores. Use these APIs to build scalable AI solutions with ease.
For additional resources and advanced examples, explore the full API Reference section.
Last updated