LoopGantt Gantt API

The Gantt API from LoopGantt — 3 operation(s) for gantt.

GitHub OpenAPI

Operations 3

POST /gantt Create a Gantt chart without an account #
GET /gantt/{token} Read the chart behind a claim link #
GET /gantt/{token}/image.png The chart behind a claim link as a PNG #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/loopgantt-com:loopgantt-com-gantt-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

loopgantt-com-gantt-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LoopGantt Gantt API
  description: Create and manage Gantt chart projects programmatically. Perfect for AI-generated project plans.
  version: 1.0.0
  contact:
    name: LoopGantt Support
    url: https://loopgantt.com
servers:
- url: https://loopgantt.com/api/v1
  description: Production API
security:
- bearerAuth: []
tags:
- name: Gantt
paths:
  /gantt:
    post:
      operationId: createGantt
      summary: Create a Gantt chart without an account
      description: 'Keyless: no API key or account. Send tasks with durations, dependencies, and optional top-level phases (isPhase + parent index); the critical-path engine schedules them and returns a claim link to view, export and save the chart free. Expires in 7 days (30 once opened). Limit: 10/hour, 30/day.'
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGanttRequest'
      responses:
        '201':
          description: Gantt chart created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateGanttResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Body larger than 2 MB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The plan could not be scheduled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limit exceeded (see Retry-After)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Rate limiting temporarily unavailable — retry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-openai-isConsequential: false
      tags:
      - Gantt
  /gantt/{token}:
    get:
      operationId: getGanttByToken
      summary: Read the chart behind a claim link
      description: Returns the unclaimed project, its tasks, dependencies and computed schedule. The token is the last path segment of the claim link. Opening extends the expiry to 30 days from creation.
      security: []
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Chart data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GanttPreviewResponse'
        '404':
          description: Unknown link
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: Expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Temporarily unavailable — the link is not gone, retry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gantt
  /gantt/{token}/image.png:
    get:
      operationId: getGanttImage
      summary: The chart behind a claim link as a PNG
      description: Server-rendered picture of the scheduled chart (critical path highlighted, milestones as diamonds, at most 40 rows). Does not extend the expiry.
      security: []
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: PNG image
          content:
            image/png:
              schema:
                type: string
                format: binary
        '404':
          description: Unknown link
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: Expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Temporarily unavailable — the link is not gone, retry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Gantt
components:
  schemas:
    GanttTaskInput:
      type: object
      required:
      - name
      properties:
        name:
          type: string
          maxLength: 200
          description: Task name
        duration:
          type: integer
          minimum: 0
          maximum: 3650
          default: 1
          description: Duration in working days. 0 makes the task a milestone.
        isMilestone:
          type: boolean
          default: false
          description: Milestone (zero duration, drawn as a diamond)
        description:
          type: string
          maxLength: 2000
        dependencies:
          type: array
          maxItems: 20
          description: 'Predecessors: plain task indices (0-based, earlier tasks only) or objects with type/lag'
          items:
            oneOf:
            - type: integer
              minimum: 0
            - $ref: '#/components/schemas/DependencyInput'
        isPhase:
          type: boolean
          default: false
          description: Top-level phase (a group). Tasks join it via parent = this task's position. Phases take no dependencies and no parent; their dates are the envelope of their tasks.
        parent:
          type: integer
          minimum: 0
          description: Position (0-based) of an EARLIER task with isPhase=true that this task belongs to.
        deadline:
          type: string
          format: date
          description: 'Finish-by date (YYYY-MM-DD). A marker, not a constraint: the task is scheduled normally and the response reports its fit (buffer or days late).'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
            message:
              type: string
              description: Human-readable error message
    GanttPreviewResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project:
              type: object
              description: Project without secrets
            tasks:
              type: array
              items:
                type: object
            dependencies:
              type: array
              items:
                type: object
            schedule:
              $ref: '#/components/schemas/ScheduleSummary'
            expiresAt:
              type: string
              format: date-time
            imageUrl:
              type: string
              format: uri
    DependencyInput:
      type: object
      required:
      - task
      properties:
        task:
          type: integer
          minimum: 0
          description: Index (0-based) of an EARLIER task this task depends on
        type:
          type: string
          enum:
          - FS
          - SS
          - FF
          - SF
          default: FS
          description: 'Dependency type: finish-to-start (default), start-to-start, finish-to-finish, start-to-finish'
        lag:
          type: integer
          minimum: -365
          maximum: 365
          default: 0
          description: Lag (positive) or lead (negative) in working days
    CreateGanttResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            name:
              type: string
            description:
              type: string
              nullable: true
            startDate:
              type: string
              format: date
            taskCount:
              type: integer
            dependencyCount:
              type: integer
            claimUrl:
              type: string
              format: uri
              description: Open to view + export the chart (PNG/PDF) and to save it to an account. Share this link with the user — it is the only handle to the chart.
            previewUrl:
              type: string
              format: uri
              description: Same as claimUrl
            expiresAt:
              type: string
              format: date-time
              description: Deleted after this time unless opened (then 30 days from creation) or claimed
            expiresInDays:
              type: integer
            schedule:
              $ref: '#/components/schemas/ScheduleSummary'
            imageUrl:
              type: string
              format: uri
              description: PNG of the chart (same token). Show it inline when the client supports images.
            deadline:
              type:
              - string
              - 'null'
              format: date
              description: The project deadline you supplied, or null.
            fit:
              type:
              - object
              - 'null'
              description: Project-level deadline fit (null without a deadline).
              properties:
                deadline:
                  type: string
                  format: date
                projectEndDate:
                  type: string
                  format: date
                late:
                  type: boolean
                days:
                  type: integer
                  description: 'Calendar days from projectEndDate to the deadline: >0 buffer, <0 late'
        meta:
          type: object
          properties:
            message:
              type: string
            rateLimit:
              type: object
              properties:
                limit:
                  type: integer
                remaining:
                  type: integer
    ScheduleSummary:
      type: object
      description: Computed by the same critical-path engine as the LoopGantt app
      properties:
        projectStartDate:
          type: string
          format: date
        projectEndDate:
          type: string
          format: date
        projectDurationDays:
          type: integer
        criticalPath:
          type: array
          items:
            type: string
          description: Task ids on the critical path, in order
        tasks:
          type: array
          items:
            $ref: '#/components/schemas/ScheduledTask'
        errors:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              message:
                type: string
              taskIds:
                type: array
                items:
                  type: string
    CreateGanttRequest:
      type: object
      required:
      - name
      - tasks
      properties:
        name:
          type: string
          maxLength: 200
          description: Project name
        description:
          type: string
          maxLength: 2000
        startDate:
          type: string
          format: date
          description: Project start (YYYY-MM-DD). Defaults to today.
        deadline:
          type: string
          format: date
          description: Optional deadline (YYYY-MM-DD, on or after startDate). Drawn as a deadline line on the chart; compare with schedule.projectEndDate to check the plan fits.
        workDays:
          type: array
          items:
            type: integer
            minimum: 1
            maximum: 7
          description: Working weekdays as ISO numbers (1 = Monday … 7 = Sunday). Defaults to Mon–Fri.
        holidays:
          type: array
          maxItems: 200
          items:
            type: string
            format: date
          description: Non-working dates (YYYY-MM-DD)
        tasks:
          type: array
          minItems: 1
          maxItems: 300
          items:
            $ref: '#/components/schemas/GanttTaskInput'
          description: Tasks in execution order. Durations + lags may add up to at most 5000 days.
    ScheduledTask:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        start:
          type: string
          format: date
        end:
          description: 'Last working day of the task (inclusive). Milestones: start = end.'
          type: string
          format: date
        durationDays:
          type: integer
        isMilestone:
          type: boolean
        isCritical:
          type: boolean
          description: On the critical path (zero total float)
        totalFloat:
          type: integer
          description: Working days the task can slip without moving the project end
        isPhase:
          type: boolean
          description: Top-level phase; start/end are the envelope of its tasks.
        deadline:
          type:
          - string
          - 'null'
          format: date
          description: Finish-by marker supplied for the task, or null.
        fit:
          type:
          - object
          - 'null'
          description: How the scheduled end relates to the deadline; null without a deadline.
          properties:
            late:
              type: boolean
            days:
              type: integer
              description: 'Calendar days from the scheduled end to the deadline: >0 buffer, <0 late'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key from https://loopgantt.com/settings/api-keys, sent as `Authorization: Bearer sk_live_…`. Keys carry scopes (projects:read, projects:write, tasks:read, tasks:write) and are limited to 120 requests per minute per key (429 RATE_LIMITED with Retry-After).'