-
-
Notifications
You must be signed in to change notification settings - Fork 103
API Documentation
As of v4.3, Firebot hosts a local API that developers can use to get data from Firebot or tell it to run effects.
- The API is hosted on port 7473. All endpoints have the root http://localhost:7473/api/v1
- All responses are in JSON.
- Don't forget that Firebot must be running for the API to be available.
Get that status of various Firebot systems, such as if Interactive is currently connected or not
None
None
{
"connections": {
"interactive": true
}
}
Lists custom groups saved in Firebot
None
- username=[username] - Filter to groups that contain the given user
- onlynames=true - Only return the name of the groups instead of full group objects (Default: false)
[
{
"groupName":"Test Group",
"users":[
"ebiggz"
]
},
{
"groupName":"Test Group 2",
"users":[
"Firebottle",
"ThePerry"
]
}
]
Get info on a particular group.
- groupName - The name of the group
None
{
"groupName": "Test Group",
"users": [
"ebiggz"
]
}
Get the users in a particular group
- groupName - The name of the group
None
[
"ebiggz"
]
Get a list of Firebot effects
None
- trigger=[triggerType] - Filter to effects that support the given trigger
- dependency=[dependencyType] - Filter to effects that require the given dependency
- onlynames=true - Return an array of effect names instead of the full effect objects
Note: Example only contains one effect in the list to keep it short. Actual response has a longer list.
[
{
"id":"API_BUTTON",
"name":"API Button",
"triggers":[
"interactive",
"custom_script",
"api"
],
"dependencies":[
"chat"
]
}
]
Get info on a particular effect.
- effect - Either the effect name or id.
None
{
"id":"API_BUTTON",
"name":"API Button",
"triggers":[
"interactive",
"custom_script",
"api"
],
"dependencies":[
"chat"
]
}
Get the accepted triggers for an effect
- effect - Either the effect name or id.
None
[
"interactive",
"custom_script",
"api"
]
Get the dependencies for an effect
- effect - Either the effect name or id.
None
[
"chat"
]
Run a list of effects
Note: Currently, it is required that Interactive is connected to run any effects. This will eventually change to take into account effect dependencies
None
None
{
"effects": [
{
"type": "Chat",
"chatter": "Streamer",
"message": "Test chat message"
}
]
}
- effects - List of effect objects that you want Firebot to run.
- username - Optional A string identifier that will be used for certain effects (such as Chat)
- participant - Optional A participant object. If this isn't passed in, certain effects (such as change group) will not work. You can retrieve Participants from Mixer's API.
{
"status": "success"
}
Still need help? Come chat with us in the #help channel of our Discord server.