Astrocal Stripe API

The Stripe API from Astrocal — 5 operation(s) for stripe.

Operations 5

POST /v1/stripe/webhooks Stripe webhook endpoint #
GET /v1/stripe/callback Stripe Connect OAuth callback #
GET /v1/stripe/connect Initiate Stripe Connect OAuth flow #
GET /v1/stripe/status Check Stripe connection status #
DELETE /v1/stripe/disconnect Disconnect Stripe account #

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/astrocal-dev:astrocal-dev-stripe-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

astrocal-dev-stripe-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Astrocal Stripe API
  version: 1.0.0
  description: Scheduling API for AI agents and developers
servers:
- url: https://api.astrocal.dev
  description: Production
- url: https://api.astrocal.dev
  description: Local development
security:
- BearerAuth: []
tags:
- name: Stripe
paths:
  /v1/stripe/webhooks:
    post:
      tags:
      - Stripe
      summary: Stripe webhook endpoint
      description: Receives Stripe webhook events. Verifies the signature using the webhook signing secret. Handles payment_intent.succeeded and payment_intent.payment_failed events.
      security: []
      responses:
        '200':
          description: Webhook received
          content:
            application/json:
              schema:
                type: object
                properties:
                  received:
                    type: boolean
                required:
                - received
        '400':
          description: Invalid signature
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: postV1StripeWebhooks
      x-operation-id-source: derived
  /v1/stripe/callback:
    get:
      tags:
      - Stripe
      summary: Stripe Connect OAuth callback
      description: Handles the OAuth callback from Stripe. Exchanges the authorization code for account details and stores the connection.
      security: []
      parameters:
      - schema:
          type: string
        required: false
        name: code
        in: query
      - schema:
          type: string
        required: false
        name: state
        in: query
      - schema:
          type: string
        required: false
        name: error
        in: query
      - schema:
          type: string
        required: false
        name: error_description
        in: query
      responses:
        '302':
          description: Redirect to dashboard, including when rate limited
        '400':
          description: Invalid state token
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1StripeCallback
      x-operation-id-source: derived
  /v1/stripe/connect:
    get:
      tags:
      - Stripe
      summary: Initiate Stripe Connect OAuth flow
      description: Returns a Stripe Connect OAuth authorization URL. This flow must be initiated from the Astrocal dashboard, which binds the authorization request to your browser session.
      responses:
        '200':
          description: OAuth URL generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                required:
                - url
        '400':
          description: Flow was not initiated from the Astrocal dashboard
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
        '409':
          description: Stripe already connected
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1StripeConnect
      x-operation-id-source: derived
  /v1/stripe/status:
    get:
      tags:
      - Stripe
      summary: Check Stripe connection status
      description: Returns the current Stripe Connect status including charges_enabled and payouts_enabled.
      responses:
        '200':
          description: Connection status
          content:
            application/json:
              schema:
                anyOf:
                - type: object
                  properties:
                    connected:
                      type: boolean
                      enum:
                      - true
                    stripe_account_id:
                      type: string
                    connected_at:
                      type: string
                    charges_enabled:
                      type: boolean
                    payouts_enabled:
                      type: boolean
                  required:
                  - connected
                  - stripe_account_id
                  - connected_at
                  - charges_enabled
                  - payouts_enabled
                - type: object
                  properties:
                    connected:
                      type: boolean
                      enum:
                      - false
                  required:
                  - connected
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: getV1StripeStatus
      x-operation-id-source: derived
  /v1/stripe/disconnect:
    delete:
      tags:
      - Stripe
      summary: Disconnect Stripe account
      description: Deauthorizes the Stripe Connect account and removes the connection.
      responses:
        '200':
          description: Stripe disconnected
          content:
            application/json:
              schema:
                type: object
                properties:
                  disconnected:
                    type: boolean
                  message:
                    type: string
                required:
                - disconnected
                - message
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
        '404':
          description: No Stripe account connected
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                    - code
                    - message
                required:
                - error
      operationId: deleteV1StripeDisconnect
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Use your API key as the bearer token.