Skip to main content

API Overview

The DreamSolve API is a REST API that uses standard HTTP methods and returns JSON responses.

Base URL

https://dreamsolve.ai/api/v1

Authentication

All API endpoints require authentication using an API key. Include your API key in the x-api-key header with every request.

x-api-key: YOUR_API_KEY

Getting an API Key

To use the DreamSolve API, you first need to generate an API key. See the Generating API Keys guide for step-by-step instructions.

Example Request

curl -X GET \
-H "x-api-key: YOUR_API_KEY" \
https://dreamsolve.ai/api/v1/nodes

Response Format

All responses are returned in JSON format.

Success Response

{
"id": "123",
"name": "Example",
"created_at": "2024-01-15T10:00:00Z"
}

Error Response

{
"error": "Error description"
}

HTTP Status Codes

Status CodeDescription
200Success
201Created
400Bad Request - Missing or invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions
404Not Found - Resource not found
405Method Not Allowed
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Available Endpoints

Core Resources

EndpointDescription
/api/v1/nodesManage nodes (projects, tasks, etc.)
/api/v1/api-keysManage API keys

AI & Agents

EndpointDescription
/api/v1/agentsExecute and manage AI agents
/api/v1/completionsGenerate AI completions

Organizations

EndpointDescription
/api/v1/organizationsManage organization invitations

Rate Limiting

API requests may be subject to rate limiting. If you exceed the rate limit, you will receive a 429 status code. Implement exponential backoff in your client to handle rate limiting gracefully.

Pagination

List endpoints may return paginated results for large datasets. Check the response for pagination metadata when working with collections.

Need Help?

If you encounter issues with the API, please check:

  1. Your API key is valid and included in the request headers
  2. The request body is properly formatted JSON
  3. All required parameters are provided
  4. You have the necessary permissions for the operation

For additional support, visit the DreamSolve documentation or contact support.