StreamElements Giveaways API

This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.

GitHub OpenAPI

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /giveaways/{channel}/{giveawayId} Get a giveaway's details · /:channel/:giveawayId #
Ask an LLM
“How do I see the details of a giveaway I created?”
“Can I get the entrants list along with a giveaway's details?”
Tell an agent
Get giveaway {giveawayId} on channel {channel}.
Show giveaway {giveawayId} for {channel} with entrants {entrants}.
GET /giveaways/{channel}/{giveawayId}/joined List users who joined a giveaway · /:channel/:giveawayId/joined #
Ask an LLM
“Who has entered a particular giveaway?”
“Can I list the entrants of a giveaway?”
Tell an agent
List the users who joined giveaway {giveawayId} on {channel}.
Show the entrants of giveaway {giveawayId} for {channel}.
PUT /giveaways/{channel}/{giveawayId}/start Start a giveaway · /:channel/:giveawayId/start #
Ask an LLM
“How do I start a giveaway that is still in draft?”
“Can I kick off a giveaway so people can enter?”
Tell an agent
Start giveaway {giveawayId} on {channel}.
Begin the {giveawayId} giveaway for {channel}.
PUT /giveaways/{channel}/{giveawayId}/winner Draw a giveaway winner · /:channel/:giveawayId/winner #
Ask an LLM
“How do I pick a winner from a giveaway?”
“Can I draw a winner from a giveaway that has already started?”
Tell an agent
Draw a winner for giveaway {giveawayId} on {channel}.
Pick a winner from giveaway {giveawayId} for {channel}.
PUT /giveaways/{channel}/{giveawayId}/complete Mark a giveaway as complete · /:channel/:giveawayId/complete #
Ask an LLM
“How do I close out a giveaway once the winner is drawn?”
“Can I mark a giveaway as complete after the winner is chosen?”
Tell an agent
Mark giveaway {giveawayId} on {channel} as complete.
Close giveaway {giveawayId} for {channel}.
PUT /giveaways/{channel}/{giveawayId}/reopen Reopen a giveaway · /:channel/:giveawayId/reopen #
Ask an LLM
“Can I reopen a giveaway that was already closed?”
“How do I let more people enter a giveaway after it ended?”
Tell an agent
Reopen giveaway {giveawayId} on {channel}.
Let more entrants join giveaway {giveawayId} for {channel}.
DELETE /giveaways/{channel}/{giveawayId}/refund Refund a giveaway · /:channel/:giveawayId/refund #
Ask an LLM
“How do I refund a giveaway that was canceled?”
“Can I refund a giveaway to its entrants?”
Tell an agent destructive · confirm first
Refund giveaway {giveawayId} on {channel}.
Cancel and refund giveaway {giveawayId} for {channel}.
DELETE /giveaways/{channel}/{giveawayId}/close Close a giveaway · /:channel/:giveawayId/close #
Ask an LLM
“How do I close a giveaway early?”
“Can I end a giveaway before it finishes?”
Tell an agent destructive · confirm first
Close giveaway {giveawayId} on {channel}.
End giveaway {giveawayId} for {channel} now.
GET /giveaways/{channel} List a channel's giveaways · /:channel #
Ask an LLM
“What giveaways are running on my channel?”
“Can I list all giveaways for a channel?”
Tell an agent
List the giveaways on {channel}.
Show every giveaway running for {channel}.
POST /giveaways/{channel} Create a giveaway · /:channel #
Ask an LLM
“How do I create a new giveaway on my channel?”
“Can I start a giveaway through the API?”
Tell an agent
Create a new giveaway on {channel}.
Start a fresh giveaway for {channel}.
GET /giveaways/{channel}/history List a channel's past giveaways · /:channel/history #
Ask an LLM
“Which giveaways has my channel run in the past?”
“Can I see the history of past giveaways?”
Tell an agent
List the past giveaways for {channel}.
Show {channel}'s giveaway history.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/streamelements:streamelements-giveaways-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

streamelements-giveaways-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SE API Docs Giveaways API
  description: '## Custom Variable types

    `guid` - string that matches pattern: `/^[0-9a-fA-F]{24}$/` (24 character hexadecimal string)

    `datetime` - either timestamp in milliseconds (unix timestamp*1000) or string in ISO 8061 format

    ## Global variables

    `Authorization` - string: JWT Token you can obtain here: https://streamelements.com/dashboard/account/channels (click "Show secrets")

    `channelId` - guid: obtained by requesting `/channels/me` endpoint with provided JWT token

    `channelName` - string: lowercase…'
  contact: {}
  version: '1.0'
