UserTold.ai Retention API

The Retention API from UserTold.ai, for retention.

GitHub OpenAPI

Operations 6

POST /api/orgs/{orgHandle}/projects/{projectHandle}/purge Project Purge #
POST /api/orgs/{orgHandle}/projects/{projectHandle}/sessions/{sessionId}/purge Session Purge #
POST /api/orgs/{orgHandle}/projects/{projectHandle}/signals/{signalId}/purge Signal Purge #
POST /api/orgs/{orgHandle}/projects/{projectHandle}/findings/{findingRef}/purge Finding Purge #
POST /api/orgs/{orgHandle}/projects/{projectHandle}/intakes/{intakeRef}/purge Intake Purge #
POST /api/orgs/{orgHandle}/projects/{projectHandle}/studies/{studyHandle}/purge Study Purge #

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/usertold-ai:usertold-ai-retention-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

usertold-ai-retention-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UserTold.ai Retention API
  version: 1.0.0
  description: The /api/... routes are stable major version 1 without a version-selection header. Backward-compatible additions remain in v1; breaking changes require /api/v2. Before removal, migration guidance and Deprecation plus Link rel=deprecation are published; scheduled removal includes Sunset at least 90 days ahead. No REST route is currently deprecated.
tags:
- name: Retention
paths:
  /api/orgs/{orgHandle}/projects/{projectHandle}/purge:
    post:
      operationId: projectPurge
      summary: Project Purge
      description: Execute the UserTold project purge operation.
      tags:
      - Retention
      parameters:
      - schema:
          type: string
          description: orgHandle path parameter
        required: true
        description: orgHandle path parameter
        name: orgHandle
        in: path
      - schema:
          type: string
          description: projectHandle path parameter
        required: true
        description: projectHandle path parameter
        name: projectHandle
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPurgeResponse'
        '401':
          description: Not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Domain error (non-retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Domain error (retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
  /api/orgs/{orgHandle}/projects/{projectHandle}/sessions/{sessionId}/purge:
    post:
      operationId: sessionPurge
      summary: Session Purge
      description: Execute the UserTold session purge operation.
      tags:
      - Retention
      parameters:
      - schema:
          type: string
          description: orgHandle path parameter
        required: true
        description: orgHandle path parameter
        name: orgHandle
        in: path
      - schema:
          type: string
          description: projectHandle path parameter
        required: true
        description: projectHandle path parameter
        name: projectHandle
        in: path
      - schema:
          type: string
          description: sessionId path parameter
        required: true
        description: sessionId path parameter
        name: sessionId
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPurgeResponse'
        '401':
          description: Not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Domain error (non-retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Domain error (retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
  /api/orgs/{orgHandle}/projects/{projectHandle}/signals/{signalId}/purge:
    post:
      operationId: signalPurge
      summary: Signal Purge
      description: Execute the UserTold signal purge operation.
      tags:
      - Retention
      parameters:
      - schema:
          type: string
          description: orgHandle path parameter
        required: true
        description: orgHandle path parameter
        name: orgHandle
        in: path
      - schema:
          type: string
          description: projectHandle path parameter
        required: true
        description: projectHandle path parameter
        name: projectHandle
        in: path
      - schema:
          type: string
          description: signalId path parameter
        required: true
        description: signalId path parameter
        name: signalId
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPurgeResponse'
        '401':
          description: Not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Domain error (non-retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Domain error (retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
  /api/orgs/{orgHandle}/projects/{projectHandle}/findings/{findingRef}/purge:
    post:
      operationId: findingPurge
      summary: Finding Purge
      description: Execute the UserTold finding purge operation.
      tags:
      - Retention
      parameters:
      - schema:
          type: string
          description: orgHandle path parameter
        required: true
        description: orgHandle path parameter
        name: orgHandle
        in: path
      - schema:
          type: string
          description: projectHandle path parameter
        required: true
        description: projectHandle path parameter
        name: projectHandle
        in: path
      - schema:
          type: string
          description: findingRef path parameter
        required: true
        description: findingRef path parameter
        name: findingRef
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPurgeResponse'
        '401':
          description: Not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Domain error (non-retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Domain error (retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
  /api/orgs/{orgHandle}/projects/{projectHandle}/intakes/{intakeRef}/purge:
    post:
      operationId: intakePurge
      summary: Intake Purge
      description: Execute the UserTold intake purge operation.
      tags:
      - Retention
      parameters:
      - schema:
          type: string
          description: orgHandle path parameter
        required: true
        description: orgHandle path parameter
        name: orgHandle
        in: path
      - schema:
          type: string
          description: projectHandle path parameter
        required: true
        description: projectHandle path parameter
        name: projectHandle
        in: path
      - schema:
          type: string
          description: intakeRef path parameter
        required: true
        description: intakeRef path parameter
        name: intakeRef
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPurgeResponse'
        '401':
          description: Not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Domain error (non-retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Domain error (retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
  /api/orgs/{orgHandle}/projects/{projectHandle}/studies/{studyHandle}/purge:
    post:
      operationId: studyPurge
      summary: Study Purge
      description: Execute the UserTold study purge operation.
      tags:
      - Retention
      parameters:
      - schema:
          type: string
          description: orgHandle path parameter
        required: true
        description: orgHandle path parameter
        name: orgHandle
        in: path
      - schema:
          type: string
          description: projectHandle path parameter
        required: true
        description: projectHandle path parameter
        name: projectHandle
        in: path
      - schema:
          type: string
          description: studyHandle path parameter
        required: true
        description: studyHandle path parameter
        name: studyHandle
        in: path
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiPurgeResponse'
        '401':
          description: Not authenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '422':
          description: Domain error (non-retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '503':
          description: Domain error (retryable)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    ApiErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        retryable:
          type: boolean
        action:
          type: string
        requestId:
          type: string
      required:
      - error
    ApiPurgeResponse:
      type: object
      properties:
        success:
          type: boolean
        d1RowsDeleted:
          type: number
        r2ObjectsDeleted:
          type: number
      required:
      - success
      - d1RowsDeleted
      - r2ObjectsDeleted
externalDocs:
  description: REST versioning, deprecation, and rate-limit policy
  url: https://usertold.ai/docs/api#versioning-and-deprecation
x-api-lifecycle:
  majorVersion: 1
  versioning: implicit
  currentPathPrefix: /api
  nextBreakingPathPrefix: /api/v2
  versionSelectionHeader: null
  deprecated: false
  minimumSunsetNoticeDays: 90
  deprecationHeaders:
  - Deprecation
  - Link
  - Sunset
  policyUrl: https://usertold.ai/docs/api#versioning-and-deprecation