Back to top

IRC API

A simplified RESTful API for interacting with persistent Internet Relay Chat connections.

Networks

A “network” represents a user-defined connection to IRC. Each network has one or more IRC servers to which the API will connect.

Networks collection

List existing networks
GET/networks

Example URI

GET /networks
Response  200
HideShow
Headers
Content-Type: application/json

Add a new network
POST/networks

Example URI

POST /networks
Response  204
Response  400

Network information

Get network information
GET/networks/{network}

Example URI

GET /networks/quakenet
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

Response  200
HideShow
Headers
Content-Type: application/json
Response  404
HideShow

If the specified network doesn’t exist

Update network information
POST/networks/{network}

Example URI

POST /networks/quakenet
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

Response  204
Response  400
Response  404

Delete network
DELETE/networks/{network}

Example URI

DELETE /networks/quakenet
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

Response  204
Response  404

Chats

A chat represents either an IRC channel or a private message with another IRC user.

Chats collection

List existing chats
GET/networks/{network}/chats

Example URI

GET /networks/quakenet/chats
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

Response  200
HideShow
Headers
Content-Type: application/json
Response  404

Create new chat
POST/networks/{network}/chats

Example URI

POST /networks/quakenet/chats
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

Response  200
HideShow
Headers
Content-Type: application/json
Response  400
Response  404

Chat information

Get chat information
GET/networks/{network}/chats/{chat}

Example URI

GET /networks/quakenet/chats/dmdirc
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

chat
string (required) Example: dmdirc

The name of the chat.

Response  200
HideShow
Headers
Content-Type: application/json
Response  404

Delete chat
DELETE/networks/{network}/chats/{chat}

Example URI

DELETE /networks/quakenet/chats/dmdirc
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

chat
string (required) Example: dmdirc

The name of the chat.

Response  204
Response  404

Chat messages

Get chat messages
GET/networks/{network}/chats/{chat}/messages

Example URI

GET /networks/quakenet/chats/dmdirc/messages
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

chat
string (required) Example: dmdirc

The name of the chat.

Response  200
HideShow
Headers
Content-Type: application/json
Response  404

Send chat message
POST/networks/{network}/chats/{chat}/messages

Example URI

POST /networks/quakenet/chats/dmdirc/messages
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

chat
string (required) Example: dmdirc

The name of the chat.

Response  200
HideShow
Headers
Content-Type: application/json
Response  400
Response  404

Chat users

List chat users
GET/networks/{network}/chats/{chat}/users

Example URI

GET /networks/quakenet/chats/dmdirc/users
URI Parameters
HideShow
network
string (required) Example: quakenet

The name of the network.

chat
string (required) Example: dmdirc

The name of the chat.

Response  200
HideShow
Headers
Content-Type: application/json
Response  404

Generated by aglio on 07 May 2018