openapi: 3.1.0 info: title: Twitch Drops Ads Collections API description: APIs for game developers to create and manage Drops campaigns that grant in-game rewards to Twitch viewers watching streamers play their game. Drops campaigns are managed through the Twitch Developer Console and fulfilled via the Helix API entitlements endpoints. version: '1.0' contact: name: Twitch Developer Support url: https://dev.twitch.tv/support/ termsOfService: https://www.twitch.tv/p/legal/terms-of-service/ servers: - url: https://api.twitch.tv/helix description: Twitch Helix API Production security: - oauth2: [] tags: - name: Collections description: Game collections and franchises paths: /collections: post: operationId: queryCollections summary: Twitch Query Collections description: Query game collections and franchises using Apicalypse query language. tags: - Collections parameters: - $ref: '#/components/parameters/clientId' requestBody: required: true content: text/plain: schema: type: string responses: '200': description: Collections returned successfully content: application/json: schema: type: array items: $ref: '#/components/schemas/Collection' '401': $ref: '#/components/responses/Unauthorized' /franchises: post: operationId: queryFranchises summary: Twitch Query Franchises description: Query game franchises using Apicalypse query language. tags: - Collections parameters: - $ref: '#/components/parameters/clientId' requestBody: required: true content: text/plain: schema: type: string responses: '200': description: Franchises returned content: application/json: schema: type: array items: $ref: '#/components/schemas/Franchise' components: responses: Unauthorized: description: Authentication required or token is invalid schemas: Collection: type: object properties: id: type: integer name: type: string slug: type: string games: type: array items: type: integer url: type: string created_at: type: integer updated_at: type: integer Franchise: type: object properties: id: type: integer name: type: string slug: type: string games: type: array items: type: integer url: type: string created_at: type: integer updated_at: type: integer parameters: clientId: name: Client-ID in: header required: true schema: type: string description: Twitch application client ID securitySchemes: oauth2: type: oauth2 flows: clientCredentials: tokenUrl: https://id.twitch.tv/oauth2/token scopes: {} externalDocs: description: Twitch Drops Documentation url: https://dev.twitch.tv/docs/drops/