Stori AI API

AI content generation

GitHub OpenAPI

Operations 1

POST /api/ai/generate-content Generate AI content #

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/onestori-com:onestori-com-ai-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

onestori-com-ai-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stori AI API
  version: 1.0.0
  description: '# Stori API Documentation


    Stori is a candidate intelligence platform that helps job seekers stand out and recruiters find the right talent.


    ## Authentication


    Most endpoints require authentication via one of:

    - **Bearer Token**: Pass your Supabase JWT in the `Authorization: Bearer ` header

    - **Session Cookie**: Automatic for web app users


    ## Rate Limits


    All endpoints are rate-limited to prevent abuse:


    | Endpoint Type | Limit |

    |---------------|-------|

    | PDL Search | 75 req/min |

    | AI Generation | 7 req/min |

    | Auth | 5 req/min |

    | Email Send | 10 req/min |

    | Video Upload | 4 req/min |

    | Standard API | 100 req/min |

    | Read-only | 200 req/min |


    Rate limit headers are included in all responses:

    - `X-RateLimit-Limit`: Maximum requests allowed

    - `X-RateLimit-Remaining`: Requests remaining

    - `X-RateLimit-Reset`: Unix timestamp when limit resets


    ## Credits


    Some operations consume credits:

    - PDL searches cost credits based on results

    - Unlocking contact info costs 1 credit per contact

    - Credits can be purchased via Stripe checkout


    ## Error Handling


    All errors follow this format:

    ```json

    {

    "error": "Error message",

    "details": { "field": ["validation error"] }

    }

    ```


    Common status codes:

    - `400` - Validation error

    - `401` - Unauthorized (invalid/missing token)

    - `402` - Payment required (insufficient credits)

    - `403` - Forbidden (subscription required)

    - `429` - Rate limit exceeded

    - `500` - Internal server error'
  contact:
    name: Stori Support
    url: https://onestori.com
servers:
- url: https://onestori.com
  description: Production
- url: http://localhost:3000
  description: Development
tags:
- name: AI
  description: AI content generation
paths:
  /api/ai/generate-content:
    post:
      tags:
      - AI
      summary: Generate AI content
      description: Generates profile content using AI (summary, work descriptions, highlights)
      security:
      - BearerAuth: []
      - CookieAuth: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sectionType:
                  type: string
                  enum:
                  - summary
                  - work_description
                  - work_highlights
                  - individual_highlight
                sectionId:
                  type: string
                  minLength: 1
                  maxLength: 100
                  description: Section identifier
                context:
                  type: object
                  additionalProperties: {}
                  description: Additional context
                force:
                  type: boolean
                  default: false
                  description: Force regeneration
                highlightIndex:
                  type: integer
                  minimum: 0
                  maximum: 10
              required:
              - sectionType
              - sectionId
      responses:
        '200':
          description: Content generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  content:
                    type: string
                    description: Generated content
                  cached:
                    type: boolean
                    description: Whether content was from cache
                required:
                - content
        '401':
          description: Unauthorized
        '429':
          description: Rate limit exceeded (7 req/min)
      operationId: postApiAiGenerateContent
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Supabase JWT token from authentication
    CookieAuth:
      type: apiKey
      in: cookie
      name: sb-access-token
      description: Supabase session cookie
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Stori API key (sk_live_... or sk_test_...). All v1 endpoints are scoped to the key''s company. Scopes: read:jobs, read:candidates, read:credits, read:health.'