servers:
- url: https://api.streamelements.com/kappa/v2
  description: V2
  variables: {}
- url: https://api.streamelements.com/kappa/v3
  description: V3
  variables: {}
security:
- JWTBearer: []
- OAuth2: []
- ApiKeyBearer: []
tags:
- name: Giveaways
  description: 'This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
paths:
  /giveaways/{channel}/{giveawayId}:
    get:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId
      description: 'Get giveaway details. This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId
      parameters:
      - name: entrants
        in: query
        description: boolean
        required: true
        style: form
        explode: true
        schema:
          type: string
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: application/json; charset=utf-8
      responses:
        '200':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 14:45:00 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '636'
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/Giveaways'
              example:
                active: null
                giveaways:
                - subscriberLuck: 1
                  subscriberOnly: false
                  totalAmount: 0
                  totalUsers: 0
                  botResponses: false
                  _id: 5c0a6c00de9a4c3a70a14da6
                  winners: []
                  channel: 5b2e2007760aeb7729487dab
                  createdAt: '2018-12-07T12:48:00.133Z'
                  updatedAt: '2018-12-07T12:48:00.133Z'
                - subscriberLuck: 1
                  subscriberOnly: false
                  totalAmount: 0
                  totalUsers: 0
                  botResponses: false
                  _id: 5c0a6bdfde9a4c6faaa14da2
                  winners: []
                  channel: 5b2e2007760aeb7729487dab
                  createdAt: '2018-12-07T12:47:27.369Z'
                  updatedAt: '2018-12-07T12:49:10.109Z'
                  startedAt: '2018-12-07T12:47:55.782Z'
                  state: closed
                  endedAt: '2018-12-07T12:49:10.108Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "truncated" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "truncated" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/channel_redemptions_itemId'
              example:
                statusCode: 404
                error: Not Found
                message: No giveaway found
      deprecated: false
  /giveaways/{channel}/{giveawayId}/joined:
    get:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId/joined
      description: 'List joined users in giveaway This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId/joined
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: application/json; charset=utf-8
      responses:
        '200':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 12:55:37 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '69'
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/GiveawayUserList'
              example:
                entered: false
                tickets: 0
                username: leeeeex
                subscriber: false
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "11111111" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "11111111" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
      deprecated: false
  /giveaways/{channel}/{giveawayId}/start:
    put:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId/start
      description: 'Start a Giveaway This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId/start
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: application/json; charset=utf-8
      responses:
        '200':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 14:59:25 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '327'
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/Giveaway'
              example:
                subscriberLuck: 1
                subscriberOnly: false
                totalAmount: 0
                totalUsers: 0
                botResponses: false
                _id: 5c0a89efde9a4c758ea14db9
                entrants: []
                winners: []
                channel: 5b2e2007760aeb7729487dab
                createdAt: '2018-12-07T14:55:43.348Z'
                updatedAt: '2018-12-07T14:59:25.051Z'
                startedAt: '2018-12-07T14:59:25.049Z'
                state: running
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "start" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "start" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
      deprecated: false
  /giveaways/{channel}/{giveawayId}/winner:
    put:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId/winner
      description: 'Draw a Giveaway winner This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId/winner
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: application/json; charset=utf-8
      responses:
        '200':
          description: ''
          headers: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
      deprecated: false
  /giveaways/{channel}/{giveawayId}/complete:
    put:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId/complete
      description: 'Mark Giveaway as complete This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId/complete
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: text/plain; charset=utf-8
      responses:
        '201':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 15:00:19 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '7'
          content:
            text/plain; charset=utf-8:
              schema:
                type: string
                example: Created
              example: Created
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
      deprecated: false
  /giveaways/{channel}/{giveawayId}/reopen:
    put:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId/reopen
      description: 'Reopen Giveaway This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId/reopen
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: text/plain; charset=utf-8
      responses:
        '201':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 15:01:22 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '7'
          content:
            text/plain; charset=utf-8:
              schema:
                type: string
                example: Created
              example: Created
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "1a1528113asd23sg" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "1a1528113asd23sg" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
      deprecated: false
  /giveaways/{channel}/{giveawayId}/refund:
    delete:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId/refund
      description: 'Refund Giveaway This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId/refund
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: text/plain; charset=utf-8
      responses:
        '201':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 15:01:52 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '7'
          content:
            text/plain; charset=utf-8:
              schema:
                type: string
                example: Created
              example: Created
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
      deprecated: false
  /giveaways/{channel}/{giveawayId}/close:
    delete:
      tags:
      - Giveaways
      summary: /:channel/:giveawayId/close
      description: 'Close Giveaway This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: /:channel/:giveawayId/close
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: giveawayId
        in: path
        description: guid - Giveaway id
        required: true
        style: simple
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: text/plain; charset=utf-8
      responses:
        '201':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 15:01:38 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '7'
          content:
            text/plain; charset=utf-8:
              schema:
                type: string
                example: Created
              example: Created
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/400-badrequest'
              example:
                statusCode: 400
                error: Bad Request
                message: 'child "giveawayId" fails because ["giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
                details:
                - path:
                  - giveawayId
                  message: '"giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
      deprecated: false
  /giveaways/{channel}:
    get:
      tags:
      - Giveaways
      summary: /:channel
      description: List giveaways
      operationId: Get/:channel1234567
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: application/json; charset=utf-8
      responses:
        '200':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 12:46:53 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '30'
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/Success-empty'
              example:
                active: null
                giveaways: []
      deprecated: false
    post:
      tags:
      - Giveaways
      summary: /:channel
      description: 'Create a new Giveaway This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: Post/:channel123
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: application/json; charset=utf-8
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              type: object
              example: {}
            example: {}
        required: true
      responses:
        '200':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 14:55:43 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '270'
            Vary:
              content:
                text/plain:
                  schema:
                    type: string
                  example: X-HTTP-Method-Override
          content:
            application/json; charset=utf-8:
              schema:
                $ref: '#/components/schemas/Giveaway'
              example:
                subscriberLuck: 1
                subscriberOnly: false
                totalAmount: 0
                totalUsers: 0
                botResponses: false
                _id: 5c0a89efde9a4c758ea14db9
                entrants: []
                winners: []
                channel: 5b2e2007760aeb7729487dab
                createdAt: '2018-12-07T14:55:43.348Z'
                updatedAt: '2018-12-07T14:55:43.348Z'
      deprecated: false
  /giveaways/{channel}/history:
    get:
      tags:
      - Giveaways
      summary: /:channel/history
      description: 'List previous giveaways This endpoint is available only in the API version 3. Make sure to use the v3 base URL: https://api.streamelements.com/kappa/v3.'
      operationId: Get/:channel/history
      parameters:
      - name: channel
        in: path
        description: guid - Channel id
        required: true
        style: simple
        schema:
          type: string
          example: 5b2e2007760aeb7729487dab
      - name: Accept
        in: header
        description: ''
        required: true
        style: simple
        schema:
          type: string
          example: application/json; charset=utf-8
      responses:
        '200':
          description: ''
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Fri, 07 Dec 2018 14:41:47 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '2'
          content:
            application/json; charset=utf-8:
              schema:
                type: array
                items:
                  type: string
                example: []
              example: {}
      deprecated: false
