Slope Files API

The Files API from Slope — 1 operation(s) for files.

Operations 1

POST /v4/files/import Import a file #

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/slope-files-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

slope-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Slope v4 Auth Files API
  description: 'Slope v4 API - embedded credit and B2B buy-now-pay-later (BNPL) infrastructure: customers, orders/checkout, adjustments (refunds), repayments, payout accounts, prescreens, transactions, and sandbox simulation.'
  version: 1.0.0
  contact:
    name: Slope Developer Support
    url: https://developers.slopepay.com/
    email: support@slopepay.com
servers:
- url: https://api.slopepay.com
  description: production
- url: https://api.sandbox.slopepay.com
  description: sandbox
tags:
- name: Files
paths:
  /v4/files/import:
    post:
      description: Import a file from a URL. The file will be downloaded and optionally attached to an order.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportFileV4RequestDto'
      responses:
        '201':
          description: The created order.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileV4ResponseDto'
      security:
      - apiKey: []
      summary: Import a file
      tags:
      - Files
      operationId: importFile
components:
  schemas:
    FileImportStatus:
      type: string
      enum:
      - pending
      - succeeded
      - failed
    ImportFileV4RequestDto:
      type: object
      properties:
        url:
          type: string
        orderId:
          type: string
          description: The ID of the order to which the file will be attached.
        purpose:
          description: The purpose of the file.
          allOf:
          - $ref: '#/components/schemas/V4FilePurpose'
        name:
          type: string
          description: The name of the file. If not provided, the name of the file will be parsed from the URL path or Content-Disposition header..
        mimeType:
          type: string
          description: The MIME type of the file. If not provided, the MIME type will be parsed from the URL response header.
        expectedMd5:
          type: string
          description: The expected MD5 hash of the file. If provided, the file will be validated against the expected MD5 hash and not imported if the hash does not match.
        expectedSizeBytes:
          type: number
          description: The expected number of bytes to be downloaded. If provided, the file will be validated against the expected size and not imported if the size does not match.
      required:
      - url
      - orderId
      - purpose
    V4FilePurpose:
      type: string
      enum:
      - order_invoice
      description: The purpose of the file.
    FileV4ResponseDto:
      type: object
      properties:
        id:
          type: string
        importUrl:
          type: string
          description: The URL the file was imported from.
        importStatus:
          allOf:
          - $ref: '#/components/schemas/FileImportStatus'
        orderId:
          type: string
        purpose:
          type: string
      required:
      - id
      - importStatus
      - orderId
      - purpose
  securitySchemes:
    apiKey:
      type: http
      scheme: basic
      description: Basic HTTP authentication using the base64 hash of `public_key:secret_key`.
externalDocs:
  description: Slope Developer Hub
  url: https://developers.slopepay.com/