Glim AI Reports API

Reports and latest run

GitHub OpenAPI

Operations 3

GET /v1/reports/latest Get latest report for a project #
GET /v1/reports/{reportId} Get report by id #
GET /v1/reports/{reportId}/provider-answer Get one provider answer for a report prompt #

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/seoforgpt-io:seoforgpt-io-reports-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

seoforgpt-io-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Glim AI Public Reports API
  version: 1.0.0
  description: 'HTTP API for scripts, CI, and backends used by the Glim AI MCP server. Hosted remote MCP and local stdio clients both call this surface. Authenticate with `Authorization: Bearer` using a Supabase session JWT, a user API key (`sgpt_...`), or an OAuth-managed connector key issued by hosted MCP (same header; those keys are hidden from the Settings UI). API key management (`/v1/keys`) requires a JWT. Base path is `/v1` under the deployed host. Versioning and deprecation policy: https://tryglim.ai/api-versioning-policy.md'
  contact:
    email: miguel@tryglim.ai
servers:
- url: https://tryglim.ai/api
  description: Production (Netlify rewrite to Supabase Edge Function)
tags:
- name: Reports
  description: Reports and latest run
paths:
  /v1/reports/latest:
    get:
      operationId: getLatestReport
      summary: Get latest report for a project
      tags:
      - Reports
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: query
        required: true
        schema:
          type: string
          format: uuid
      - name: source
        in: query
        required: false
        schema:
          type: string
          enum:
          - main
          - custom
          default: main
      - name: view
        in: query
        required: false
        schema:
          type: string
          enum:
          - raw
          - summary
          - full
          default: summary
      - name: answer_detail
        in: query
        required: false
        schema:
          type: string
          enum:
          - summary
          - full
          default: full
        description: For full/raw, summary strips verbatim provider answers from rows and answer-gap cards.
      - name: raw_results_limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          maximum: 100
        description: Full/raw page size. Default 10 with answer_detail=summary on full or an explicit offset. Legacy 0 suppresses rows without pagination metadata.
      - name: raw_results_offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        description: Stored-result offset for full/raw, default 0. Nonzero offsets require /reports/:reportId using pagination.report_id; latest only accepts 0. Follow pagination.next until has_more=false.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/reports/{reportId}:
    get:
      operationId: getReportById
      summary: Get report by id
      tags:
      - Reports
      security:
      - bearerAuth: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
      - name: view
        in: query
        required: false
        schema:
          type: string
          enum:
          - raw
          - summary
          - full
          default: summary
      - name: answer_detail
        in: query
        required: false
        schema:
          type: string
          enum:
          - summary
          - full
          default: full
        description: For full/raw, summary strips verbatim provider answers from rows and answer-gap cards.
      - name: raw_results_limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          maximum: 100
        description: Full/raw page size. Default 10 with answer_detail=summary on full or an explicit offset. Legacy 0 suppresses rows without pagination metadata.
      - name: raw_results_offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          maximum: 9007199254740991
        description: Stored-result offset for full/raw, default 0. Nonzero offsets require /reports/:reportId using pagination.report_id; latest only accepts 0. Follow pagination.next until has_more=false.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/reports/{reportId}/provider-answer:
    get:
      operationId: getProviderAnswer
      summary: Get one provider answer for a report prompt
      description: Returns one stored provider answer with capped citations. Provider keys include the six current engines plus historical Claude records. Historical keys do not enable new collection. Execution models and provider metadata are not returned. The hosted MCP get_provider_answer tool currently exposes a narrower provider enum.
      tags:
      - Reports
      security:
      - bearerAuth: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
      - name: promptKey
        in: query
        required: true
        schema:
          type: string
      - name: provider
        in: query
        required: true
        schema:
          type: string
          enum:
          - openai
          - claude
          - perplexity
          - gemini
          - google_ai_mode
          - google_ai_overviews
          - copilot
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProviderAnswerResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
components:
  responses:
    Unauthorized:
      description: Missing or invalid bearer token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    UnexpectedError:
      description: Any documented or unexpected 4xx or 5xx response uses the same typed error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    InternalError:
      description: Server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: Rate limit exceeded. Responses include the current IETF `RateLimit` and `RateLimit-Policy` structured fields, compatibility `RateLimit-*` and `X-RateLimit-*` fields, and `Retry-After` on 429.
      headers:
        Retry-After:
          schema:
            type: string
          description: Seconds until reset
        RateLimit:
          schema:
            type: string
          description: Current service limit, for example `"default";r=0;t=30`
        RateLimit-Policy:
          schema:
            type: string
          description: Evaluated quota policy, for example `"default";q=10;w=60`
        RateLimit-Limit:
          schema:
            type: string
          description: Maximum requests in the evaluated window
        RateLimit-Remaining:
          schema:
            type: string
          description: Requests remaining in the evaluated window
        RateLimit-Reset:
          schema:
            type: string
          description: Seconds until reset
        X-RateLimit-Limit:
          schema:
            type: string
        X-RateLimit-Remaining:
          schema:
            type: string
        X-RateLimit-Reset:
          schema:
            type: string
          description: Unix timestamp
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    BadRequest:
      description: Invalid input
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ReportResponse:
      type: object
      properties:
        data:
          type: object
          additionalProperties: true
        meta:
          $ref: '#/components/schemas/BillingMeta'
    ProviderAnswerResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            report_id:
              type: string
            prompt:
              type: string
            category:
              type: string
            provider:
              type: string
              enum:
              - openai
              - claude
              - perplexity
              - gemini
              - google_ai_mode
              - google_ai_overviews
              - copilot
            answer:
              type: string
            citations:
              type: array
              items:
                type: object
                additionalProperties: true
        meta:
          $ref: '#/components/schemas/BillingMeta'
    ApiError:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - request_id
          properties:
            code:
              type: string
              example: RATE_LIMITED
            message:
              type: string
            details: {}
            request_id:
              type: string
              format: uuid
    BillingMeta:
      type: object
      description: Plan and quota snapshot (shape may evolve)
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API key
      description: 'Send `Authorization: Bearer <token>`. Use a Supabase access token, a user API key (`sgpt_...`), or an expiring workspace-scoped agency partner key (`sgpt_partner_...`). Key management routes require a user session JWT; partner-key management also requires agency ownership.'
externalDocs:
  description: API versioning and deprecation policy
  url: https://tryglim.ai/api-versioning-policy.md
x-versioning-policy:
  strategy: URL major version
  current: v1
  deprecation: RFC 9745 Deprecation and deprecation Link headers
  sunset: RFC 8594 Sunset header when retirement is scheduled
  notice: 12 months targeted
  url: https://tryglim.ai/api-versioning-policy.md