Skip to content

Get Vote Logs

GET /vote_logs

Returns individual vote records. Requires a valid admin JWT.

Authorization

Send Authorization: <Twitch Extension Client ID> <Muxy JWT>. The JWT role must satisfy the endpoint requirements shown in the examples.

Parameters

Name In Required Type Constraints Description
id query no string default "default"; at most 64 characters Poll identifier. Defaults to default; global polls use an ID beginning with global.

Responses

200 Response

Vote log records.

Content type: application/json

Schema
{
  "type": "object",
  "required": [
    "result"
  ],
  "properties": {
    "result": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string"
          },
          "opaque": {
            "type": "string"
          },
          "value": {
            "type": "integer"
          },
          "timestamp": {
            "type": "integer"
          }
        }
      }
    }
  }
}
Example
{
  "result": []
}

403 Error

The JWT role is not allowed to perform this operation.

Content type: application/json

Schema
{
  "type": "object",
  "properties": {
    "reason": {
      "type": "string"
    }
  }
}
Example
{
  "reason": "role is not authorized"
}

500 Error

The service could not complete the operation because an internal or storage dependency failed.

Content type: application/json

Schema
{
  "type": "object",
  "additionalProperties": true
}
Example
{
  "reason": ""
}

Generated API reference

This endpoint is generated from rest-v1.yaml.