@whop/cli 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +1534 -412
  3. package/dist/index.js.map +1 -1
  4. package/package.json +2 -2
  5. package/skills/whop/SKILL.md +48 -0
  6. package/skills/whop/references/ads.md +43 -0
  7. package/skills/whop/references/formation.md +40 -0
  8. package/skills/whop/references/websites.md +59 -0
  9. package/skills/whop-accounts/SKILL.md +0 -228
  10. package/skills/whop-ad-campaigns/SKILL.md +0 -204
  11. package/skills/whop-ad-groups/SKILL.md +0 -269
  12. package/skills/whop-ads/SKILL.md +0 -277
  13. package/skills/whop-api-keys/SKILL.md +0 -126
  14. package/skills/whop-app-builds/SKILL.md +0 -81
  15. package/skills/whop-apps/SKILL.md +0 -161
  16. package/skills/whop-audiences/SKILL.md +0 -105
  17. package/skills/whop-bounties/SKILL.md +0 -145
  18. package/skills/whop-bounty-submissions/SKILL.md +0 -95
  19. package/skills/whop-cards/SKILL.md +0 -133
  20. package/skills/whop-checkout-configurations/SKILL.md +0 -77
  21. package/skills/whop-deposits/SKILL.md +0 -26
  22. package/skills/whop-dispute-alerts/SKILL.md +0 -42
  23. package/skills/whop-disputes/SKILL.md +0 -99
  24. package/skills/whop-events/SKILL.md +0 -105
  25. package/skills/whop-exports/SKILL.md +0 -379
  26. package/skills/whop-ledgers/SKILL.md +0 -52
  27. package/skills/whop-media/SKILL.md +0 -44
  28. package/skills/whop-members/SKILL.md +0 -64
  29. package/skills/whop-memberships/SKILL.md +0 -165
  30. package/skills/whop-notifications/SKILL.md +0 -104
  31. package/skills/whop-partners/SKILL.md +0 -113
  32. package/skills/whop-payment-method-domains/SKILL.md +0 -93
  33. package/skills/whop-payments/SKILL.md +0 -40
  34. package/skills/whop-payouts/SKILL.md +0 -167
  35. package/skills/whop-people/SKILL.md +0 -63
  36. package/skills/whop-permissions/SKILL.md +0 -21
  37. package/skills/whop-plans/SKILL.md +0 -165
  38. package/skills/whop-products/SKILL.md +0 -153
  39. package/skills/whop-recommended-actions/SKILL.md +0 -59
  40. package/skills/whop-resolution-center-cases/SKILL.md +0 -233
  41. package/skills/whop-setup-intents/SKILL.md +0 -40
  42. package/skills/whop-shipments/SKILL.md +0 -79
  43. package/skills/whop-social-accounts/SKILL.md +0 -128
  44. package/skills/whop-stats/SKILL.md +0 -65
  45. package/skills/whop-swaps/SKILL.md +0 -77
  46. package/skills/whop-team-members/SKILL.md +0 -93
  47. package/skills/whop-transfers/SKILL.md +0 -80
  48. package/skills/whop-users/SKILL.md +0 -309
  49. package/skills/whop-verifications/SKILL.md +0 -67
