curl --request GET \
--url https://api.whop.com/api/v1/stats/describe \
--header 'Authorization: Bearer <token>'{
"typename": "<string>",
"nodes": [
"<string>"
],
"views": [
"<string>"
],
"metrics": [
{
"name": "<string>",
"node_path": "<string>",
"supported_engines": [
"<string>"
]
}
],
"debug": {
"request_id": "<string>"
}
}Describe available stats schema. Without resource returns root nodes and metrics. With resource returns node columns, associations, and available metrics.
Required permissions:
stats:readcurl --request GET \
--url https://api.whop.com/api/v1/stats/describe \
--header 'Authorization: Bearer <token>'{
"typename": "<string>",
"nodes": [
"<string>"
],
"views": [
"<string>"
],
"metrics": [
{
"name": "<string>",
"node_path": "<string>",
"supported_engines": [
"<string>"
]
}
],
"debug": {
"request_id": "<string>"
}
}A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Resource path using : as separator (e.g., 'receipts', 'payments:membership', 'receipts:gross_revenue').
Scope query to a specific company.
"biz_xxxxxxxxxxxxxx"
Scope query to a specific user.
"user_xxxxxxxxxxxxx"
A successful response
Root schema description showing available nodes, views, and metrics.
The typename of this object
"DescribeRoot"Available root nodes.
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
Available API resource views.
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
Available metrics.
Show child attributes
Debug information.
Show child attributes
Was this page helpful?