components:
  schemas:
    Giveaway:
      title: Giveaway
      required:
      - subscriberLuck
      - subscriberOnly
      - totalAmount
      - totalUsers
      - botResponses
      - _id
      - winners
      - channel
      - createdAt
      - updatedAt
      type: object
      properties:
        subscriberLuck:
          type: integer
          format: int32
        subscriberOnly:
          type: boolean
        totalAmount:
          type: integer
          format: int32
        totalUsers:
          type: integer
          format: int32
        botResponses:
          type: boolean
        _id:
          type: string
        winners:
          type: array
          items:
            type: string
          description: ''
        channel:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
        startedAt:
          type: string
        state:
          type: string
        endedAt:
          type: string
      example:
        subscriberLuck: 1
        subscriberOnly: false
        totalAmount: 0
        totalUsers: 0
        botResponses: false
        _id: 5c0a6c00de9a4c3a70a14da6
        winners: []
        channel: 5b2e2007760aeb7729487dab
        createdAt: '2018-12-07T12:48:00.133Z'
        updatedAt: '2018-12-07T12:48:00.133Z'
    GiveawayUserList:
      title: GiveawayUserList
      required:
      - entered
      - tickets
      - username
      - subscriber
      type: object
      properties:
        entered:
          type: boolean
        tickets:
          type: integer
          format: int32
        username:
          type: string
        subscriber:
          type: boolean
      example:
        entered: false
        tickets: 0
        username: leeeeex
        subscriber: false
    Giveaways:
      title: Giveaways
      required:
      - active
      - giveaways
      type: object
      properties:
        active:
          type:
          - string
          - 'null'
        giveaways:
          type: array
          items:
            $ref: '#/components/schemas/Giveaway'
          description: ''
      example:
        active: null
        giveaways:
        - subscriberLuck: 1
          subscriberOnly: false
          totalAmount: 0
          totalUsers: 0
          botResponses: false
          _id: 5c0a6c00de9a4c3a70a14da6
          winners: []
          channel: 5b2e2007760aeb7729487dab
          createdAt: '2018-12-07T12:48:00.133Z'
          updatedAt: '2018-12-07T12:48:00.133Z'
        - subscriberLuck: 1
          subscriberOnly: false
          totalAmount: 0
          totalUsers: 0
          botResponses: false
          _id: 5c0a6bdfde9a4c6faaa14da2
          winners: []
          channel: 5b2e2007760aeb7729487dab
          createdAt: '2018-12-07T12:47:27.369Z'
          updatedAt: '2018-12-07T12:49:10.109Z'
          startedAt: '2018-12-07T12:47:55.782Z'
          state: closed
          endedAt: '2018-12-07T12:49:10.108Z'
    Success-empty:
      title: Success-empty
      required:
      - active
      - giveaways
      type: object
      properties:
        active:
          type:
          - string
          - 'null'
        giveaways:
          type: array
          items:
            type: string
          description: ''
      example:
        active: null
        giveaways: []
    Detail:
      title: Detail
      required:
      - path
      - message
      type: object
      properties:
        path:
          type: array
          items:
            type: string
          description: ''
        message:
          type: string
      example:
        path:
        - types
        message: '"types" must be an array'
    400-badrequest:
      title: 400-badrequest
      required:
      - statusCode
      - error
      - message
      - details
      type: object
      properties:
        statusCode:
          type: integer
          format: int32
        error:
          type: string
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/Detail'
          description: ''
      example:
        statusCode: 400
        error: Bad Request
        message: 'child "giveawayId" fails because ["giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/]'
        details:
        - path:
          - giveawayId
          message: '"giveawayId" with value "5c10e383bd1e475b7c3d6eb" fails to match the required pattern: /^[0-9a-fA-F]{24}$/'
    channel_redemptions_itemId:
      title: /:channel/redemptions/:itemId
      required:
      - statusCode
      - error
      - message
      type: object
      properties:
        statusCode:
          type: integer
          format: int32
        error:
          type: string
        message:
          type: string
      example:
        statusCode: 404
        error: Not Found
        message: Item not found
  securitySchemes:
    JWTBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyBearer:
      type: http
      scheme: bearer
      name: apiKey
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.streamelements.com/oauth2/authorize
          tokenUrl: https://api.streamelements.com/oauth2/token
          scopes:
            tips:read: Ability read of tips
            tips:write: Grants create/modify/delete tips
            activities:read: Grants read of activities
            activities:write: Grants create activities
            loyalty:read: Grants read of loyalty settings and the leaderboard
            loyalty:write: Grants update of loyalty settings and update the leaderboard
            overlays:read: Grants read overlays
            overlays:write: Grants creation, update, deletion of overlays
            store:read: Grants read redemptions and items
            store:write: Grants create new store items and complete redemptions
            bot:read: Grants read timers, commands, spam filters and modules
            bot:write: Grants create and update timers, commands, spam filters and modules
            session:read: Grants read of session data
            contest:read: Grants read of contests
            contest:write: Grants create and update contests
            giveaway:read: Grants read of giveaways
            giveaway:write: Grants create and update giveaways
x-provenance:
  method: harvested
  publisher: StreamElements
  source: https://raw.githubusercontent.com/streamelements/api-docs/HEAD/api.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)