RIRLift Program Drafts API

The Program Drafts API from RIRLift — 1 operation(s) for program drafts.

GitHub OpenAPI

Operations 1

POST /v1/program-drafts Send a program draft to RIRLift for review #

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/rirlift-com:rirlift-com-program-drafts-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

rirlift-com-program-drafts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RIRLift Training Actions Program Drafts API
  version: 1.0.0
  description: Read a lifter's consented RIRLift training snapshot and stage program drafts for their review. Staging never changes active training automatically.
servers:
- url: https://mcp.rirlift.com/actions
tags:
- name: Program Drafts
paths:
  /v1/program-drafts:
    post:
      operationId: stageProgramDraft
      summary: Send a program draft to RIRLift for review
      description: Stages one draft only after the lifter asks to send it. This never overwrites or activates a program; the lifter reviews and approves it in RIRLift.
      security:
      - rirliftOAuth:
        - rirlift.read
        - rirlift.write
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - schemaVersion
              - program
              properties:
                schemaVersion:
                  type: integer
                  enum:
                  - 1
                program:
                  type: object
                  required:
                  - name
                  - routines
                  properties:
                    name:
                      type: string
                      minLength: 1
                      maxLength: 120
                    routines:
                      type: array
                      minItems: 1
                      maxItems: 30
                      items:
                        type: object
                        required:
                        - name
                        - blocks
                        properties:
                          name:
                            type: string
                            minLength: 1
                            maxLength: 80
                          blocks:
                            type: array
                            minItems: 1
                            maxItems: 25
                            items:
                              type: object
                              required:
                              - exercise
                              - targetSets
                              - repRange
                              - restSeconds
                              - targetRIR
                              properties:
                                exercise:
                                  type: object
                                  required:
                                  - name
                                  properties:
                                    key:
                                      type: string
                                      maxLength: 80
                                      description: Canonical RIRLift exercise key. Prefer a key returned by getProgramFormat.
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 120
                                warmupSets:
                                  type:
                                  - integer
                                  - 'null'
                                  minimum: 0
                                  maximum: 5
                                  description: Omit or use null to let the app's Coach decide per session; 0 pins no warm-ups; 1–5 pins that many.
                                targetSets:
                                  type: integer
                                  minimum: 1
                                  maximum: 10
                                repRange:
                                  type: object
                                  required:
                                  - min
                                  - max
                                  properties:
                                    min:
                                      type: integer
                                      minimum: 1
                                      maximum: 60
                                    max:
                                      type: integer
                                      minimum: 1
                                      maximum: 60
                                targetDurationSeconds:
                                  type:
                                  - integer
                                  - 'null'
                                  minimum: 5
                                  maximum: 3600
                                targetEffortLevel:
                                  type:
                                  - integer
                                  - 'null'
                                  minimum: 1
                                  maximum: 5
                                restSeconds:
                                  type: integer
                                  minimum: 0
                                  maximum: 600
                                targetRIR:
                                  type: integer
                                  minimum: 0
                                  maximum: 10
                                  description: Target repetitions in reserve. Zero means planned failure.
                                notes:
                                  type:
                                  - string
                                  - 'null'
                                  maxLength: 1000
                                supersetGroup:
                                  type:
                                  - string
                                  - 'null'
                                  maxLength: 60
                                intensity:
                                  type:
                                  - string
                                  - 'null'
                                  enum:
                                  - dropSet
                                  - restPause
                                  - failureFinisher
                                  - null
      responses:
        '201':
          description: Draft staged for review
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Malformed JSON
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '401':
          description: The OAuth token or underlying RIRLift grant is no longer valid; reconnect RIRLift.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '403':
          description: The token does not have the required write scope.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '409':
          description: Draft queue is full
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '413':
          description: Program draft exceeds the request-size limit
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '422':
          description: Program does not match the RIRLift schema
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '503':
          description: RIRLift is temporarily unable to stage the draft
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                properties:
                  error:
                    type: string
                  message:
                    type: string
      tags:
      - Program Drafts
components:
  securitySchemes:
    rirliftOAuth:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://mcp.rirlift.com/authorize
          tokenUrl: https://mcp.rirlift.com/token
          scopes:
            rirlift.read: Read the lifter's consented RIRLift training snapshot
            rirlift.write: Stage program drafts for the lifter to review in RIRLift
externalDocs:
  description: RIRLift privacy policy
  url: https://www.rirlift.com/privacy/