Glim AI Content API

Generated content

GitHub OpenAPI

Operations 7

POST /v1/projects/{projectId}/content-suggestions Generate routed content suggestions #
GET /v1/projects/{projectId}/content-calendar Read a calendar month without starting planning #
POST /v1/projects/{projectId}/content-calendar Get or create a monthly content calendar #
GET /v1/projects/{projectId}/content-library List completed project articles #
GET /v1/projects/{projectId}/content-library/{contentId} Retrieve a complete project article #
POST /v1/projects/{projectId}/content-versions Save agent-edited content as a new version #
POST /v1/generate-content Generate content or update briefs (blog, LinkedIn, thread) #

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-content-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-content-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Glim AI Public Content 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: Content
  description: Generated content
paths:
  /v1/projects/{projectId}/content-suggestions:
    post:
      operationId: suggestContentTopics
      summary: Generate routed content suggestions
      description: Queues the strategic content planner. A 202 response includes status=generating, job_id, and retry_after_seconds; poll with jobId until complete. topics contains saved new-article and existing-page update brief opportunities; skipped_topics contains covered_existing_url route-only signals.
      tags:
      - Content
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                count:
                  type: integer
                  minimum: 6
                  maximum: 30
                  default: 10
                jobId:
                  type: string
                  format: uuid
                  description: Returned by a generating response; provide it to poll the same job.
      responses:
        '200':
          description: Routed content suggestions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentSuggestionsResponse'
        '202':
          description: Strategic planner is still generating; retry with the returned job_id.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/projects/{projectId}/content-calendar:
    get:
      operationId: readContentCalendar
      summary: Read a calendar month without starting planning
      tags:
      - Content
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: month
        in: query
        required: false
        schema:
          type: string
          pattern: ^\d{4}-(0[1-9]|1[0-2])$
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentCalendarReadResponse'
        '416':
          $ref: '#/components/responses/UnexpectedError'
        default:
          $ref: '#/components/responses/UnexpectedError'
    post:
      operationId: getContentCalendar
      x-partner-permission: planContentCalendar
      summary: Get or create a monthly content calendar
      description: Returns persisted calendar items for a month. For V3 projects, explicitly send setup=true when the user requests planning; omit setup and refresh for reads and polling. Empty V3 calendars do not auto-start. Only poll while data.status is generating, waiting retry_after_seconds. Respect planning_outcome restrictions. Use refresh=true to explicitly retry or continue an existing V3 strategy, not initial setup. Legacy empty eligible months retain automatic generation. Planning does not generate articles or enable publishing.
      tags:
      - Content
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                planningMonth:
                  type: string
                  pattern: ^\d{4}-(0[1-9]|1[0-2])$
                  description: Calendar month in YYYY-MM format; defaults to the current UTC month.
                setup:
                  type: boolean
                  default: false
                  description: Explicitly build a V3 calendar, including when seed recommendations already exist. Omit for retrieval or polling. Does not generate articles or enable publishing.
                previewSetup:
                  type: boolean
                  description: Return a read-only setup preview with period, affected topics and revision.
                existingRecommendations:
                  type: string
                  enum:
                  - keep
                  - replace_untouched
                  default: keep
                  description: Replacement requires explicit user confirmation of the preview, setup=true and previewRevision.
                previewRevision:
                  type: string
                  description: Revision from the setup preview confirmed by the user.
                refresh:
                  type: boolean
                  default: false
                  description: Retry generation only when the selected current or future month previously completed with zero items.
      responses:
        '200':
          description: Existing, created, empty, or not-ready calendar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentCalendarResponse'
        '202':
          description: Calendar generation queued or processing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentCalendarResponse'
        '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/projects/{projectId}/content-library:
    get:
      operationId: listContentLibrary
      summary: List completed project articles
      description: Lists completed generated blog articles and automatic Content Calendar articles without returning their full bodies. Automatic articles remain available when CMS delivery failed.
      tags:
      - Content
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 25
      - name: offset
        in: query
        required: false
        description: Zero-based result offset. Use next_offset from the previous response; deep offset pagination is capped at 10,000.
        schema:
          type: integer
          minimum: 0
          maximum: 10000
          default: 0
      responses:
        '200':
          description: Paginated article library
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '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/projects/{projectId}/content-library/{contentId}:
    get:
      operationId: getContent
      summary: Retrieve a complete project article
      description: Returns a selected generated-content version as Markdown or an automatic Content Calendar article as HTML.
      tags:
      - Content
      security:
      - bearerAuth: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: contentId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: source
        in: query
        required: true
        schema:
          type: string
          enum:
          - generated_content
          - automated_post
      - name: versionId
        in: query
        required: false
        description: Generated content only. Omit for the latest saved version, use original for the original draft, or provide a saved version ID.
        schema:
          type: string
      responses:
        '200':
          description: Complete article body and metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericEnvelope'
        '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/projects/{projectId}/content-versions:
    post:
      operationId: saveContentVersion
      summary: Save agent-edited content as a new version
      description: Appends complete edited content to an existing generated blog's version history. No AI model is called and the original draft remains unchanged.
      tags:
      - Content
      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
              - content
              properties:
                contentId:
                  type: string
                  format: uuid
                content:
                  type: string
                  minLength: 1
                  maxLength: 200000
                sourceVersionId:
                  type: string
                  maxLength: 100
                changeSummary:
                  type: string
                  maxLength: 1000
      responses:
        '200':
          description: Identical latest version already exists
        '201':
          description: New content version saved
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
  /v1/generate-content:
    post:
      operationId: generateContent
      summary: Generate content or update briefs (blog, LinkedIn, thread)
      description: Generates content from project context. For expand-vs-new decisions, call /v1/projects/{projectId}/content-suggestions first and pass its metadata into this route. Direct generation does not decide whether an existing owned page should be expanded.
      tags:
      - Content
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - projectId
              - platform
              - topic
              properties:
                projectId:
                  type: string
                  format: uuid
                platform:
                  type: string
                  enum:
                  - blog
                  - linkedin
                  - thread
                topic:
                  type: string
                metadata:
                  type: object
                  description: Optional user-facing generation metadata. Unknown keys are ignored. For existing-page update briefs, include content_action=optimize_existing_url plus target_url and target_title from content-suggestions.
                  additionalProperties: true
                  properties:
                    audience:
                      type: string
                    type:
                      type: string
                    length:
                      type: string
                    content_action:
                      type: string
                      enum:
                      - new_article
                      - optimize_existing_url
                    contentAction:
                      type: string
                      enum:
                      - new_article
                      - optimize_existing_url
                    target_url:
                      type:
                      - string
                      - 'null'
                    targetUrl:
                      type:
                      - string
                      - 'null'
                    target_title:
                      type:
                      - string
                      - 'null'
                    targetTitle:
                      type:
                      - string
                      - 'null'
                    content_type:
                      type:
                      - string
                      - 'null'
                    contentType:
                      type:
                      - string
                      - 'null'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateContentResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        default:
          $ref: '#/components/responses/UnexpectedError'
