generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 5
/
access.yaml
37 lines (36 loc) · 933 Bytes
/
access.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
openapi: 3.0.0
info:
title: Whop Access API
version: 1.0.0
servers:
- url: https://access.api.whop.com
paths:
/check/{access_expression}:
get:
security:
- ApiAuth: []
summary: Check Access
description: This endpoint checks the given access expression.
parameters:
- in: path
name: access_expression
required: true
schema:
type: string
description: The access expression to be checked.
responses:
"200":
description: Successful response
content:
application/json:
schema:
type: object
properties:
access:
type: boolean
components:
securitySchemes:
ApiAuth:
type: http
scheme: bearer
description: The users access token, this can be fetched from the `whop_user_token` cookie.