REST Endpoints

Complete documentation of all HTTP REST endpoints in the GoFigr server API.

Base URL: https://api.gofigr.io Supported API Versions: v1, v1.1, v1.2, v1.3, v1.4

All endpoints are versioned: /api/{version}/resource/

Authentication:

  • JWT Bearer token: Authorization: Bearer {access_token}

  • API Key: Authorization: Token {api_key}


Table of Contents


Authentication

Obtain JWT Token Pair

Authenticates user and returns access/refresh token pair.

Request Body:

Response: 200 OK


Refresh Access Token

Request Body:

Response: 200 OK


Password Reset

Request Body:


Bootstrap

Get Bootstrap Data

Returns all data needed for initial frontend load in a single request.

Response: 200 OK

This eliminates multiple round trips on initial page load.


Workspaces

List Workspaces

Lists all workspaces the user has access to.


Get Workspace


Create Workspace

Request Body:


Get Workspace Overview

Returns aggregated counts for the workspace.

Response: 200 OK


Get Workspace Dashboard

Returns all data needed for the home view in a single request.

Query Parameters:

  • activity_limit (integer): Number of activity items (default: 10, max: 50)

  • exclude_deleted (boolean): Exclude deleted items from activity log

Response: 200 OK


Workspace Members


Workspace Sharing


Stories

Stories are AI-generated presentations from figure collections.

List Stories


Get Story

Response:


Create Story

Request Body:


Update Story

Request Body:


Delete Story


Comments

Comments support Markdown, @mentions, and threading.

List Comments

Query Parameters (required):

  • target_type: asset, asset_revision, figure, or figure_revision

  • target_id: API ID of the target object

Response: 200 OK


Create Comment

Request Body:

Mentions using @username trigger email notifications.


Update Comment

Only the comment author can edit. Sets is_edited: true.

Request Body:


Delete Comment

Only the comment author can delete.


Create AI Response

Creates an AI-authored reply to the specified comment. The AI generates the response asynchronously.

Response: 201 Created - The empty AI comment (content populated async)


Reactions

Emoji reactions on comments.

List Reactions


Create Reaction

Request Body:


Delete Reaction


Deep Insight (AI)

AI-powered analysis of figures using Amazon Bedrock.

Query Deep Insight

Request Body:

Response (non-streaming):

Response (streaming): Server-Sent Events


Compare Revisions

Request Body:


Extract Figure Code

Extracts the code that generated a figure using AI.

Request Body:

Response:


Get Datasets

Returns data inputs/outputs for a figure revision.

Response:


Text-Only Query

AI query without a figure (text-only context).

Request Body:


Check Availability

Checks if AI can process a figure (permissions, rate limits).

Response:


Story Generation Endpoints

Optimized endpoints for AI story generation.


SSH Keys

Manage SSH keys for Git repository imports.

List SSH Keys

Response:


Add SSH Key

Request Body:

Note: Private key is stored encrypted. Never returned in API responses.


Update SSH Key

Request Body:


Delete SSH Key


Git Repository

Check Repository Access

Validates Git repository URL and authentication.

Request Body:


Data Upload

Upload User Data

Upload and process files (Git repos, PowerPoint, Word docs).


Asset Revisions - Additional Endpoints

Unlinks a figure revision from an asset revision.

Request Body:


AI Usage

Get AI Usage

Returns AI usage statistics and quota information.


API Version History

Version
Key Changes

v1.4

AI-generated titles and descriptions (ai_title, ai_description fields)

v1.3

Tasks API, Comments, Reactions, created_on_behalf fields, optimized workspace list

v1.2

Lazy-loaded revision data (data returned separately, not inline)

v1.1

Nested objects in responses (analyses/figures return full objects, not just IDs)

v1

Original API

v1.4 (Latest)

  • Added ai_title and ai_description fields to figures and revisions

  • AI-generated descriptions for imported content

v1.3

  • Tasks API: Background task tracking (/tasks/ endpoint)

  • Comments & Reactions: Full collaboration features

  • Attribution: created_on_behalf, created_on_behalf_name, created_on_behalf_email fields

  • Performance: ShallowWorkspaceSerializer for list operations

v1.2

  • Revision data: Data objects returned via separate fetch, not inline with revision

  • Improves performance for large revisions

v1.1

  • Nested objects: Workspace responses include full analysis objects (not just IDs)

  • Analysis responses include full figure objects

v1

  • Original API with core CRUD operations


Notes

  1. API Versioning: Use v1.4 for new integrations.

  2. Data Processing: Revisions are processed asynchronously. Check status endpoint.

  3. Shallow Representations: Use ?shallow=true for lightweight responses.

  4. Silent Operations: Use ?silent=true to suppress activity logs.

  5. Base64 Encoding: Binary data is base64-encoded.

  6. Rate Limiting: AI endpoints are rate-limited based on plan.


Last Updated: January 2026 API Versions Supported: v1, v1.1, v1.2, v1.3, v1.4

Last updated