Slope Auth API

The Auth API from Slope — 2 operation(s) for auth.

Operations 2

POST /v4/auth/session Generate a new session #
POST /v4/auth/token Generate an access token #

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-auth-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-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Slope v4 Auth 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: Auth
paths:
  /v4/auth/session:
    post:
      description: Generate a short-lived session token used initialize a Slope.js flow on behalf of a customer, skipping the need for the customer to login.
      parameters:
      - name: Slope-Access-Token
        in: header
        description: The access token returned from exchanging the short lived authorizationCode /v4/auth/token endpoint.
        required: true
        schema:
          type: string
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionTokenV4ResponseDto'
        '400':
          description: Returned when improperly formatted or missing fields in request body
        '401':
          description: Returned when improper keys or headers are used in the request
        '403':
          description: Returned when the caller is not authorized to access the resource
        '500':
          description: Returned when an internal server error occurs
      security:
      - apiKey: []
      summary: Generate a new session
      tags:
      - Auth
      operationId: createAuthSession
  /v4/auth/token:
    post:
      description: Given a `authorizationCode`, generate a long-lived access token to make API requests on behalf of a customer.
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthTokenV4RequestDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthTokenV4ResponseDto'
        '400':
          description: Returned when improperly formatted or missing fields in request body
        '401':
          description: Returned when improper keys or headers are used in the request
        '403':
          description: Returned when the caller is not authorized to access the resource
        '404':
          description: Returned when the authorizationCode is not found
        '500':
          description: Returned when an internal server error occurs
      security:
      - apiKey: []
      summary: Generate an access token
      tags:
      - Auth
      operationId: createAuthToken
components:
  schemas:
    AuthTokenV4RequestDto:
      type: object
      properties:
        authorizationCode:
          type: string
          description: The authorization code to use to generate a token
      required:
      - authorizationCode
    SessionTokenV4ResponseDto:
      type: object
      properties:
        sessionToken:
          type: string
          description: The short-lived session token to use to initialize a Slope.js flow. Pass this token in the `sessionToken` parameter. Expires after 4 hours.
        expiresAt:
          format: date-time
          type: string
          description: The expiration date of the session token.
      required:
      - sessionToken
      - expiresAt
    AuthTokenV4ResponseDto:
      type: object
      properties:
        accessToken:
          type: string
          description: The access token to use to generate a token
      required:
      - accessToken
  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/