PredictPilot API

    Integrate AI-powered analytics into your applications with our comprehensive REST API

    Version 1.0
    REST API

    API Features

    RESTful API

    Simple, consistent REST endpoints with JSON responses

    High Performance

    Sub-second response times with intelligent caching

    Secure by Default

    OAuth 2.0, API keys, and rate limiting built-in

    Global CDN

    Low latency access from anywhere in the world

    API Endpoints

    POST
    /api/v1/query
    Submit natural language queries and receive chart data

    Parameters:

    query
    string
    required

    Natural language question

    data_source
    string
    required

    Data source identifier

    format
    string

    Response format (json, csv)

    GET
    /api/v1/data-sources
    List all connected data sources

    Parameters:

    page
    number

    Page number for pagination

    limit
    number

    Number of results per page

    POST
    /api/v1/data-sources
    Connect a new data source

    Parameters:

    type
    string
    required

    Type of data source (mysql, postgresql, csv, etc.)

    connection_string
    string
    required

    Connection details

    name
    string
    required

    Display name for the data source

    GET
    /api/v1/charts/{id}
    Retrieve a specific chart by ID

    Parameters:

    id
    string
    required

    Chart identifier

    Getting Started

    Start integrating PredictPilot into your applications today

    1. Get Your API Key

    Sign up for a PredictPilot account and generate your API key from the dashboard.

    Authorization: Bearer your-api-key-here
    2. Make Your First Request

    Try our API with a simple natural language query.

    curl -X POST https://api.predictpilot.com/v1/query \ -H "Authorization: Bearer your-api-key" \ -d '{"query": "Show me sales by month"}'