R2

R2 Callbacks API

The callbacks API from R2 — 2 operation(s) for callbacks.

Operations 4

GET /callbacks/{id} Show a callback by its id as filtering key #
PUT /callbacks/{id} Update a callback #
GET /callbacks/ Show all callbacks #
POST /callbacks/ Add a new callback #

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/r2-callbacks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

r2-callbacks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@r2capital.co
    name: R2 Support
  description: '## Introduction


    Through our REST APIs, you''ll be able to run an end-to-end capital program for your merchants.'
  title: R2 Callbacks API
  version: '0.1'
servers:
- url: https://gateway-dev.r2capital.co:443/v2
- url: https://gateway-dev.r2capital.co/v2/
  description: Development environment (DEV)
tags:
- name: Callbacks
paths:
  /callbacks/{id}:
    get:
      parameters:
      - description: uuid formatted ID.
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                  items:
                    items:
                      $ref: '#/components/schemas/callbacks.Callback'
                    type: array
                type: object
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
      - JWT: []
      summary: Show a callback by its id as filtering key
      tags:
      - Callbacks
      operationId: getCallbacksById
      x-operation-id-source: derived
    put:
      parameters:
      - description: uuid formatted ID.
        in: path
        name: id
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/callbacks.CallbackRequestArray'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                  items:
                    items:
                      $ref: '#/components/schemas/callbacks.Callback'
                    type: array
                type: object
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
      - JWT: []
      summary: Update a callback
      tags:
      - Callbacks
      operationId: putCallbacksById
      x-operation-id-source: derived
  /callbacks/:
    get:
      description: Show a list of callbacks associated to the partner using the given filtering params.
      parameters:
      - in: query
        name: page
        schema:
          type: integer
      - in: query
        name: per_page
        schema:
          type: integer
      - in: query
        name: sort
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                  items:
                    items:
                      $ref: '#/components/schemas/callbacks.Callback'
                    type: array
                type: object
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
      - JWT: []
      summary: Show all callbacks
      tags:
      - Callbacks
      operationId: getCallbacks
      x-operation-id-source: derived
    post:
      description: 'Important: It only allows callbacks from one unique financing each time.'
      requestBody:
        $ref: '#/components/requestBodies/callbacks.CallbackRequestArray'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                properties:
                  error:
                    type: string
                  items:
                    items:
                      $ref: '#/components/schemas/callbacks.Callback'
                    type: array
                type: object
        '400':
          description: Bad Request
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
      security:
      - JWT: []
      summary: Add a new callback
      tags:
      - Callbacks
      operationId: postCallbacks
      x-operation-id-source: derived
components:
  requestBodies:
    callbacks.CallbackRequestArray:
      content:
        application/json:
          schema:
            items:
              $ref: '#/components/schemas/callbacks.CallbackRequest'
            type: array
      description: callback data
      required: true
  schemas:
    callbacks.CallbackRequest:
      properties:
        url:
          type: string
      type: object
    callbacks.Callback:
      properties:
        created_at:
          type: string
        id:
          type: string
        updated_at:
          type: string
        url:
          type: string
      type: object
  securitySchemes:
    JWT:
      in: header
      name: Authorization
      type: apiKey