ReelDrop OAuth API

The oauth API from ReelDrop — 9 operation(s) for oauth.

GitHub OpenAPI

Operations 11

POST /oauth/instagram/start Instagram Oauth Start #
GET /oauth/instagram/authorize Instagram Oauth Authorize #
GET /oauth/instagram/callback Instagram Oauth Callback #
POST /oauth/instagram/complete Instagram Oauth Complete #
GET /oauth/instagram/webhook Instagram Webhook Verify #
POST /oauth/instagram/webhook Instagram Webhook Receive #
POST /oauth/instagram/webhook/redrive-room Instagram Webhook Redrive Room #
POST /oauth/instagram/webhook/process Instagram Webhook Process #
POST /oauth/instagram/deauthorize Instagram Deauthorize #
GET /oauth/instagram/data-deletion Instagram Data Deletion #
POST /oauth/instagram/data-deletion Instagram Data Deletion #

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/reeldrop-io:reeldrop-io-oauth-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

reeldrop-io-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ReelDrop OAuth API
  version: 0.1.0
tags:
- name: OAuth
paths:
  /oauth/instagram/start:
    post:
      tags:
      - OAuth
      summary: Instagram Oauth Start
      description: 'Return the Instagram Login OAuth URL.


        Accepts the caller''s usual optional `?workspace_id=` — connecting an

        account always targets a specific workspace (defaulting to personal),

        never "the user" in the abstract, since each workspace holds at most one

        connected Instagram account.'
      operationId: instagram_oauth_start_oauth_instagram_start_post
      security:
      - HTTPBearer: []
      parameters:
      - name: return_to
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Native-app deep link (reeldrop:// or exp://) for the callback to redirect back to. Omit for the web flow.
          title: Return To
        description: Native-app deep link (reeldrop:// or exp://) for the callback to redirect back to. Omit for the web flow.
      - name: switch_account
        in: query
        required: false
        schema:
          type: boolean
          description: Ask Instagram to prompt for credentials even on a first connect, so the user can sign in to a different Instagram account than the one the browser is logged into. The frontend sends this on the retry after an `ig_account_linked_elsewhere` refusal.
          default: false
          title: Switch Account
        description: Ask Instagram to prompt for credentials even on a first connect, so the user can sign in to a different Instagram account than the one the browser is logged into. The frontend sends this on the retry after an `ig_account_linked_elsewhere` refusal.
      - name: workspace_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Workspace this request applies to. Defaults to the caller's personal workspace. Must be one the caller belongs to.
          title: Workspace Id
        description: Workspace this request applies to. Defaults to the caller's personal workspace. Must be one the caller belongs to.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthStartResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/instagram/authorize:
    get:
      tags:
      - OAuth
      summary: Instagram Oauth Authorize
      description: '302 the browser from our own origin to Instagram''s Business Login dialog.


        Deliberately public and deliberately a redirect — see AUTHORIZE HOP at the

        top of this module before changing either. The state row is READ here and

        left exactly as it is: the callback is still the only consumer, so a hop

        that is followed twice (a phone restoring a tab, a prefetch) costs nothing.'
      operationId: instagram_oauth_authorize_oauth_instagram_authorize_get
      parameters:
      - name: state
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/instagram/callback:
    get:
      tags:
      - OAuth
      summary: Instagram Oauth Callback
      description: 'Instagram redirects here after user grants/denies permission.


        Denials and malformed returns go straight to the error page. Everything

        else is handed to the frontend''s /oauth/instagram/complete page (or the

        native app''s `return_to` with status=complete), which finishes the connect

        through the authenticated POST /oauth/instagram/complete below. This route

        exchanges nothing and consumes nothing — see the hand-off comment at the

        end for why.'
      operationId: instagram_oauth_callback_oauth_instagram_callback_get
      parameters:
      - name: code
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Code
      - name: state
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: State
      - name: error
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/instagram/complete:
    post:
      tags:
      - OAuth
      summary: Instagram Oauth Complete
      description: 'Finish an Instagram connect: consume the state, exchange the code,

        save the account.


        Authenticated, and bound to the initiator: the state row names the Clerk

        user who called /start, and only that user may complete it. A victim who

        was sent somebody else''s connect link is either signed out (the frontend

        sends them to sign in and they arrive here as themselves) or signed in as

        someone else — either way the identity check fails before the code is

        exchanged, so their Instagram account is never linked anywhere.


        Answers 200 with `status` for every flow outcome, including the refusals,

        because the completion page turns the answer straight into the success or

        error page and needs the blocked-by details a 4xx would lose.'
      operationId: instagram_oauth_complete_oauth_instagram_complete_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthCompleteBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthCompleteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /oauth/instagram/webhook:
    get:
      tags:
      - OAuth
      summary: Instagram Webhook Verify
      description: 'Meta calls this GET to verify the webhook endpoint ownership.


        The challenge is an opaque string that has to be echoed back verbatim as plain

        text. Parsing it as an int assumed it was always numeric — a non-numeric challenge

        raised ValueError and a missing one raised TypeError, both escaping as a 500 that

        made verification look like an outage on our side.'
      operationId: instagram_webhook_verify_oauth_instagram_webhook_get
      parameters:
      - name: hub.mode
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Hub.Mode
      - name: hub.verify_token
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Hub.Verify Token
      - name: hub.challenge
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Hub.Challenge
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - OAuth
      summary: Instagram Webhook Receive
      description: 'Receive real-time webhook events from Meta (comments, DMs, story replies).


        Meta requires HTTP 200 within 5 seconds, so the engine cannot run inline here —

        but it must not run *after* the response either. On Vercel the process is frozen

        the instant the response is written (same reason main.py flushes Sentry

        per-request), so a FastAPI BackgroundTask can be killed mid-flight; because we

        already returned 200, Meta never redelivers and the event is gone for good.


        So: verify the signature, put the event on a durable queue *before* ACKing, and

        let the automation-worker Lambda drive it back through /webhook/process. If the

        enqueue fails we 5xx, which is what makes Meta retry.'
      operationId: instagram_webhook_receive_oauth_instagram_webhook_post
      parameters:
      - name: x-hub-signature-256
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Hub-Signature-256
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/instagram/webhook/redrive-room:
    post:
      tags:
      - OAuth
      summary: Instagram Webhook Redrive Room
      description: 'Internal endpoint — the DLQ redriver Lambda (backend/lambda/dlq_pacer) asks how many

        parked events it may put back for each webhook account id right now. Instagram limits

        each account on its own, so the answer is per account: what is left of its private-reply

        hour and current slice, or 0 with a reason (services/dlq_redrive). With `comments`,

        it also answers which of them a dead-letter-queue backfill has finished, so the

        redriver can delete those. Reads only.'
      operationId: instagram_webhook_redrive_room_oauth_instagram_webhook_redrive_room_post
      parameters:
      - name: x-reeldrop-internal
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Reeldrop-Internal
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedriveRoomBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/instagram/webhook/process:
    post:
      tags:
      - OAuth
      summary: Instagram Webhook Process
      description: 'Internal endpoint — the automation-worker Lambda calls this while draining the

        intake queue. It runs the engine INLINE in the request, never as a background

        task, so there is no window in which Vercel can freeze the work; whatever the

        Lambda gets back is the true outcome, and a non-2xx puts the message back on the

        queue.


        Two independent checks, both required. The shared secret proves the caller is

        our Lambda; re-verifying Meta''s HMAC over the same bytes means the route stays

        unforgeable even if that secret leaks.'
      operationId: instagram_webhook_process_oauth_instagram_webhook_process_post
      parameters:
      - name: x-reeldrop-internal
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Reeldrop-Internal
      - name: x-hub-signature-256
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Hub-Signature-256
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /oauth/instagram/deauthorize:
    post:
      tags:
      - OAuth
      summary: Instagram Deauthorize
      operationId: instagram_deauthorize_oauth_instagram_deauthorize_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /oauth/instagram/data-deletion:
    get:
      tags:
      - OAuth
      summary: Instagram Data Deletion
      operationId: instagram_data_deletion_oauth_instagram_data_deletion_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    post:
      tags:
      - OAuth
      summary: Instagram Data Deletion
      operationId: instagram_data_deletion_oauth_instagram_data_deletion_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
components:
  schemas:
    OAuthCompleteBody:
      properties:
        code:
          type: string
          title: Code
        state:
          type: string
          title: State
      type: object
      required:
      - code
      - state
      title: OAuthCompleteBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OAuthCompleteResponse:
      properties:
        status:
          type: string
          title: Status
        username:
          anyOf:
          - type: string
          - type: 'null'
          title: Username
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
        ig_account:
          anyOf:
          - type: string
          - type: 'null'
          title: Ig Account
        ig_workspace:
          anyOf:
          - type: string
          - type: 'null'
          title: Ig Workspace
        ig_login:
          anyOf:
          - type: string
          - type: 'null'
          title: Ig Login
        ig_transfer_token:
          anyOf:
          - type: string
          - type: 'null'
          title: Ig Transfer Token
        replayed:
          type: boolean
          title: Replayed
          default: false
      type: object
      required:
      - status
      title: OAuthCompleteResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    RedriveRoomBody:
      properties:
        hook_ids:
          items:
            type: string
          type: array
          title: Hook Ids
        comments:
          additionalProperties:
            items:
              type: string
            type: array
          type: object
          title: Comments
          default: {}
      type: object
      required:
      - hook_ids
      title: RedriveRoomBody
    OAuthStartResponse:
      properties:
        oauth_url:
          type: string
          title: Oauth Url
        instagram_url:
          type: string
          title: Instagram Url
      type: object
      required:
      - oauth_url
      - instagram_url
      title: OAuthStartResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer