REST API Reference

Complete reference documentation for the Aku REST API.

Authentication

The Aku API uses API keys for authentication. You can obtain an API key from your dashboard.

All API requests must include your API key in the Authorization header:

bash
curl -X GET \
  https://api.aku-ai.com/v1/agents \
  -H "Authorization: Bearer your_api_key"

Base URL

All API requests should be made to:

text
https://api.aku-ai.com/v1

Agents

Agents are specialized AI assistants designed for specific real estate tasks.

List Agents

Returns a list of all available agents.

GET
/agents
bash
curl -X GET \
  https://api.aku-ai.com/v1/agents \
  -H "Authorization: Bearer your_api_key"

Generate with Agent

Generate content using a specific agent.

POST
/agents/{agent_id}/generate

Path Parameters:

  • agent_id - The ID of the agent to use

Request Body:

json
{
  "model": "gpt-4",
  "property": {
    "type": "apartment",
    "bedrooms": 2,
    "bathrooms": 1,
    "sqft": 1200,
    "features": ["hardwood floors", "updated kitchen", "balcony"],
    "neighborhood": "downtown",
    "city": "Seattle",
    "state": "WA"
  }
}
bash
curl -X POST \
  https://api.aku-ai.com/v1/agents/property-description/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "model": "gpt-4",
    "property": {
      "type": "apartment",
      "bedrooms": 2,
      "bathrooms": 1,
      "sqft": 1200,
      "features": ["hardwood floors", "updated kitchen", "balcony"],
      "neighborhood": "downtown",
      "city": "Seattle",
      "state": "WA"
    }
  }'

Prompts

Prompts are pre-defined templates for generating specific types of content.

List Prompts

Returns a list of all available prompts.

GET
/prompts
bash
curl -X GET \
  https://api.aku-ai.com/v1/prompts \
  -H "Authorization: Bearer your_api_key"

Errors

The Aku API uses conventional HTTP response codes to indicate the success or failure of an API request.

CodeDescription
200 - OKEverything worked as expected.
400 - Bad RequestThe request was unacceptable, often due to missing a required parameter.
401 - UnauthorizedNo valid API key provided.
403 - ForbiddenThe API key doesn't have permissions to perform the request.
404 - Not FoundThe requested resource doesn't exist.
429 - Too Many RequestsToo many requests hit the API too quickly.
500 - Server ErrorSomething went wrong on Aku's end.

Rate Limits

The Aku API implements rate limiting to ensure the stability and availability of the service for all users. Rate limits vary based on your subscription plan.

PlanRate Limit
Starter10 requests per minute
Professional60 requests per minute
EnterpriseCustom limits based on your needs

Rate limit headers are included in all API responses:

  • X-RateLimit-Limit: The maximum number of requests you're permitted to make per minute.
  • X-RateLimit-Remaining: The number of requests remaining in the current rate limit window.
  • X-RateLimit-Reset: The time at which the current rate limit window resets in UTC epoch seconds.