components:
  schemas:
    GenericEnvelope:
      type: object
      properties:
        data:
          type: object
          additionalProperties: true
        meta:
          $ref: '#/components/schemas/BillingMeta'
    GenerateContentResponse:
      type: object
      properties:
        data:
          type: object
          additionalProperties: false
          properties:
            id:
              type:
              - string
              - 'null'
            status:
              type: string
            message:
              type: string
            report_url:
              type:
              - string
              - 'null'
            context_quality:
              type: string
              enum:
              - full
              - limited
            context_message:
              type: string
        meta:
          $ref: '#/components/schemas/BillingMeta'
    ContentSuggestionTopic:
      type: object
      properties:
        id:
          type:
          - string
          - 'null'
        title:
          type: string
        type:
          type:
          - string
          - 'null'
        audience:
          type:
          - string
          - 'null'
        source:
          type:
          - string
          - 'null'
        reason:
          type:
          - string
          - 'null'
        content_action:
          type: string
          enum:
          - new_article
          - optimize_existing_url
          - covered_existing_url
        target_url:
          type:
          - string
          - 'null'
        target_title:
          type:
          - string
          - 'null'
        coverage_status:
          type:
          - string
          - 'null'
        match_reason:
          type:
          - string
          - 'null'
        created_at:
          type:
          - string
          - 'null'
        persisted:
          type: boolean
          description: True when this suggestion was saved as a generated topic. covered_existing_url items are route-only skip signals and return false.
        position:
          type: integer
    ContentCalendarItem:
      type: object
      properties:
        id:
          type:
          - string
          - 'null'
          format: uuid
        title:
          type: string
        topic_line:
          type:
          - string
          - 'null'
        content_type:
          type: string
        source:
          type: string
        source_label:
          type:
          - string
          - 'null'
        status:
          type: string
        scheduled_for:
          type:
          - string
          - 'null'
          format: date
        why_scheduled:
          type:
          - string
          - 'null'
        signal:
          type:
          - string
          - 'null'
        priority:
          type:
          - number
          - 'null'
        score:
          type:
          - number
          - 'null'
        content_action:
          type: string
        target_url:
          type:
          - string
          - 'null'
        generated_content_id:
          type:
          - string
          - 'null'
          format: uuid
        automated_post_id:
          type:
          - string
          - 'null'
          format: uuid
    BillingMeta:
      type: object
      description: Plan and quota snapshot (shape may evolve)
      additionalProperties: true
    ContentSuggestionsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            status:
              type: string
            project_id:
              type: string
              format: uuid
            topic_count:
              type: integer
            created_count:
              type: integer
            skipped_count:
              type: integer
              description: Number of returned covered_existing_url route-only skip signals.
            href:
              type: string
            titles:
              type: array
              items:
                type: string
            topics:
              type: array
              items:
                $ref: '#/components/schemas/ContentSuggestionTopic'
            skipped_topics:
              type: array
              description: Route-only covered_existing_url items that should be skipped instead of generated.
              items:
                $ref: '#/components/schemas/ContentSuggestionTopic'
        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
    ContentCalendarReadResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            planning_month:
              type: string
            calendar_url:
              type: string
            status:
              type: string
            planning_status:
              type: string
            job_id:
              type: string
              format: uuid
            count:
              type: integer
            total:
              type: integer
            limit:
              type: integer
            offset:
              type: integer
            next_offset:
              type:
              - integer
              - 'null'
            items:
              type: array
              items:
                $ref: '#/components/schemas/ContentCalendarItem'
        meta:
          type: object
          additionalProperties: true
    ContentCalendarResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            project_id:
              type: string
              format: uuid
            planning_month:
              type: string
            calendar_url:
              type: string
            status:
              type: string
              enum:
              - existing
              - generating
              - created
              - empty
              - not_ready
            created:
              type: boolean
              description: True for only one successful read after a generation attempt creates items.
            count:
              type: integer
            items:
              type: array
              items:
                $ref: '#/components/schemas/ContentCalendarItem'
            job_id:
              type: string
              format: uuid
            message:
              type: string
            retry_after_seconds:
              type: integer
            missing_inputs:
              type: array
              items:
                type: string
                enum:
                - crawl
                - visibility
        meta:
          $ref: '#/components/schemas/BillingMeta'
  responses:
    Unauthorized:
      description: Missing or invalid bearer token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    PaymentRequired:
      description: Billing or quota gate
      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'
    Conflict:
      description: Conflict (e.g. API key limit)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    BadRequest:
      description: Invalid input
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  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