Create an App Connection
curl --request POST \
--url https://api.whop.com/api/v5/app/app_connections \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"resource_id": "<string>",
"resource_type": "product",
"view_type": "customer_before_checkout_view"
}'
{
"app_id": "<string>",
"company_id": "<string>",
"created_at": 123,
"id": "<string>",
"resource_id": "<string>",
"resource_type": "product",
"view_type": "customer_before_checkout_view"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The ID of the polymorphic resource for the connection. Ex. a product ID like prod_*************.
The type of the polymorphic resource for the connection. Ex. 'product'
product
The type of view for the connection.
customer_before_checkout_view
Response
The ID of the app, which will look like app_*************
The ID of the company, which will look like biz_*************
The date the billing usage was created as a unix timestamp.
The ID of the app connection, which will look like apco_*************
The ID of the polymorphic resource for the connection. Ex. a product ID like prod_*************.
The type of the polymorphic resource for the connection. Ex. 'product'
product
The type of view for the connection.
customer_before_checkout_view
Was this page helpful?
curl --request POST \
--url https://api.whop.com/api/v5/app/app_connections \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"resource_id": "<string>",
"resource_type": "product",
"view_type": "customer_before_checkout_view"
}'
{
"app_id": "<string>",
"company_id": "<string>",
"created_at": 123,
"id": "<string>",
"resource_id": "<string>",
"resource_type": "product",
"view_type": "customer_before_checkout_view"
}