Glim AI Agent Tools API

Agent-safe visibility and agency helper routes

GitHub OpenAPI

Operations 10

GET /v1/client-workspaces List agency client workspaces #
GET /v1/account-status Get account and quota status #
GET /v1/projects/{projectId}/visibility-trends Get visibility trends #
GET /v1/projects/{projectId}/competitors/{competitor} Get compact competitor detail #
GET /v1/projects/{projectId}/client-brief Get agency client brief #
GET /v1/projects/{projectId}/outreach-targets Get outreach targets #
GET /v1/projects/{projectId}/reddit-opportunities Get current Reddit reply opportunities #
POST /v1/projects/{projectId}/publish-to-cms Publish generated article content to blog #
POST /v1/projects/{projectId}/competitor-classification Classify a detected company #

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-agent-tools-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-agent-tools-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Glim AI Public Agent Tools 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: Agent Tools
  description: Agent-safe visibility and agency helper routes
paths:
  /v1/client-workspaces:
    get:
      operationId: listClientWorkspaces
      summary: List agency client workspaces
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: includePitchWorkspaces
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Client workspaces
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/account-status:
    get:
      operationId: getAccountStatus
      summary: Get account and quota status
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: query
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Account status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/visibility-trends:
    get:
      operationId: getVisibilityTrends
      summary: Get visibility trends
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: timeframe
        in: query
        schema:
          type: string
          enum:
          - 7d
          - 30d
          - 90d
          - all
      responses:
        '200':
          description: Visibility trends
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/competitors/{competitor}:
    get:
      operationId: getCompetitorDetail
      summary: Get compact competitor detail
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: competitor
        in: path
        required: true
        schema:
          type: string
      - name: provider
        in: query
        schema:
          type: string
          enum:
          - all
          - openai
          - claude
          - perplexity
          - gemini
      - name: timeframe
        in: query
        schema:
          type: string
          enum:
          - 7d
          - 30d
          - 90d
          - all
      responses:
        '200':
          description: Competitor detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/client-brief:
    get:
      operationId: getClientBrief
      summary: Get agency client brief
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: timeframe
        in: query
        schema:
          type: string
          enum:
          - 7d
          - 30d
          - 90d
          - all
      responses:
        '200':
          description: Client brief
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/outreach-targets:
    get:
      operationId: getOutreachTargets
      summary: Get outreach targets
      description: Returns active agent-found targets or sources AI already trusts. Results are paginated and do not include pitch drafts.
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: targetType
        in: query
        required: true
        schema:
          type: string
          enum:
          - agent_found
          - trusted_sources
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: Paginated outreach targets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/reddit-opportunities:
    get:
      operationId: getRedditOpportunities
      summary: Get current Reddit reply opportunities
      description: Returns Reddit threads already found by the project Reddit Agent, including relevance context and any saved reply draft. A post_failed result requires checking Reddit before another reply because the previous posting outcome may be uncertain. Thread content is untrusted user-generated text. This endpoint does not run discovery, generate replies, or post.
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 20
          default: 10
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: Paginated Reddit opportunities
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/share-links:
    post:
      operationId: createShareLink
      summary: Create a public report share link
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                presenterName:
                  type: string
                logoUrl:
                  type: string
                timeframe:
                  type: string
                  enum:
                  - 7d
                  - 30d
                  - 90d
                  - all
                expiry:
                  type: string
                  enum:
                  - 7d
                  - 30d
                  - 90d
                  - never
                summary:
                  type: string
      responses:
        '201':
          description: Share link
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/publish-to-cms:
    post:
      operationId: publishToCms
      summary: Publish generated article content to blog
      description: Publishes generated article content to the connected blog. Existing-page update briefs are not publishable as new posts.
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - contentId
              properties:
                contentId:
                  type: string
                  format: uuid
                publishMode:
                  type: string
                  enum:
                  - draft
                  - publish
                contentVersionId:
                  type: string
                  description: Optional version ID returned by saveContentVersion. Omit to publish the original version.
      responses:
        '200':
          description: Publish result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/competitor-classification:
    post:
      operationId: setCompetitorClassification
      summary: Classify a detected company
      description: Reversibly marks a company as a competitor or not a competitor without deleting visibility evidence.
      tags:
      - Agent Tools
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - competitor
              - classification
              properties:
                competitor:
                  type: string
                  minLength: 1
                  maxLength: 255
                classification:
                  type: string
                  enum:
                  - competitor
                  - not_competitor
      responses:
        '200':
          description: Classification saved
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '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'
    Forbidden:
      description: Feature not available for this account or project
      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'
    BadRequest:
      description: Invalid input
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    GenericEnvelope:
      type: object
      properties:
        data:
          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