Back to Developer Hub
REST API Documentation v1

REST API Reference

Programmatic access to OmniRoles' full project generation engine. Authenticate with an API key, send a project description, and receive PRDs, database schemas, API contracts, and Jira sprint boards in structured JSON.

Authentication & Base URL

Base URLhttps://api.omniroles.com/v1
Authorization Header

All API requests require a persistent API key passed via the HTTP Authorization header:

Authorization: Bearer <your-api-key>

Generate and scope API keys from the OmniRoles dashboard under Settings → API Keys. Keys inherit your subscription tier and consume credits per call.

API Endpoints

POST/v1/projects/generate

Generate a complete project architecture, ERD, API specs, and sprint board from a natural-language description.

Request Body (JSON):
{
  "description": "Multi-tenant pharmacy management SaaS",
  "tech_stack": ["Next.js", "FastAPI", "PostgreSQL"],
  "output_format": "full"
}
Response (202 Accepted):
{
  "project_id": "proj_abc123",
  "status": "processing",
  "estimated_time_seconds": 600,
  "webhook_url": null
}
Credits consumed: 5,000 credits (or 20,000 for Business tier)
GET/v1/projects/{project_id}

Check generation status and retrieve structured output artifact URLs.

Response (200 OK):
{
  "project_id": "proj_abc123",
  "status": "completed",
  "outputs": {
    "prd": { "url": "https://cdn.omniroles.com/outputs/proj_abc123/prd.md", "format": "markdown" },
    "erd": { "url": "https://cdn.omniroles.com/outputs/proj_abc123/erd.mmd", "format": "mermaid" },
    "api_contracts": { "url": "https://cdn.omniroles.com/outputs/proj_abc123/apis.json", "format": "json" },
    "jira_sprint": { "url": "https://cdn.omniroles.com/outputs/proj_abc123/jira.json", "format": "jira-import" }
  },
  "credits_consumed": 5000
}
GET/v1/projects

List all project generations in your workspace with status filtering and pagination.

Query params: status ("processing" | "completed" | "failed"), limit (default 20, max 100), offset (default 0).
POST/v1/webhooks

Register a webhook URL to receive HTTPS callback payloads when background generations complete.

{
  "url": "https://your-server.com/webhooks/omniroles",
  "events": ["project.completed", "project.failed"]
}

Rate Limits & Response Codes

Subscription TierRequests / MinCredits Consumed / Call
Free101,000
Pro605,000
Business12020,000
Enterprise30050,000
Standard Error Codes:
401 UnauthorizedInvalid or missing API key
402 Payment RequiredInsufficient credit balance in account
429 Too Many RequestsRate limit exceeded
422 UnprocessableInvalid JSON body schema
500 Internal ErrorServer processing issue
SaaS Infrastructure Direct Integration

OmniRoles REST API provides direct software consumption access to BrandXpoint's proprietary software engine. It does not enable third-party sellers to resell or deliver services to end customers.

Built on industry-leading infrastructure

OpenAI GPT-4o
Anthropic Claude
Google Gemini
LangChain
FastAPI
WebSockets
PostgreSQL
Redis
Next.js
Docker
Jira API
Linear API
OpenAI GPT-4o
Anthropic Claude
Google Gemini
LangChain
FastAPI
WebSockets
PostgreSQL
Redis
Next.js
Docker
Jira API
Linear API
Start Today

From Napkin Idea
to Developer-Ready
Sprint Backlog.

Join founders, agencies, and CTOs who use OmniRoles to architect enterprise systems in minutes — not months.

Pro tier starting at $49/month.Pay-as-you-go top-ups available.