Use the SDK to use our API and return it in a formatted JSON response
app
, company
, and me
. These dictate what namespace to use. From here, you will be able to select which type of request you are sending, such as GET
or POST
. You will then need to pass the route you are requesting, and the parameters.
The parameters object is typed, so you will be able to see what parameters are available for each endpoint.
For example, if you wanted to use the /companies/{id}
endpoint, you would pass the following parameters object:
WHOP_API_KEY
, or passed in manually, like so:
WHOP_API_KEY
, or passed in manually, like so:
How to get your API Key
whop_user_token
cookie.
You either need to pass in the token manually, or you can pass in the headers
.