@@ -1,126 +0,0 @@
1
- ---
2
- name: whop-api-keys
3
- description: Programmatic credentials for an account or app. Run `whop api-keys --help` for usage details.
4
- requires_bin: whop
5
- command: whop api-keys
6
- ---
7
-
8
- An API Key is a programmatic credential owned by an account or app. Each key carries its own permissions policy — explicit permission statements or an inherited system role — and can be restricted with an expiration date and an IP allowlist.
9
-
10
- Use the API Keys API to list an account or app's keys, create a key (the full secret is returned once, on creation), inspect a key's effective grants, update its name or restrictions, rotate its secret, and revoke it. These endpoints require a user session — they cannot be called with an API key.
11
-
12
- # whop api-keys create
13
-
14
- Create API Key
15
-
16
- ## Options
17
-
18
- | Flag | Type | Required | Default | Description |
19
- |------|------|----------|---------|-------------|
20
- | `--api_version_date` | `string` | no | | Dated API version used when requests authenticated with this key omit the `Api-Version-Date` header. New keys default to the latest version. |
21
- | `--expires_at` | `unknown` | no | | When the API key should stop working, as an ISO 8601 timestamp. Omit (or pass `null` on update) for a key that never expires. |
22
- | `--ip_allowlist` | `unknown` | no | | IPv4/IPv6 CIDR ranges allowed to use this key, for example `["203.0.113.0/24"]`. Empty or `null` allows any IP. |
23
- | `--name` | `string` | yes | | A human-readable name for the API key, such as 'Production API Key'. |
24
- | `--permissions` | `object` | yes | | The permissions policy for the API key: explicit permission statements, or a system role to inherit from. Statements without a `resources` array default to the owning account (Account API keys) or every key-addressable resource (App API keys). |
25
- | `--resource_id` | `string` | yes | | The account (`biz_`) or app (`app_`) tag to create the API key for. |
26
- | `--resource_type` | `string` | yes | | The type of resource that will own this API key. |
27
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
28
-
29
- > Confirm with the user before executing this destructive command.
30
-
31
- ---
32
-
33
- # whop api-keys delete
34
-
35
- Delete API Key
36
-
37
- ## Arguments
38
-
39
- | Name | Type | Required | Description |
40
- |------|------|----------|-------------|
41
- | `id` | `string` | yes | API key ID, prefixed `apik_`. |
42
-
43
- > Confirm with the user before executing this destructive command.
44
-
45
- ---
46
-
47
- # whop api-keys get
48
-
49
- Retrieve API Key
50
-
51
- ## Arguments
52
-
53
- | Name | Type | Required | Description |
54
- |------|------|----------|-------------|
55
- | `id` | `string` | yes | API key ID, prefixed `apik_`. |
56
-
57
- ---
58
-
59
- # whop api-keys list
60
-
61
- List API Keys
62
-
63
- ## Options
64
-
65
- | Flag | Type | Required | Default | Description |
66
- |------|------|----------|---------|-------------|
67
- | `--resource_id` | `string` | yes | | The account (`biz_`) or app (`app_`) tag to list API keys for. |
68
- | `--resource_type` | `string` | yes | | The type of resource that owns the API keys. |
69
- | `--created_before` | `number` | no | | Only return API keys created before this ISO 8601 timestamp. |
70
- | `--created_after` | `number` | no | | Only return API keys created after this ISO 8601 timestamp. |
71
- | `--first` | `number` | no | | The number of API keys to return (default 20, max 100). |
72
- | `--after` | `string` | no | | A cursor; returns API keys after this position. |
73
- | `--last` | `number` | no | | The number of API keys to return from the end of the range. |
74
- | `--before` | `string` | no | | A cursor; returns API keys before this position. |
75
- | `--order` | `string` | no | | The field to sort API keys by. |
76
- | `--direction` | `string` | no | | Sort direction. |
77
-
78
- ---
79
-
80
- # whop api-keys permissions
81
-
82
- List the Permission Catalog
83
-
84
- ---
85
-
86
- # whop api-keys rotate
87
-
88
- Rotate API Key
89
-
90
- ## Arguments
91
-
92
- | Name | Type | Required | Description |
93
- |------|------|----------|-------------|
94
- | `id` | `string` | yes | API key ID, prefixed `apik_`. |
95
-
96
- ## Options
97
-
98
- | Flag | Type | Required | Default | Description |
99
- |------|------|----------|---------|-------------|
100
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
101
-
102
- > Confirm with the user before executing this destructive command.
103
-
104
- ---
105
-
106
- # whop api-keys update
107
-
108
- Update API Key
109
-
110
- ## Arguments
111
-
112
- | Name | Type | Required | Description |
113
- |------|------|----------|-------------|
114
- | `id` | `string` | yes | API key ID, prefixed `apik_`. |
115
-
116
- ## Options
117
-
118
- | Flag | Type | Required | Default | Description |
119
- |------|------|----------|---------|-------------|
120
- | `--api_version_date` | `string` | no | | Dated API version used when requests authenticated with this key omit the `Api-Version-Date` header. New keys default to the latest version. |
121
- | `--expires_at` | `unknown` | no | | When the API key should stop working, as an ISO 8601 timestamp. Omit (or pass `null` on update) for a key that never expires. |
122
- | `--ip_allowlist` | `unknown` | no | | IPv4/IPv6 CIDR ranges allowed to use this key, for example `["203.0.113.0/24"]`. Empty or `null` allows any IP. |
123
- | `--name` | `unknown` | no | | A new human-readable name for the API key. |
124
- | `--permissions` | `object` | no | | The permissions policy for the API key: explicit permission statements, or a system role to inherit from. Statements without a `resources` array default to the owning account (Account API keys) or every key-addressable resource (App API keys). |
125
-
126
- > Confirm with the user before executing this destructive command.
@@ -1,81 +0,0 @@
1
- ---
2
- name: whop-app-builds
3
- description: Versioned build artifacts deployed to an app's platforms. Run `whop app-builds --help` for usage details.
4
- requires_bin: whop
5
- command: whop app-builds
6
- ---
7
-
8
- An App Build is a versioned artifact uploaded for an app — a hosted web archive, or an iOS/Android bundle. Builds start as drafts, go through review, and one approved build per platform is served to users as the production build.
9
-
10
- Use the App Builds API to upload a build for an app, list an app's builds with platform and status filters, retrieve a build, and promote a draft or approved build to production.
11
-
12
- # whop app-builds create
13
-
14
- Create App Build
15
-
16
- ## Options
17
-
18
- | Flag | Type | Required | Default | Description |
19
- |------|------|----------|---------|-------------|
20
- | `--ai_prompt_id` | `string` | no | | The AI prompt that generated this build, if applicable. |
21
- | `--app_id` | `string` | no | | The app to create the build for, prefixed `app_`. Defaults to the app behind the presented credential. |
22
- | `--attachment` | `object` | yes | | The uploaded build file: `{ id }` for an existing file or `{ direct_upload_id }` for a completed direct upload. |
23
- | `--checksum` | `string` | yes | | A client-generated checksum of the build file, used to verify file integrity when unpacked. |
24
- | `--platform` | `string` | yes | | The target platform for the build. |
25
- | `--source_attachment` | `object` | no | | An optional compressed archive (.zip or .gz) of the source code that produced this build, stored alongside the build so it can be downloaded later. Referenced like `attachment`, and must be a different file. |
26
- | `--supported_app_view_types` | `array` | no | | The view types this build supports. Only list the ones its code implements. |
27
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
28
-
29
- > Confirm with the user before executing this destructive command.
30
-
31
- ---
32
-
33
- # whop app-builds get
34
-
35
- Retrieve App Build
36
-
37
- ## Arguments
38
-
39
- | Name | Type | Required | Description |
40
- |------|------|----------|-------------|
41
- | `id` | `string` | yes | App build ID, prefixed `abld_`. |
42
-
43
- ---
44
-
45
- # whop app-builds list
46
-
47
- List App Builds
48
-
49
- ## Options
50
-
51
- | Flag | Type | Required | Default | Description |
52
- |------|------|----------|---------|-------------|
53
- | `--app_id` | `string` | yes | | The app to list builds for, prefixed `app_`. |
54
- | `--platform` | `string` | no | | Filter builds by target platform. |
55
- | `--status` | `string` | no | | Filter builds by review status. |
56
- | `--created_before` | `number` | no | | Only return builds created before this ISO 8601 timestamp. |
57
- | `--created_after` | `number` | no | | Only return builds created after this ISO 8601 timestamp. |
58
- | `--first` | `number` | no | | The number of builds to return (default 20, max 100). |
59
- | `--after` | `string` | no | | A cursor; returns builds after this position. |
60
- | `--last` | `number` | no | | The number of builds to return from the end of the range. |
61
- | `--before` | `string` | no | | A cursor; returns builds before this position. |
62
-
63
- ---
64
-
65
- # whop app-builds promote
66
-
67
- Promote App Build
68
-
69
- ## Arguments
70
-
71
- | Name | Type | Required | Description |
72
- |------|------|----------|-------------|
73
- | `id` | `string` | yes | App build ID, prefixed `abld_`. |
74
-
75
- ## Options
76
-
77
- | Flag | Type | Required | Default | Description |
78
- |------|------|----------|---------|-------------|
79
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
80
-
81
- > Confirm with the user before executing this destructive command.
@@ -1,161 +0,0 @@
1
- ---
2
- name: whop-apps
3
- description: "Apps you build on Whop: metadata, hosted builds, runtime logs. Run `whop apps --help` for usage details."
4
- requires_bin: whop
5
- command: whop apps
6
- ---
7
-
8
- An App is software you build on Whop. It can be a hosted web app served at `<route>.whop.app` or an API integration installed as an experience, and it belongs to the account that owns its credentials, settings, builds, and runtime logs.
9
-
10
- Use the Apps API to manage app configuration and, for hosted apps, read server runtime logs for console output, uncaught exceptions, and failed requests. Logs are retained for 7 days and can be filtered by build, level, time window, and message text.
11
-
12
- # whop apps create
13
-
14
- Create App
15
-
16
- ## Options
17
-
18
- | Flag | Type | Required | Default | Description |
19
- |------|------|----------|---------|-------------|
20
- | `--account_id` | `string` | no | | The account to create the app for (`biz_` tag). Defaults to the account behind the presented credential. |
21
- | `--app_type` | `string` | no | | The type of app to create. Defaults to `b2c_app`. |
22
- | `--base_url` | `unknown` | no | | The base production URL where the app is hosted, such as `https://myapp.example.com`. |
23
- | `--icon` | `object` | no | | The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload. |
24
- | `--name` | `string` | yes | | The display name for the app, shown to users on the app store and product pages. |
25
- | `--redirect_uris` | `array` | no | | The whitelisted OAuth callback URLs that users are redirected to after authorizing the app. |
26
- | `--route` | `unknown` | no | | The subdomain route where the app's hosted web builds are served, such as `myapp` for myapp.whop.app. |
27
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
28
-
29
- > Confirm with the user before executing this destructive command.
30
-
31
- ---
32
-
33
- # whop apps delete
34
-
35
- Delete App
36
-
37
- ## Arguments
38
-
39
- | Name | Type | Required | Description |
40
- |------|------|----------|-------------|
41
- | `id` | `string` | yes | App ID (prefixed `app_`), the app's claimed route, or its proxy domain id. |
42
-
43
- > Confirm with the user before executing this destructive command.
44
-
45
- ---
46
-
47
- # whop apps get
48
-
49
- Retrieve App
50
-
51
- ## Arguments
52
-
53
- | Name | Type | Required | Description |
54
- |------|------|----------|-------------|
55
- | `id` | `string` | yes | App ID (prefixed `app_`), the app's claimed route, or its proxy domain id. |
56
-
57
- ---
58
-
59
- # whop apps list
60
-
61
- List Apps
62
-
63
- ## Options
64
-
65
- | Flag | Type | Required | Default | Description |
66
- |------|------|----------|---------|-------------|
67
- | `--account_id` | `string` | no | | Only return apps created by this account (`biz_` tag). With developer access to the account this includes its unlisted and hidden apps. |
68
- | `--app_type` | `string` | no | | Filter apps by the type of end-user they are built for. Apps of type `website` are left out unless you ask for them by name. |
69
- | `--view_type` | `string` | no | | Only return apps supporting this view type, such as `dashboard` or `hub`. |
70
- | `--verified_apps_only` | `boolean` | no | | Whether to only return apps verified by Whop. Verified website templates — websites with a published web build — are included, even though websites are otherwise left out of app lists. |
71
- | `--query` | `string` | no | | A search string matched against app names. |
72
- | `--order` | `string` | no | | The field to sort apps by. Defaults to discoverable_at, showing the most recently published apps first. |
73
- | `--direction` | `string` | no | | Sort direction. |
74
- | `--first` | `number` | no | | The number of apps to return (default 20, max 100). |
75
- | `--after` | `string` | no | | A cursor; returns apps after this position. |
76
- | `--last` | `number` | no | | The number of apps to return from the end of the range. |
77
- | `--before` | `string` | no | | A cursor; returns apps before this position. |
78
-
79
- ---
80
-
81
- # whop apps logs
82
-
83
- List App Logs
84
-
85
- ## Arguments
86
-
87
- | Name | Type | Required | Description |
88
- |------|------|----------|-------------|
89
- | `id` | `string` | yes | The ID of the app, which will look like app_*************. |
90
-
91
- ## Options
92
-
93
- | Flag | Type | Required | Default | Description |
94
- |------|------|----------|---------|-------------|
95
- | `--app_build_id` | `string` | no | | Only return logs from this build. |
96
- | `--level` | `string` | no | | Only return console lines of this level. |
97
- | `--query` | `string` | no | | Only return logs whose message contains this text (case-insensitive). |
98
- | `--created_after` | `string` | no | | Start of the time window as an ISO 8601 timestamp. Defaults to 7 days before created_before. |
99
- | `--created_before` | `string` | no | | End of the time window as an ISO 8601 timestamp. Defaults to now. |
100
- | `--first` | `number` | no | | The number of log lines to return (max 500). |
101
- | `--after` | `string` | no | | A cursor for fetching logs after a previous page. |
102
- | `--before` | `string` | no | | A cursor for fetching logs before a later page. |
103
-
104
- ---
105
-
106
- # whop apps permissions
107
-
108
- Update App Permissions
109
-
110
- ## Arguments
111
-
112
- | Name | Type | Required | Description |
113
- |------|------|----------|-------------|
114
- | `id` | `string` | yes | App ID, prefixed `app_`. |
115
-
116
- ## Options
117
-
118
- | Flag | Type | Required | Default | Description |
119
- |------|------|----------|---------|-------------|
120
- | `--requested_permissions` | `array` | yes | | The full set of permissions the app requests on install; permissions not listed are removed. |
121
-
122
- > Confirm with the user before executing this destructive command.
123
-
124
- ---
125
-
126
- # whop apps update
127
-
128
- Update App
129
-
130
- ## Arguments
131
-
132
- | Name | Type | Required | Description |
133
- |------|------|----------|-------------|
134
- | `id` | `string` | yes | App ID (prefixed `app_`), the app's claimed route, or its proxy domain id. |
135
-
136
- ## Options
137
-
138
- | Flag | Type | Required | Default | Description |
139
- |------|------|----------|---------|-------------|
140
- | `--app_store_description` | `string` | no | | The detailed description shown on the app store's in-depth app view page. |
141
- | `--app_type` | `string` | no | | The type of end-user the app is built for. Cannot be changed on an app whose type is already `website`. |
142
- | `--base_url` | `unknown` | no | | The base production URL where the app is hosted. Set to `null` to take the app proxy offline. |
143
- | `--dashboard_path` | `unknown` | no | | The URL path for the account dashboard view. |
144
- | `--description` | `string` | no | | A short description of the app shown in listings and search results. |
145
- | `--discover_path` | `unknown` | no | | The URL path for the discover view. |
146
- | `--experience_path` | `unknown` | no | | The URL path for the member-facing hub view, such as `/experiences/[experienceId]`. |
147
- | `--icon` | `object` | no | | The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload. |
148
- | `--name` | `string` | no | | The display name for the app, shown to users on the app store and product pages. |
149
- | `--oauth_client_type` | `string` | no | | How the app authenticates at the OAuth token endpoint. |
150
- | `--openapi_path` | `unknown` | no | | The URL path to the app's OpenAPI spec file (requires the ai_chat capability). |
151
- | `--production_android_build_id` | `unknown` | no | | The app build (`abld_` tag) to serve as the Android production build, or `null` to unassign it. Same rules as `production_web_build_id`. |
152
- | `--production_ios_build_id` | `unknown` | no | | The app build (`abld_` tag) to serve as the iOS production build, or `null` to unassign it. Same rules as `production_web_build_id`. |
153
- | `--production_web_build_id` | `unknown` | no | | The app build (`abld_` tag) to serve as the web production build, or `null` to unassign it. The build must belong to this app, target web, and be in the draft or approved status; a draft build is queued for approval and takes over once approved. Requires the `developer:manage_builds` scope. |
154
- | `--redirect_uris` | `array` | no | | The whitelisted OAuth callback URLs users are redirected to after authorizing the app. |
155
- | `--required_scopes` | `array` | no | | The OAuth scopes the app requests from users when they install it. |
156
- | `--route` | `string` | no | | The subdomain route where the app's hosted web builds are served. |
157
- | `--secrets` | `object` | no | | Secrets to add or overwrite on the app, as an object of string values. Keys not included are left untouched; pass null or an empty string as the value to delete a secret. Encrypted at rest and injected into the app's hosted server runtime. |
158
- | `--skills_path` | `unknown` | no | | The URL path to the app's skills directory (requires the ai_chat capability). |
159
- | `--status` | `string` | no | | Controls whether the app is published on Whop discovery or accessible only through its direct link. Publishing requires a name, icon, and description. |
160
-
161
- > Confirm with the user before executing this destructive command.
@@ -1,105 +0,0 @@
1
- ---
2
- name: whop-audiences
3
- description: Reusable targeting lists for ad groups. Run `whop audiences --help` for usage details.
4
- requires_bin: whop
5
- command: whop audiences
6
- ---
7
-
8
- An Audience represents a customer list uploaded to Whop for ad targeting. Audiences belong to an account and sync to supported ad platforms as custom audiences.
9
-
10
- Use the Audiences API to create audiences from CSV uploads, monitor processing status, and list or delete audiences for an account. Created audiences are usable for targeting after processing reaches `ready` or `partial`.
11
-
12
- # whop audiences add_people
13
-
14
- Add People
15
-
16
- ## Arguments
17
-
18
- | Name | Type | Required | Description |
19
- |------|------|----------|-------------|
20
- | `id` | `string` | yes | Audience ID, prefixed `adaud_`. |
21
-
22
- ## Options
23
-
24
- | Flag | Type | Required | Default | Description |
25
- |------|------|----------|---------|-------------|
26
- | `--file_id` | `string` | yes | | The new customer CSV — a file id (`file_...`) returned by `POST /files`. Its headers must match the audience's saved column mapping. |
27
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
28
-
29
- > Confirm with the user before executing this destructive command.
30
-
31
- ---
32
-
33
- # whop audiences create
34
-
35
- Create Audience
36
-
37
- ## Options
38
-
39
- | Flag | Type | Required | Default | Description |
40
- |------|------|----------|---------|-------------|
41
- | `--account_id` | `string` | yes | | Account ID, prefixed `biz_`. |
42
- | `--audience_type` | `string` | no | | What to create. Defaults to `custom` (CSV upload). |
43
- | `--auto_refresh` | `boolean` | no | | Filter audiences only, and set only at creation. `true` (the default) rebuilds membership from the filters twice a day. `false` keeps whoever matched at creation and never rebuilds. |
44
- | `--column_mapping` | `object` | no | | Custom audiences only. Maps supported identity fields to CSV column headers. Map at least one of `email` or `phone`. |
45
- | `--count` | `number` | no | | Lookalikes only. Number of lookalike audiences to create (1–6). |
46
- | `--file_id` | `string` | no | | Custom audiences only. The uploaded customer CSV — a file id (`file_...`) returned by `POST /files`. |
47
- | `--filters` | `object` | no | | Filter audiences only. The People filters that define membership, keyed exactly as `GET /people` accepts them — for example `{"os": "iOS", "country": "US"}`. Date filters must be rolling windows — `first_seen_within_days` or `last_seen_within_days` — so the audience re-anchors on every refresh; fixed dates such as `first_seen_after` are rejected. Source values are canonical source paths (`whop:<campaign>:<group>:<ad>`, `ext:<platform>:...`, `referrer:<domain>`, `direct`), exact or with a trailing `:*` wildcard. |
48
- | `--name` | `string` | no | | Audience display name. Required for custom audiences; lookalike names are generated from the source audience. |
49
- | `--percentage` | `number` | no | | Lookalikes only. Total similarity reach as a whole percent (1–20), sliced evenly across `count` — must be divisible by `count`. |
50
- | `--source_audience_id` | `string` | no | | Lookalikes only. The ready custom audience (`adaud_`) to build from; it needs at least 100 matched people. |
51
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
52
-
53
- > Confirm with the user before executing this destructive command.
54
-
55
- ---
56
-
57
- # whop audiences delete
58
-
59
- Delete Audience
60
-
61
- ## Arguments
62
-
63
- | Name | Type | Required | Description |
64
- |------|------|----------|-------------|
65
- | `id` | `string` | yes | Audience ID, prefixed `adaud_`. |
66
-
67
- > Confirm with the user before executing this destructive command.
68
-
69
- ---
70
-
71
- # whop audiences list
72
-
73
- List Audiences
74
-
75
- ## Options
76
-
77
- | Flag | Type | Required | Default | Description |
78
- |------|------|----------|---------|-------------|
79
- | `--account_id` | `string` | no | | Account ID, prefixed `biz_`. |
80
- | `--audience_id` | `string` | no | | Audience ID, prefixed `adaud_`, used to filter the response to one audience. |
81
- | `--audience_type` | `string` | no | | Filter by audience type: `custom` (uploaded lists) or `lookalike`. |
82
- | `--source_type` | `string` | no | | Filter by member source: `csv_upload` (uploaded lists) or `people_filter` (automatic audiences built from saved People filters). |
83
- | `--first` | `number` | no | | Number of audiences to return. Defaults to 20; maximum 100. |
84
- | `--after` | `string` | no | | Cursor for the next page of audiences. |
85
-
86
- ---
87
-
88
- # whop audiences update
89
-
90
- Update Audience
91
-
92
- ## Arguments
93
-
94
- | Name | Type | Required | Description |
95
- |------|------|----------|-------------|
96
- | `id` | `string` | yes | Audience ID, prefixed `adaud_`. |
97
-
98
- ## Options
99
-
100
- | Flag | Type | Required | Default | Description |
101
- |------|------|----------|---------|-------------|
102
- | `--filters` | `object` | no | | Replaces the People filters that define membership. The whole definition is replaced rather than merged, so send every filter you want to keep — a filter you leave out stops applying. Keys and values are the ones `GET /people` accepts, such as an `os` of `iOS` or a `country` of `US`, and at least one filter is required. Date filters must be rolling windows — `first_seen_within_days` or `last_seen_within_days` — so the audience re-anchors every time it rebuilds; fixed dates such as `first_seen_after` are rejected, as is `audience_id`. An array value holds at most 500 items, and each value at most 10 KB. Only an audience with a `source_type` of `people_filter` and `auto_refresh` of `true` accepts filters: an uploaded list has no filters to replace, and with auto refresh off the audience keeps the people it matched when it was built, so create a new audience instead. |
103
- | `--name` | `string` | no | | New audience display name. A blank value is ignored rather than clearing the name. |
104
-
105
- > Confirm with the user before executing this destructive command.
@@ -1,145 +0,0 @@
1
- ---
2
- name: whop-bounties
3
- description: Paid tasks with reviewed submissions and escrowed rewards. Run `whop bounties --help` for usage details.
4
- requires_bin: whop
5
- command: whop bounties
6
- ---
7
-
8
- A Bounty is a paid task posted by an account or user. The reward is held in escrow when the bounty publishes, workers submit proof of completed work, and each accepted submission is paid out until every winner slot fills.
9
-
10
- Use the Bounties API to create and publish a bounty, list an account's bounties for reporting or dashboards, list the bounties a user can work or has participated in, and retrieve a single bounty by ID.
11
-
12
- # whop bounties cancel
13
-
14
- Cancel
15
-
16
- ## Arguments
17
-
18
- | Name | Type | Required | Description |
19
- |------|------|----------|-------------|
20
- | `id` | `string` | yes | Bounty ID (`bnty_` tag). |
21
-
22
- ## Options
23
-
24
- | Flag | Type | Required | Default | Description |
25
- |------|------|----------|---------|-------------|
26
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
27
-
28
- > Confirm with the user before executing this destructive command.
29
-
30
- ---
31
-
32
- # whop bounties create
33
-
34
- Create Bounty
35
-
36
- ## Options
37
-
38
- | Flag | Type | Required | Default | Description |
39
- |------|------|----------|---------|-------------|
40
- | `--accepted_submissions_limit` | `number` | no | | Number of submissions that can be accepted (winner slots). Defaults to 1. The escrowed total is `gross_reward_amount` times this limit and must be at least $5. |
41
- | `--accepted_submissions_per_user_limit` | `number` | no | | How many winner slots one worker can win. Defaults to `1`. Wins plus proofs awaiting review never exceed this number, and a worker runs one attempt at a time. Cannot exceed `accepted_submissions_limit`. |
42
- | `--account_id` | `unknown` | no | | Account whose balance funds the bounty pool (`biz_` tag). Defaults to the caller's personal balance. Requires permission to move the account's funds. |
43
- | `--allowed_country_codes` | `unknown` | no | | Countries whose residents can work the bounty, as ISO 3166 alpha-2 codes. Empty means worldwide. |
44
- | `--business_goal_type` | `string` | no | | What the poster wants the work to achieve, declared once here. |
45
- | `--capture_spec` | `object` | no | | Per-bounty overrides of the served capture contract. Only accepted when `business_goal_type` is `data_capture`; omitted fields keep the platform defaults, and the resulting contract is echoed back as `capture_spec` on the bounty. |
46
- | `--description` | `string` | yes | | Full task instructions shown to workers. |
47
- | `--experience_id` | `unknown` | no | | Experience to host the bounty in (`exp_` tag). Any visibility — public for an open bounty, private for an invited one. Required unless account_id is set, in which case the bounty anchors in that account's public forum. |
48
- | `--frequency` | `string` | no | | How often the schedule creates a new bounty. Each occurrence is a separate bounty. Defaults to `once`; only applies with `publish_at`. |
49
- | `--gross_reward_amount` | `number` | yes | | Gross bounty-pool amount (USD) escrowed per accepted submission, in whole dollars. Platform fees and affiliate shares are paid from this amount. |
50
- | `--publish_at` | `unknown` | no | | ISO 8601 time to publish the bounty. When set, the bounty is created as a hidden draft and funded + published at this time instead of immediately. |
51
- | `--publish_at_timezone` | `unknown` | no | | IANA timezone for recurring occurrences. Required when publish_at is set. |
52
- | `--title` | `string` | yes | | Short name of the task shown to workers. |
53
- | `--idempotency-key` | `string` | no | | A unique key that makes this request safe to retry. See [Idempotent requests](https://docs.whop.com/developer/api/idempotency). |
54
-
55
- > Confirm with the user before executing this destructive command.
56
-
57
- ---
58
-
59
- # whop bounties get
60
-
61
- Retrieve Bounty
62
-
63
- ## Arguments
64
-
65
- | Name | Type | Required | Description |
66
- |------|------|----------|-------------|
67
- | `id` | `string` | yes | Bounty ID (`bnty_` tag). |
68
-
69
- ---
70
-
71
- # whop bounties list
72
-
73
- List Bounties
74
-
75
- ## Options
76
-
77
- | Flag | Type | Required | Default | Description |
78
- |------|------|----------|---------|-------------|
79
- | `--account_id` | `string` | no | | Scope the list to this account (`biz_` tag). Requires read access to the account; account API keys may pass their own account or a connected account. |
80
- | `--user_id` | `string` | no | | List the bounties this user participated in (`user_` tag). Must be the authenticated user. |
81
- | `--status` | `string` | no | | Filter by lifecycle state. |
82
- | `--query` | `string` | no | | Substring match on the bounty title or ID. |
83
- | `--created_after` | `string` | no | | Only bounties created after this ISO 8601 timestamp. |
84
- | `--created_before` | `string` | no | | Only bounties created before this ISO 8601 timestamp. |
85
- | `--order` | `string` | no | | Sort field. |
86
- | `--direction` | `string` | no | | Sort direction. |
87
- | `--first` | `number` | no | `20` | Number of bounties to return from the start of the window. |
88
- | `--after` | `string` | no | | Cursor to paginate forwards from. |
89
- | `--last` | `number` | no | | Number of bounties to return from the end of the window. |
90
- | `--before` | `string` | no | | Cursor to paginate backwards from. |
91
-
92
- ---
93
-
94
- # whop bounties submissions
95
-
96
- List Public Submissions
97
-
98
- ## Arguments
99
-
100
- | Name | Type | Required | Description |
101
- |------|------|----------|-------------|
102
- | `bounty_id` | `string` | yes | The bounty whose public submissions to list (`bnty_` tag). |
103
-
104
- ## Options
105
-
106
- | Flag | Type | Required | Default | Description |
107
- |------|------|----------|---------|-------------|
108
- | `--status` | `string` | no | | Filter by lifecycle state. |
109
- | `--created_after` | `string` | no | | Only submissions created after this ISO 8601 timestamp. |
110
- | `--created_before` | `string` | no | | Only submissions created before this ISO 8601 timestamp. |
111
- | `--order` | `string` | no | | Sort field. |
112
- | `--direction` | `string` | no | | Sort direction. |
113
- | `--first` | `number` | no | `20` | Number of submissions to return from the start of the window. |
114
- | `--after` | `string` | no | | Cursor to paginate forwards from. |
115
- | `--last` | `number` | no | | Number of submissions to return from the end of the window. |
116
- | `--before` | `string` | no | | Cursor to paginate backwards from. |
117
-
118
- ---
119
-
120
- # whop bounties update
121
-
122
- Update Bounty
123
-
124
- ## Arguments
125
-
126
- | Name | Type | Required | Description |
127
- |------|------|----------|-------------|
128
- | `id` | `string` | yes | Bounty ID (`bnty_` tag). |
129
-
130
- ## Options
131
-
132
- | Flag | Type | Required | Default | Description |
133
- |------|------|----------|---------|-------------|
134
- | `--accepted_submissions_limit` | `number` | no | | Scheduled drafts only. Number of submissions that can be accepted (winner slots). |
135
- | `--accepted_submissions_per_user_limit` | `number` | no | | How many winner slots one worker can win. Defaults to `1`. Wins plus proofs awaiting review never exceed this number, and a worker runs one attempt at a time. Cannot exceed `accepted_submissions_limit`. Editable while the bounty is still open with nothing under review. |
136
- | `--allowed_country_codes` | `unknown` | no | | Replace the countries whose residents can work the bounty, as ISO 3166 alpha-2 codes. Empty means worldwide. |
137
- | `--business_goal_type` | `string` | no | | What the poster wants the work to achieve, declared once here. |
138
- | `--description` | `string` | no | | New full task instructions. |
139
- | `--frequency` | `string` | no | | Scheduled drafts only. How often the schedule creates a new bounty. |
140
- | `--gross_reward_amount` | `number` | no | | Scheduled drafts only. Gross bounty-pool amount (USD) escrowed per accepted submission. The escrowed total (this times accepted_submissions_limit) must stay at least $5. |
141
- | `--publish_at` | `unknown` | no | | Scheduled drafts only. New ISO 8601 time to publish the draft. Must be in the future. |
142
- | `--publish_at_timezone` | `unknown` | no | | Scheduled drafts only. IANA timezone for recurring occurrences. |
143
- | `--title` | `string` | no | | New short name of the task. |
144
-
145
- > Confirm with the user before executing this destructive command.