openapi: 3.1.0 info: title: StickerVoice API version: 1.0.0 summary: Create. Animate. Speak. Share. description: | REST API shared by the StickerVoice website, the Android app (Kotlin / Jetpack Compose) and the iOS app (Swift / SwiftUI). One account, one library and one premium entitlement across every platform. ## Authentication Call `POST /auth/register` or `POST /auth/login` to receive a **Sanctum personal access token**. Send it on every request that needs a user: ``` Authorization: Bearer 12|AbCdEf... Accept: application/json ``` Public endpoints (catalog, search, plans) also accept the token. When present, responses include per-user fields such as `is_favorited` and `is_locked`. ## Conventions * All responses are JSON. Always send `Accept: application/json`. * Lists are paginated: `?page=2&per_page=24` (max 100). Paginated responses contain `data`, `links` and `meta`. * Content can be addressed by numeric `id` **or** `slug` (for example `/stickers/42` or `/stickers/happy-blob`). * Send `X-Platform: android` or `X-Platform: ios` so downloads are attributed to the right platform. * Timestamps are ISO 8601 (UTC offset included). ## Errors Errors always contain a human-readable `message`. Some include a machine-readable `code`: | HTTP | code | Meaning | |------|------|---------| | 401 | – | Missing or invalid token (`{"message":"Unauthenticated."}`) | | 403 | `premium_required` | Item is premium and the user has no active premium | | 403 | `account_suspended` | The account was banned by an administrator | | 404 | `not_found` | Unknown endpoint or item | | 409 | – | Purchase already linked to another account | | 422 | – | Validation failed. `errors` maps each field to a list of messages | | 422 | `unknown_product` | Store product id is not mapped to a plan | | 429 | – | Rate limit exceeded (120 req/min, 10 auth req/min, 60 uploads/hour) | contact: name: StickerVoice url: https://stickervoice.com servers: - url: https://stickervoice.com/api/v1 description: Production - url: http://localhost:8000/api/v1 description: Local development tags: - name: App description: Bootstrap configuration and home feed - name: Auth description: Registration, login and the signed-in account - name: Stickers - name: Sounds - name: Packs - name: Library description: Favorites, uploads and reports for the signed-in user - name: Premium description: Plans, entitlements and in-app purchase verification security: [] paths: /config: get: tags: [App] summary: App bootstrap configuration description: Call on app launch. Compare `android.min_version` / `ios.min_version` with the installed version to force updates, and show `maintenance_message` if set. operationId: getConfig responses: '200': description: Configuration content: application/json: schema: { $ref: '#/components/schemas/Config' } /home: get: tags: [App] summary: Home feed description: Everything the home screen needs in a single request. operationId: getHome security: [{}, { bearerAuth: [] }] responses: '200': description: Home sections content: application/json: schema: type: object properties: data: type: object properties: featured_stickers: { type: array, items: { $ref: '#/components/schemas/Sticker' } } trending_stickers: { type: array, items: { $ref: '#/components/schemas/Sticker' } } new_stickers: { type: array, items: { $ref: '#/components/schemas/Sticker' } } sound_stickers: { type: array, items: { $ref: '#/components/schemas/Sticker' } } animated_stickers: { type: array, items: { $ref: '#/components/schemas/Sticker' } } popular_sounds: { type: array, items: { $ref: '#/components/schemas/Sound' } } featured_packs: { type: array, items: { $ref: '#/components/schemas/Pack' } } categories: { type: array, items: { $ref: '#/components/schemas/Category' } } /categories: get: tags: [App] summary: List categories operationId: listCategories parameters: - name: type in: query description: Only categories usable for this content type (`all` categories are always included). schema: { type: string, enum: [sticker, sound] } responses: '200': description: Categories with published item counts content: application/json: schema: type: object properties: data: { type: array, items: { $ref: '#/components/schemas/Category' } } /search: get: tags: [App] summary: Search stickers, sounds and packs operationId: search security: [{}, { bearerAuth: [] }] parameters: - name: q in: query required: true schema: { type: string, minLength: 1, maxLength: 100 } responses: '200': description: Grouped results (stickers up to 30, sounds up to 20, packs up to 10) content: application/json: schema: type: object properties: data: type: object properties: stickers: { type: array, items: { $ref: '#/components/schemas/Sticker' } } sounds: { type: array, items: { $ref: '#/components/schemas/Sound' } } packs: { type: array, items: { $ref: '#/components/schemas/Pack' } } '422': { $ref: '#/components/responses/ValidationError' } /auth/register: post: tags: [Auth] summary: Create an account operationId: register requestBody: required: true content: application/json: schema: type: object required: [name, email, password] properties: name: { type: string, maxLength: 60, example: Sara } username: { type: string, minLength: 3, maxLength: 30, example: sara_stickers } email: { type: string, format: email, example: sara@example.com } password: { type: string, minLength: 8, example: secret-password } device_name: { type: string, example: Pixel 9 } responses: '201': description: Account created content: application/json: schema: { $ref: '#/components/schemas/AuthToken' } '422': { $ref: '#/components/responses/ValidationError' } /auth/login: post: tags: [Auth] summary: Log in and get a token operationId: login requestBody: required: true content: application/json: schema: type: object required: [email, password] properties: email: { type: string, format: email } password: { type: string } device_name: { type: string, description: Shown to the user when listing sessions, example: iPhone 16 } responses: '200': description: Logged in content: application/json: schema: { $ref: '#/components/schemas/AuthToken' } '403': description: 'Account suspended (code: account_suspended)' content: application/json: schema: { $ref: '#/components/schemas/Error' } '422': { $ref: '#/components/responses/ValidationError' } /auth/logout: post: tags: [Auth] summary: Revoke the current token operationId: logout security: [{ bearerAuth: [] }] responses: '200': { $ref: '#/components/responses/Message' } '401': { $ref: '#/components/responses/Unauthenticated' } /me: get: tags: [Auth] summary: Current account operationId: getMe security: [{ bearerAuth: [] }] responses: '200': description: Account content: application/json: schema: type: object properties: data: { $ref: '#/components/schemas/Account' } '401': { $ref: '#/components/responses/Unauthenticated' } post: tags: [Auth] summary: Update profile (multipart for avatar) description: Uses POST so multipart avatar uploads work from every HTTP client. Send only the fields you want to change. operationId: updateMe security: [{ bearerAuth: [] }] requestBody: content: multipart/form-data: schema: type: object properties: name: { type: string, maxLength: 60 } username: { type: string, maxLength: 30 } email: { type: string, format: email } bio: { type: string, maxLength: 500 } avatar: { type: string, format: binary, description: 'PNG, JPEG or WebP, max 4 MB' } application/json: schema: type: object properties: name: { type: string } username: { type: string } email: { type: string, format: email } bio: { type: string } responses: '200': description: Updated account content: application/json: schema: type: object properties: data: { $ref: '#/components/schemas/Account' } '401': { $ref: '#/components/responses/Unauthenticated' } '422': { $ref: '#/components/responses/ValidationError' } delete: tags: [Auth] summary: Delete account permanently description: Required by Google Play and the App Store. Revokes all tokens and deletes the user, their favorites and subscriptions records. operationId: deleteMe security: [{ bearerAuth: [] }] requestBody: required: true content: application/json: schema: type: object required: [password] properties: password: { type: string } responses: '200': { $ref: '#/components/responses/Message' } '422': { $ref: '#/components/responses/ValidationError' } /me/password: put: tags: [Auth] summary: Change password description: Revokes every other token of the user. operationId: changePassword security: [{ bearerAuth: [] }] requestBody: required: true content: application/json: schema: type: object required: [current_password, password, password_confirmation] properties: current_password: { type: string } password: { type: string, minLength: 8 } password_confirmation: { type: string } responses: '200': { $ref: '#/components/responses/Message' } '422': { $ref: '#/components/responses/ValidationError' } /stickers: get: tags: [Stickers] summary: List stickers operationId: listStickers security: [{}, { bearerAuth: [] }] parameters: - { $ref: '#/components/parameters/Q' } - { $ref: '#/components/parameters/Category' } - name: type in: query schema: { type: string, enum: [static, animated, sound] } - name: pack in: query description: Pack id or slug schema: { type: string } - { $ref: '#/components/parameters/Premium' } - { $ref: '#/components/parameters/Featured' } - { $ref: '#/components/parameters/Sort' } - { $ref: '#/components/parameters/Page' } - { $ref: '#/components/parameters/PerPage' } responses: '200': description: Paginated stickers content: application/json: schema: allOf: - $ref: '#/components/schemas/Paginated' - type: object properties: data: { type: array, items: { $ref: '#/components/schemas/Sticker' } } /stickers/{sticker}: get: tags: [Stickers] summary: Sticker details description: Increments the view counter. operationId: getSticker security: [{}, { bearerAuth: [] }] parameters: [{ $ref: '#/components/parameters/StickerKey' }] responses: '200': description: Sticker content: application/json: schema: type: object properties: data: { $ref: '#/components/schemas/Sticker' } '404': { $ref: '#/components/responses/NotFound' } /stickers/{sticker}/download: post: tags: [Stickers] summary: Download a sticker description: Records a download and returns the full-quality file URL (plus the sound URL for sound stickers). Premium stickers return 403 `premium_required` for free users. operationId: downloadSticker security: [{}, { bearerAuth: [] }] parameters: - { $ref: '#/components/parameters/StickerKey' } - { $ref: '#/components/parameters/Platform' } responses: '200': description: File URLs content: application/json: schema: type: object properties: data: type: object properties: file_url: { type: string, format: uri } mime: { type: string, example: image/webp } sound_url: { type: [string, 'null'], format: uri } '403': { $ref: '#/components/responses/PremiumRequired' } '404': { $ref: '#/components/responses/NotFound' } /stickers/{sticker}/share: post: tags: [Stickers] summary: Record a share operationId: shareSticker parameters: [{ $ref: '#/components/parameters/StickerKey' }] responses: '200': description: Public web URL to share content: application/json: schema: type: object properties: data: type: object properties: web_url: { type: string, format: uri } /sounds: get: tags: [Sounds] summary: List sounds operationId: listSounds security: [{}, { bearerAuth: [] }] parameters: - { $ref: '#/components/parameters/Q' } - { $ref: '#/components/parameters/Category' } - { $ref: '#/components/parameters/Premium' } - { $ref: '#/components/parameters/Featured' } - { $ref: '#/components/parameters/Sort' } - { $ref: '#/components/parameters/Page' } - { $ref: '#/components/parameters/PerPage' } responses: '200': description: Paginated sounds content: application/json: schema: allOf: - $ref: '#/components/schemas/Paginated' - type: object properties: data: { type: array, items: { $ref: '#/components/schemas/Sound' } } /sounds/{sound}: get: tags: [Sounds] summary: Sound details operationId: getSound security: [{}, { bearerAuth: [] }] parameters: [{ $ref: '#/components/parameters/SoundKey' }] responses: '200': description: Sound content: application/json: schema: type: object properties: data: { $ref: '#/components/schemas/Sound' } '404': { $ref: '#/components/responses/NotFound' } /sounds/{sound}/play: post: tags: [Sounds] summary: Record a play description: Call when playback starts. Anyone can play `preview_url`, including premium sounds. operationId: playSound parameters: [{ $ref: '#/components/parameters/SoundKey' }] responses: '200': description: New play count content: application/json: schema: type: object properties: data: type: object properties: plays_count: { type: integer } /sounds/{sound}/download: post: tags: [Sounds] summary: Download a sound operationId: downloadSound security: [{}, { bearerAuth: [] }] parameters: - { $ref: '#/components/parameters/SoundKey' } - { $ref: '#/components/parameters/Platform' } responses: '200': description: File URL content: application/json: schema: type: object properties: data: type: object properties: file_url: { type: string, format: uri } mime: { type: string, example: audio/mpeg } '403': { $ref: '#/components/responses/PremiumRequired' } /videos/from-link: post: tags: [Library] summary: Get a video from a social link (to cut a sticker from) description: | Downloads a video from a TikTok, Instagram, Facebook, X, Snapchat, Pinterest, Threads, Vimeo… link so the Sticker Maker can cut a clip from it (GIF + sound from the same part). **YouTube links are refused.** The file is temporary (deleted after about 2 hours). Rate limited to 20 per hour. operationId: videoFromLink security: [{}, { bearerAuth: [] }] requestBody: required: true content: application/json: schema: type: object required: [url] properties: url: { type: string, format: uri, example: "https://vt.tiktok.com/ZSsGwnskU/" } responses: "200": description: Video ready content: application/json: schema: type: object properties: data: type: object properties: video_url: { type: string, format: uri } duration_ms: { type: integer } title: { type: [string, "null"] } expires_in_minutes: { type: integer, example: 120 } "422": description: "Unsupported site, YouTube, private/removed video (code: video_link_failed)" content: application/json: schema: { $ref: "#/components/schemas/Error" } "429": { description: Too many links this hour } /packs: get: tags: [Packs] summary: List sticker packs operationId: listPacks security: [{}, { bearerAuth: [] }] parameters: - { $ref: '#/components/parameters/Q' } - { $ref: '#/components/parameters/Category' } - { $ref: '#/components/parameters/Premium' } - { $ref: '#/components/parameters/Featured' } - { $ref: '#/components/parameters/Sort' } - { $ref: '#/components/parameters/Page' } - { $ref: '#/components/parameters/PerPage' } responses: '200': description: Paginated packs content: application/json: schema: allOf: - $ref: '#/components/schemas/Paginated' - type: object properties: data: { type: array, items: { $ref: '#/components/schemas/Pack' } } /packs/{pack}: get: tags: [Packs] summary: Pack with its stickers operationId: getPack security: [{}, { bearerAuth: [] }] parameters: [{ $ref: '#/components/parameters/PackKey' }] responses: '200': description: Pack (includes `stickers`) content: application/json: schema: type: object properties: data: { $ref: '#/components/schemas/Pack' } '404': { $ref: '#/components/responses/NotFound' } /packs/{pack}/download: post: tags: [Packs] summary: Download a whole pack description: | Returns every sticker file of the pack, ready for **Add to WhatsApp** (Android `ContentProvider` / iOS `WAStickers` pasteboard) or Telegram. Returns 403 `premium_required` if the pack or any of its stickers is premium and the user is not. operationId: downloadPack security: [{}, { bearerAuth: [] }] parameters: - { $ref: '#/components/parameters/PackKey' } - { $ref: '#/components/parameters/Platform' } responses: '200': description: Pack contents content: application/json: schema: { $ref: '#/components/schemas/PackDownload' } '403': { $ref: '#/components/responses/PremiumRequired' } /me/favorites: get: tags: [Library] summary: List my favorites operationId: listFavorites security: [{ bearerAuth: [] }] parameters: - name: type in: query schema: { type: string, enum: [sticker, sound, pack], default: sticker } - { $ref: '#/components/parameters/Page' } - { $ref: '#/components/parameters/PerPage' } responses: '200': description: Paginated `Sticker`, `Sound` or `Pack` objects depending on `type` content: application/json: schema: { $ref: '#/components/schemas/Paginated' } '401': { $ref: '#/components/responses/Unauthenticated' } /me/favorites/toggle: post: tags: [Library] summary: Add or remove a favorite operationId: toggleFavorite security: [{ bearerAuth: [] }] requestBody: required: true content: application/json: schema: { $ref: '#/components/schemas/ItemRef' } responses: '200': description: New favorite state content: application/json: schema: type: object properties: data: type: object properties: is_favorited: { type: boolean } favorites_count: { type: integer } '404': { $ref: '#/components/responses/NotFound' } /me/uploads: get: tags: [Library] summary: List my uploads (any status) description: Items include `status` (`pending`, `approved`, `rejected`) because they belong to the caller. operationId: listUploads security: [{ bearerAuth: [] }] parameters: - name: type in: query schema: { type: string, enum: [sticker, sound], default: sticker } - { $ref: '#/components/parameters/Page' } responses: '200': description: Paginated uploads content: application/json: schema: { $ref: '#/components/schemas/Paginated' } /me/uploads/stickers: post: tags: [Library] summary: Upload a sticker (static, animated or sound sticker) description: | * Static PNG/JPEG/WebP images are converted to **512×512 WebP** with a 256 px thumbnail. * Animated GIF or animated WebP files are kept as uploaded and become `type: animated`. * Add a `sound` file (or an existing `sound_id`) to create a **sound sticker** (`type: sound`). New uploads are `pending` until an admin approves them, unless approval is turned off in settings. The max file size comes from `GET /config` → `max_upload_mb`. operationId: uploadSticker security: [{ bearerAuth: [] }] requestBody: required: true content: multipart/form-data: schema: type: object required: [title, image] properties: title: { type: string, maxLength: 80 } description: { type: string, maxLength: 500 } image: { type: string, format: binary } category_id: { type: integer } sticker_pack_id: { type: integer, description: Must be one of your own packs } sound: { type: string, format: binary, description: 'MP3, WAV, OGG, M4A, AAC or WebM' } sound_id: { type: integer, description: Use an existing published sound instead of uploading } sound_title: { type: string } sound_duration_ms: { type: integer, description: Duration measured on the device (used for non-WAV files) } tags: { type: string, description: 'Comma separated, e.g. "funny,cat"' } emojis: { type: string, description: 'Comma separated emoji, used by WhatsApp' } responses: '201': description: Created content: application/json: schema: type: object properties: data: { $ref: '#/components/schemas/Sticker' } '422': { $ref: '#/components/responses/ValidationError' } '429': { description: Upload rate limit reached (60 per hour) } /me/uploads/sounds: post: tags: [Library] summary: Upload a sound operationId: uploadSound security: [{ bearerAuth: [] }] requestBody: required: true content: multipart/form-data: schema: type: object required: [title, audio] properties: title: { type: string, maxLength: 80 } description: { type: string, maxLength: 500 } audio: { type: string, format: binary } duration_ms: { type: integer } category_id: { type: integer } tags: { type: string } responses: '201': description: Created content: application/json: schema: type: object properties: data: { $ref: '#/components/schemas/Sound' } '422': { $ref: '#/components/responses/ValidationError' } /me/uploads/{type}/{id}: delete: tags: [Library] summary: Delete one of my uploads operationId: deleteUpload security: [{ bearerAuth: [] }] parameters: - name: type in: path required: true schema: { type: string, enum: [sticker, sound] } - name: id in: path required: true schema: { type: integer } responses: '200': { $ref: '#/components/responses/Message' } '404': { $ref: '#/components/responses/NotFound' } /reports: post: tags: [Library] summary: Report content operationId: report security: [{ bearerAuth: [] }] requestBody: required: true content: application/json: schema: allOf: - $ref: '#/components/schemas/ItemRef' - type: object required: [reason] properties: reason: { type: string, enum: [spam, nudity, violence, hate, copyright, other] } details: { type: string, maxLength: 1000 } responses: '201': { $ref: '#/components/responses/Message' } '422': { $ref: '#/components/responses/ValidationError' } /plans: get: tags: [Premium] summary: Premium plans description: Map `google_product_id` / `apple_product_id` to products loaded from Google Play Billing / StoreKit and display store-localised prices. operationId: listPlans responses: '200': description: Active plans content: application/json: schema: type: object properties: data: { type: array, items: { $ref: '#/components/schemas/Plan' } } /me/subscription: get: tags: [Premium] summary: Premium entitlement description: The single source of truth for premium on every platform. Refresh on app start and after purchases. operationId: getSubscription security: [{ bearerAuth: [] }] responses: '200': description: Entitlement content: application/json: schema: { $ref: '#/components/schemas/Entitlement' } /purchases/verify: post: tags: [Premium] summary: Verify an in-app purchase description: | Call after a successful purchase, **before** acknowledging (Android) / finishing (iOS) the transaction. * **Android:** `purchase_token` = `Purchase.purchaseToken`, `product_id` = the subscription product id, `transaction_id` = `Purchase.orderId`. * **iOS:** `purchase_token` = base64 app receipt (`Bundle.main.appStoreReceiptURL`), `transaction_id` = `Transaction.originalID`. The server verifies with Google Play / Apple when credentials are configured. Otherwise the subscription is stored as `pending` and an admin confirms it in the dashboard. operationId: verifyPurchase security: [{ bearerAuth: [] }] requestBody: required: true content: application/json: schema: { $ref: '#/components/schemas/PurchaseInput' } responses: '200': description: Result content: application/json: schema: type: object properties: data: type: object properties: subscription: { $ref: '#/components/schemas/Subscription' } is_premium: { type: boolean } premium_until: { type: [string, 'null'], format: date-time } '409': { description: Purchase already linked to another account } '422': { $ref: '#/components/responses/ValidationError' } /purchases/restore: post: tags: [Premium] summary: Restore purchases description: Send every purchase returned by `queryPurchasesAsync` (Android) or `Transaction.currentEntitlements` (iOS). operationId: restorePurchases security: [{ bearerAuth: [] }] requestBody: required: true content: application/json: schema: type: object required: [platform, purchases] properties: platform: { type: string, enum: [android, ios] } purchases: type: array maxItems: 50 items: type: object required: [product_id, purchase_token] properties: product_id: { type: string } purchase_token: { type: string } transaction_id: { type: string } responses: '200': description: Entitlement after restoring content: application/json: schema: { $ref: '#/components/schemas/Entitlement' } components: securitySchemes: bearerAuth: type: http scheme: bearer description: Sanctum personal access token from /auth/login or /auth/register parameters: Q: name: q in: query description: Search in title, description and tags schema: { type: string } Category: name: category in: query description: Category id or slug schema: { type: string } Premium: name: premium in: query description: '`true` = premium only, `false` = free only' schema: { type: boolean } Featured: name: featured in: query schema: { type: boolean } Sort: name: sort in: query schema: { type: string, enum: [new, popular, trending, oldest], default: new } Page: name: page in: query schema: { type: integer, minimum: 1, default: 1 } PerPage: name: per_page in: query schema: { type: integer, minimum: 1, maximum: 100, default: 24 } Platform: name: X-Platform in: header schema: { type: string, enum: [android, ios, web], default: android } StickerKey: name: sticker in: path required: true description: Sticker id or slug schema: { type: string } SoundKey: name: sound in: path required: true description: Sound id or slug schema: { type: string } PackKey: name: pack in: path required: true description: Pack id or slug schema: { type: string } responses: Message: description: Success message content: application/json: schema: type: object properties: message: { type: string } Unauthenticated: description: Missing or invalid token content: application/json: schema: { $ref: '#/components/schemas/Error' } example: { message: Unauthenticated. } NotFound: description: Not found content: application/json: schema: { $ref: '#/components/schemas/Error' } PremiumRequired: description: Premium required content: application/json: schema: { $ref: '#/components/schemas/Error' } example: { message: This sticker requires StickerVoice Premium., code: premium_required } ValidationError: description: Validation failed content: application/json: schema: { $ref: '#/components/schemas/ValidationError' } schemas: Error: type: object required: [message] properties: message: { type: string } code: { type: string, enum: [premium_required, account_suspended, not_found, unknown_product] } ValidationError: type: object properties: message: { type: string, example: The email field is required. } errors: type: object additionalProperties: { type: array, items: { type: string } } example: { email: [The email field is required.] } Paginated: type: object properties: data: { type: array, items: {} } links: type: object properties: first: { type: [string, 'null'] } last: { type: [string, 'null'] } prev: { type: [string, 'null'] } next: { type: [string, 'null'] } meta: type: object properties: current_page: { type: integer } last_page: { type: integer } per_page: { type: integer } total: { type: integer } from: { type: [integer, 'null'] } to: { type: [integer, 'null'] } ItemRef: type: object required: [type, id] properties: type: { type: string, enum: [sticker, sound, pack] } id: { type: integer } Config: type: object properties: app_name: { type: string, example: StickerVoice } tagline: { type: string, example: Create. Animate. Speak. Share. } support_email: { type: string, format: email } max_upload_mb: { type: integer, example: 5 } uploads_require_approval: { type: boolean } android: type: object properties: min_version: { type: string, example: 1.0.0 } store_url: { type: [string, 'null'] } ios: type: object properties: min_version: { type: string, example: 1.0.0 } store_url: { type: [string, 'null'] } maintenance_message: { type: [string, 'null'] } sticker_types: { type: array, items: { type: string }, example: [static, animated, sound] } report_reasons: { type: array, items: { type: string } } legal: type: object properties: privacy_url: { type: string, format: uri } terms_url: { type: string, format: uri } AuthToken: type: object properties: token: { type: string, example: 1|q8TzX... } token_type: { type: string, example: Bearer } user: { $ref: '#/components/schemas/Account' } Account: type: object properties: id: { type: integer } name: { type: string } username: { type: [string, 'null'] } email: { type: string, format: email } bio: { type: [string, 'null'] } avatar_url: { type: string, format: uri } role: { type: string, enum: [user, admin] } is_premium: { type: boolean } premium_until: { type: [string, 'null'], format: date-time } created_at: { type: string, format: date-time } User: type: object properties: id: { type: integer } name: { type: string } username: { type: [string, 'null'] } avatar_url: { type: string, format: uri } Category: type: object properties: id: { type: integer } name: { type: string, example: Funny } slug: { type: string, example: funny } type: { type: string, enum: [all, sticker, sound] } icon: { type: [string, 'null'], example: 😂 } color: { type: [string, 'null'], example: '#FFB020' } description: { type: [string, 'null'] } stickers_count: { type: integer, description: Only on /categories } sounds_count: { type: integer, description: Only on /categories } Sticker: type: object properties: id: { type: integer } slug: { type: string } title: { type: string } type: { type: string, enum: [static, animated, sound] } description: { type: [string, 'null'] } thumbnail_url: { type: string, format: uri, description: Always available (also for locked premium stickers) } file_url: { type: [string, 'null'], format: uri, description: '`null` when `is_locked` is true' } mime: { type: string, example: image/webp } width: { type: [integer, 'null'] } height: { type: [integer, 'null'] } size: { type: integer, description: Bytes } emojis: { type: array, items: { type: string } } tags: { type: array, items: { type: string } } is_premium: { type: boolean } is_locked: { type: boolean, description: True when premium and the caller has no premium } is_featured: { type: boolean } is_favorited: { type: boolean } status: { type: string, enum: [pending, approved, rejected], description: Only for the owner } views_count: { type: integer } downloads_count: { type: integer } favorites_count: { type: integer } sound: { oneOf: [{ $ref: '#/components/schemas/Sound' }, { type: 'null' }], description: Present for sound stickers } category: { $ref: '#/components/schemas/Category' } pack: type: [object, 'null'] properties: id: { type: integer } slug: { type: string } name: { type: string } author: { $ref: '#/components/schemas/User' } web_url: { type: string, format: uri } published_at: { type: [string, 'null'], format: date-time } Sound: type: object properties: id: { type: integer } slug: { type: string } title: { type: string } description: { type: [string, 'null'] } duration_ms: { type: integer } mime: { type: string, example: audio/mpeg } size: { type: integer } preview_url: { type: string, format: uri, description: Streamable by everyone } file_url: { type: [string, 'null'], format: uri, description: '`null` when locked' } tags: { type: array, items: { type: string } } is_premium: { type: boolean } is_locked: { type: boolean } is_featured: { type: boolean } is_favorited: { type: boolean } status: { type: string, description: Only for the owner } plays_count: { type: integer } downloads_count: { type: integer } favorites_count: { type: integer } category: { $ref: '#/components/schemas/Category' } author: { $ref: '#/components/schemas/User' } web_url: { type: string, format: uri } published_at: { type: [string, 'null'], format: date-time } Pack: type: object properties: id: { type: integer } slug: { type: string } name: { type: string } description: { type: [string, 'null'] } publisher: { type: [string, 'null'] } cover_url: { type: [string, 'null'], format: uri } is_animated: { type: boolean } is_premium: { type: boolean } is_locked: { type: boolean } is_featured: { type: boolean } is_favorited: { type: boolean } stickers_count: { type: integer } downloads_count: { type: integer } favorites_count: { type: integer } category: { $ref: '#/components/schemas/Category' } stickers: { type: array, items: { $ref: '#/components/schemas/Sticker' }, description: 'Only on GET /packs/{pack}' } web_url: { type: string, format: uri } published_at: { type: [string, 'null'], format: date-time } PackDownload: type: object properties: data: type: object properties: identifier: { type: string, example: sv_12, description: Stable id for WhatsApp sticker pack identifier } name: { type: string } publisher: { type: string } tray_image_url: { type: [string, 'null'], format: uri } is_animated: { type: boolean } stickers: type: array items: type: object properties: id: { type: integer } file_url: { type: string, format: uri } mime: { type: string } emojis: { type: array, items: { type: string } } sound_url: { type: [string, 'null'], format: uri } Plan: type: object properties: id: { type: integer } slug: { type: string, example: yearly } name: { type: string, example: Yearly } description: { type: [string, 'null'] } price: { type: number, example: 29.99 } currency: { type: string, example: USD } interval: { type: string, enum: [week, month, year, lifetime] } price_label: { type: string, example: $29.99 / year } features: { type: array, items: { type: string } } is_popular: { type: boolean } google_product_id: { type: [string, 'null'], example: stickervoice_premium_yearly } apple_product_id: { type: [string, 'null'], example: com.stickervoice.premium.yearly } Subscription: type: object properties: id: { type: integer } platform: { type: string, enum: [web, android, ios, admin] } status: { type: string, enum: [pending, active, cancelled, expired, refunded] } is_active: { type: boolean } product_id: { type: [string, 'null'] } transaction_id: { type: [string, 'null'] } starts_at: { type: [string, 'null'], format: date-time } ends_at: { type: [string, 'null'], format: date-time, description: '`null` = lifetime' } plan: { $ref: '#/components/schemas/Plan' } Entitlement: type: object properties: data: type: object properties: is_premium: { type: boolean } premium_until: { type: [string, 'null'], format: date-time } subscriptions: { type: array, items: { $ref: '#/components/schemas/Subscription' } } PurchaseInput: type: object required: [platform, product_id, purchase_token] properties: platform: { type: string, enum: [android, ios] } product_id: { type: string, example: stickervoice_premium_monthly } purchase_token: { type: string } transaction_id: { type: string }