API reference
Endpoints a network offers so StarChat can use the features it lists in its discovery file. Every feature is optional: a network leaves out the endpoints of features it does not list, and the client hides them.
All paths are relative to apiBaseUrl from the discovery file. Requests and answers
are JSON unless noted. The client sends Accept: application/json and no cookies, so
the API has to answer cross-origin requests (Access-Control-Allow-Origin: * or the
calling origin, Authorization as allowed header).
Times are ISO 8601. Channel names start with # and are compared in lower case.
Errors with 422 carry Laravel style messages
({ "message": "…", "errors": { "field": ["…"] } }), the client shows the first one.
A request with a missing or expired token is answered with 401.
The same as OpenAPI 3.1.0: openapi.yaml. The features and where the API address comes from are described in Discovery file.
loginprofilesfriendsuploadsgifsreportsexplorechatStatealwaysOneventscommunitiespushvoicecallsspotify
login
Only with bearer or api-login in auth. The API accepts the token as
Authorization: Bearer <token>. With bearer the IRC server also accepts it with
SASL IRCV3BEARER. With Ergo this is a JWT signed with a key
from accounts.jwt-auth, the account name in sub. With api-login the token is
only for the API and the client logs in on IRC with SASL PLAIN, so any string the
API recognizes works.
A page that embeds the chat can also hand over a token itself
(mountChat({ bearer })), then this endpoint is not called. Guests have no token,
so features that need one stay hidden for them.
POSTlogin
Token for an account. No token.
With bearer in auth the client then logs in on IRC with IRCV3BEARER instead
of PLAIN. With api-login it keeps PLAIN on IRC and uses the token only for
the API. Without either, this endpoint is not used.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
username | string | yes | |
password | string | yes |
{
"username": "alice",
"password": "secret"
}
| Status | Meaning |
|---|---|
200 | Logged in. |
401 | Wrong name or password. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
token | string | yes | |
nickname | string | Nick to use on IRC. Without it the client keeps the one typed in. |
{
"token": "eyJhbGciOiJIUzI1NiJ9…",
"nickname": "alice"
}
profiles
Profile cards with avatar, status and member date. Avatar and status are also
published as IRCv3 metadata (avatar, status), so other clients see them without
the API.
GETchat/profiles/{account}
Profile of an IRC account. Needs a token.
The account comes from WHOIS (330).
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
{account} | string | yes |
| Status | Meaning |
|---|---|
200 | The profile. |
401 | No token, or the token is invalid or expired. |
404 | The account has no profile. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
name | string | yes | Account name. |
avatar_url | URL or null | Shown only if it is on the same origin as apiBaseUrl. | |
status | string or null | Status text, one line. | |
member_since | ISO 8601 date or null | ||
characters | array of object | For example roleplay characters. | |
characters[].name | string | yes | |
characters[].race | string or null | ||
characters[].character_class | string or null | ||
characters[].url | URL or null | ||
mutual_communities | array of object | Groups the viewer and this account both belong to. | |
mutual_communities[].name | string | yes | |
mutual_communities[].slug | string |
{
"name": "alice",
"avatar_url": "https://example.org/avatars/alice.png",
"status": "On the bridge",
"member_since": "2024-03-01T00:00:00Z"
}
GETchat/profile
Own profile. Needs a token.
Also loaded after every connect to publish avatar and status as metadata.
| Status | Meaning |
|---|---|
200 | The own profile, with the fields only the owner sees. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
name | string | yes | Account name. |
avatar_url | URL or null | Shown only if it is on the same origin as apiBaseUrl. | |
status | string or null | Status text, one line. | |
member_since | ISO 8601 date or null | ||
characters | array of object | For example roleplay characters. | |
characters[].name | string | yes | |
characters[].race | string or null | ||
characters[].character_class | string or null | ||
characters[].url | URL or null | ||
mutual_communities | array of object | Groups the viewer and this account both belong to. | |
mutual_communities[].name | string | yes | |
mutual_communities[].slug | string | ||
settings_url | URL | Further account settings on the network's website. | |
delete_account_url | URL |
PUTchat/profile/status
Set or clear the status. Needs a token.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
status | string or null | yes | One line. null clears it. Max. 128 characters. |
{
"status": "On the bridge"
}
| Status | Meaning |
|---|---|
200 | The stored status. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
status | string or null | yes |
POSTchat/profile/avatar
Upload an avatar. Needs a token.
Body:
Sent as (multipart/form-data).
| Field | Type | Required | Meaning |
|---|---|---|---|
avatar | file | yes | JPEG, PNG or GIF, max. 2 MB. |
| Status | Meaning |
|---|---|
200 | The new avatar. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
avatar_url | URL | yes |
DELETEchat/profile/avatar
Remove the avatar. Needs a token.
| Status | Meaning |
|---|---|
200 | Removed. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
avatar_url | null | yes |
friends
Friend list and requests. Requests go to account names. Presence comes from IRC
(MONITOR, JOIN, QUIT, AWAY), not from the API. The client shows its own
texts after an action.
GETfriends
Friends and requests. Needs a token.
Polled every 10 seconds while the client is connected.
| Status | Meaning |
|---|---|
200 | All lists, each possibly empty. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
friends | array of object | yes | |
friends[].friendship_id | string or integer | yes | |
friends[].user | object | yes | |
friends[].user.display | string | yes | Nick of the other side on IRC. Entries without it are ignored. |
friends[].user.name | string | Account name. | |
friends[].status | accepted, pending, blocked | ||
friends[].direction | incoming, outgoing | ||
friends[].requested_at | ISO 8601 date | ||
incoming_requests | array of object | yes | Fields as in friends[]. |
outgoing_requests | array of object | yes | Fields as in friends[]. |
blocked | array of object | yes | Fields as in friends[]. |
{
"friends": [
{
"friendship_id": 7,
"user": {
"display": "bob",
"name": "bob"
},
"status": "accepted"
}
],
"incoming_requests": [],
"outgoing_requests": [],
"blocked": []
}
POSTfriends/request
Send a friend request. Needs a token.
A request to someone who already asked us accepts theirs.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
nick | string | yes |
{
"nick": "bob"
}
| Status | Meaning |
|---|---|
200 | Sent or accepted. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
auto_accepted | boolean | true when an incoming request of the other side was accepted instead. |
POSTfriends/{friendship_id}/accept
Accept an incoming request. Needs a token.
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
{friendship_id} | string | yes | friendship_id of an entry in GET friends. |
| Status | Meaning |
|---|---|
200 | Accepted. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
POSTfriends/{friendship_id}/decline
Decline an incoming request. Needs a token.
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
{friendship_id} | string | yes | friendship_id of an entry in GET friends. |
| Status | Meaning |
|---|---|
200 | Declined. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
POSTfriends/{friendship_id}/block
Block the other side. Needs a token.
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
{friendship_id} | string | yes | friendship_id of an entry in GET friends. |
| Status | Meaning |
|---|---|
200 | Blocked. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
DELETEfriends/{friendship_id}
End a friendship or withdraw a request. Needs a token.
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
{friendship_id} | string | yes | friendship_id of an entry in GET friends. |
| Status | Meaning |
|---|---|
200 | Removed. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
uploads
Images and files in messages. Uploads happen when the message is sent, the message then carries the link. Links ending in an image or video extension are shown inline, for every user and client.
GETchat/media-upload
Own uploads. Needs a token.
| Status | Meaning |
|---|---|
200 | Newest first. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
uploads | array of object | yes | |
uploads[].id | string or integer | yes | |
uploads[].url | URL | yes | Public link to the file. |
uploads[].mime_type | string | yes | Images and videos get a preview. |
uploads[].original_name | string | ||
uploads[].caption | string or null |
POSTchat/media-upload
Upload a file. Needs a token.
Body:
Sent as (multipart/form-data).
| Field | Type | Required | Meaning |
|---|---|---|---|
media | file | yes | |
caption | string | Text of the message the file is sent with. |
| Status | Meaning |
|---|---|
200 | Uploaded. The client sends url with the message. |
401 | No token, or the token is invalid or expired. |
413 | The file is too large. |
422 | Invalid fields. The client shows the first message. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
id | string or integer | yes | |
url | URL | yes |
{
"id": 12,
"url": "https://example.org/u/abc.png"
}
DELETEchat/media-upload/{id}
Delete an own upload. Needs a token.
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
{id} | string | yes |
| Status | Meaning |
|---|---|
200 | Deleted. |
401 | No token, or the token is invalid or expired. |
404 | No such upload of this account. |
gifs
GIF search in the message input. The token is sent if there is one. A network that
wants to limit guests answers them with 401.
GETgifs/search
Search or trending GIFs. Token optional, sent if there is one.
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
?q | string | Search words. Without it the network returns trending GIFs. | |
?limit | integer | ||
?page | string or integer | The next value of the previous answer. |
| Status | Meaning |
|---|---|
200 | One page of results. |
401 | The network does not serve guests. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
results | array of object | yes | |
results[].id | string | yes | |
results[].title | string | ||
results[].url | URL | yes | Sent as the message. |
results[].preview | URL | yes | Shown in the picker. |
next | string or integer or null | yes | null on the last page. |
provider | object | Shown as "Powered by" under the results, as most GIF services require. | |
provider.name | string | yes | |
provider.url | URL |
{
"results": [
{
"id": "abc",
"title": "Cat",
"url": "https://media.example.org/abc.gif",
"preview": "https://media.example.org/abc.webp"
}
],
"next": 2,
"provider": {
"name": "GIF service",
"url": "https://gifs.example.org"
}
}
reports
Reporting users and messages to the moderators of the network. Guests may report
too, the token is sent if there is one. links.reportPolicy in the discovery file
is linked in the report dialog.
POSTchat/reports
Report a user or a message. Token optional, sent if there is one.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
reported_nick | string | yes | |
reported_account | string or null | Account from WHOIS, if the profile card was open. | |
reporter_nick | string | yes | Own nick, Guest if unknown. |
channel | string or null | Channel the report was sent from, null in DMs. | |
message_text | string or null | The reported message. Max. 2000 characters. | |
message_sent_at | ISO 8601 date or null | ||
reason | child_safety, sexual_content, harassment, hate_speech, spam, other | yes | |
details | string or null | Note of the reporter. Max. 2000 characters. |
{
"reported_nick": "troll",
"reported_account": null,
"reporter_nick": "alice",
"channel": "#bridge",
"message_text": "Buy cheap stuff",
"message_sent_at": "2026-11-20T18:02:11Z",
"reason": "spam",
"details": null
}
| Status | Meaning |
|---|---|
201 | Received. The client shows its own text. |
422 | Invalid fields. The client shows the first message. |
429 | Too many reports, the client asks to wait. |
explore
A directory tab in the channel list: groups of channels the network lists, joined
together. The channel list of the IRC server (LIST) is shown on every network
without this feature.
GETexplore
Directory of channel groups. Token optional, sent if there is one.
| Status | Meaning |
|---|---|
200 | Groups in the order to show. Channel names without # and groups without
channels are dropped. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
communities | array of object | yes | |
communities[].id | string or integer | ||
communities[].name | string | yes | |
communities[].description | string | ||
communities[].channel_names | array of string | yes |
chatState
Open conversations, read positions and synced settings of an account, so another device (or the next session) continues where the last one stopped.
GETchat-state
Saved state of the account. Needs a token.
| Status | Meaning |
|---|---|
200 | An account without a saved state gets empty lists and "settings": null. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
open_dms | array of string | Nicks with an open DM. | |
joined_channels | array of string | Channels to join on the next connect, without the default channel. | |
active_channel | string or null | Shown after the next connect. | |
sidebar_mode | channels, friends, uploads | ||
last_read | map of ISO 8601 date | Read position per channel or DM. Newer local values win. | |
unread_counts | map of integer | ||
settings | null or object | yes | null: the account never synced, the client uploads its own values. |
settings.highlight_words | array of string | Max. 20 entries. | |
settings.ignored_users | array of string | Max. 100 entries. | |
settings.channel_notifications | map of mentions, mute | ||
settings.quit_message | string | One line. Missing means the client's default. Max. 200 characters. | |
settings.nick_colors | map of integer | Hue per nick. | |
settings.left_lobbies | array of string | Channels the user left on purpose, they are not joined by default any more. | |
settings.autojoin_channels | array of string | Joined on every connect. Max. 50 entries. |
POSTchat-state
Save the state. Needs a token.
Sent at most every 5 seconds, after changes.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
open_dms | array of string | Nicks with an open DM. | |
joined_channels | array of string | Channels to join on the next connect, without the default channel. | |
active_channel | string or null | Shown after the next connect. | |
sidebar_mode | channels, friends, uploads | ||
last_read | map of ISO 8601 date | Read position per channel or DM. Newer local values win. | |
unread_counts | map of integer | ||
settings_patch | object | The settings changed on this device, keys as in settings of GET chat-state. null as
value removes a key. The network merges it into the stored document, so
changes from another device are kept. |
| Status | Meaning |
|---|---|
200 | Saved. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
alwaysOn
Keeps the nick in its channels while no client is connected, for example Ergo's
always-on. After the first registration the client asks once per account whether
to turn it on.
GETchat/always-on
Current setting. Needs a token.
| Status | Meaning |
|---|---|
200 | The setting. |
401 | No token, or the token is invalid or expired. |
503 | The IRC server cannot be reached, the client shows the switch disabled. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
enabled | boolean | yes | |
ask | boolean | yes | Show the question (not answered yet). |
{
"enabled": false,
"ask": true
}
PUTchat/always-on
Turn it on or off. Needs a token.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
enabled | boolean | yes |
| Status | Meaning |
|---|---|
200 | The new setting, ask is now false. |
401 | No token, or the token is invalid or expired. |
503 | The IRC server cannot be reached, the client shows the switch disabled. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
enabled | boolean | yes | |
ask | boolean | yes | Show the question (not answered yet). |
{
"enabled": true,
"ask": false
}
POSTchat/always-on/dismiss
Stop asking. Needs a token.
"No, thanks" in the question.
| Status | Meaning |
|---|---|
200 | The network will not ask again. |
401 | No token, or the token is invalid or expired. |
events
Upcoming events for the calendar button in the channel sidebar. The button only shows when the list has an event that has not started yet, and is marked when one starts within 24 hours. The client loads the list after every registration and every 15 minutes.
GETchat/events
Upcoming events. Needs a token.
The network expands recurring events into single dates and decides how far ahead
the list goes. Entries without a valid starts_at are dropped.
Parameters:
| Field | Type | Required | Meaning |
|---|---|---|---|
?community | string or integer | Only events of this community (feature communities, sent while a community is
shown). community_name is then left out in the list. |
| Status | Meaning |
|---|---|
200 | Sorted by start. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
events | array of object | yes | |
events[].event_id | string or integer | yes | Recurring events appear once per date with the same id. |
events[].title | string | yes | |
events[].starts_at | ISO 8601 date | yes | Shown in the local time zone. |
events[].recurrence | none, weekly, biweekly, monthly | Shown as a hint. | |
events[].channel | string or null | Channel of the event, opened or joined from the list. | |
events[].community_name | string | Group the event belongs to, shown next to it. |
{
"events": [
{
"event_id": 4,
"title": "Bridge meeting",
"starts_at": "2026-11-20T19:00:00Z",
"recurrence": "weekly",
"channel": "#bridge",
"community_name": "Starfleet"
}
]
}
communities
Groups of channels the user belongs to, each with an icon in the rail. Creating
communities, members and roles are left to the network's website. With
links.communityInvite the client offers "Copy invite link".
GETmy-communities
Communities of the user. Needs a token.
Loaded after every registration.
| Status | Meaning |
|---|---|
200 | Empty for users without communities. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
[].id | string or integer | yes | |
[].name | string | yes | Shown in the rail (first letter) and as the group heading. |
[].slug | string | Fills {community} in links.communityInvite. Pattern ^[A-Za-z0-9_-]+$. | |
[].lobby_channel | string or null | Opened first. Must be one of channels, otherwise the first channel is used. | |
[].channels | array of string | yes | In the order the community wants them. |
[
{
"id": 1,
"name": "Starfleet",
"slug": "starfleet",
"lobby_channel": "#bridge",
"channels": [
"#bridge",
"#engineering"
]
}
]
push
Only used by app builds (shell: 'mobile'): the app cannot receive Web Push itself,
so the network relays it to Firebase Cloud Messaging. Browsers register directly
with the IRC server (draft/webpush) and do not call these endpoints.
The client hands the endpoint to the IRC server with
WEBPUSH REGISTER <endpoint> p256dh=…;auth=…, using the keys the app created. The
IRC server sends encrypted pushes to the endpoint, the network forwards them
unchanged to FCM and the app decrypts them. How app and chat talk to each other is
described in Features.
POSTchat/push-devices
Register an app install. Needs a token.
A token belongs to one install: registering it again moves it to the current account.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
fcm_token | string | yes |
| Status | Meaning |
|---|---|
200 | Known install. |
201 | New install. |
401 | No token, or the token is invalid or expired. |
422 | Invalid fields. The client shows the first message. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
endpoint | URL | yes | Web Push endpoint the client registers with the IRC server. |
{
"endpoint": "https://example.org/api/push/3f9c…"
}
Answer 201:
| Field | Type | Required | Meaning |
|---|---|---|---|
endpoint | URL | yes | Web Push endpoint the client registers with the IRC server. |
{
"endpoint": "https://example.org/api/push/3f9c…"
}
DELETEchat/push-devices
Remove an app install. Needs a token.
Sent on logout.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
fcm_token | string | yes |
| Status | Meaning |
|---|---|
204 | Removed. |
401 | No token, or the token is invalid or expired. |
voice
Voice chat per channel through a LiveKit server of the
network. Who is in a voice chat is published as IRC metadata voice (value: the
channel), so the nick list shows a speaker icon. Leaving the channel on IRC also
leaves its voice chat.
POSTchat/voice/token
Token for the voice room of a channel. Needs a token.
The network checks that the nick belongs to the account of the token and is in the channel, for example with a WHOIS through the IRC server's API.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
channel | string | yes | |
nick | string | yes | Own IRC nick. |
{
"channel": "#bridge",
"nick": "alice"
}
| Status | Meaning |
|---|---|
200 | Token for the room. |
401 | No token, or the token is invalid or expired. |
403 | The client shows its own text for each reason: not_allowed (voice is not
enabled for this account, for example while testing), wrong_account (the nick
belongs to another account), not_in_channel. |
404 | Voice is not set up on this network. |
503 | The nick could not be checked right now (reason whois_failed). |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
url | URL | yes | LiveKit server (wss://). |
token | string | yes | LiveKit access token for the room. The participant identity should be the account name, the participant name the nick. |
is_moderator | boolean | Channel operator, room admin in LiveKit. |
{
"url": "wss://voice.example.org",
"token": "eyJhbGciOiJIUzI1NiJ9…",
"is_moderator": false
}
GETchat/voice/filters
Microphone filters. Needs a token.
Optional noise filters the client can load. The client ships the AudioWorklet of
each filter it knows, the network hosts the WebAssembly files with
Access-Control-Allow-Origin: * (the desktop app loads them from file://).
Unknown ids are ignored, so a new build of a filter gets a new id (rnnoise-v2)
and older clients keep loading theirs. rnnoise-v1 pairs with the files of
@sapphi-red/web-noise-suppressor
0.4.1. An empty list or an error leaves the browser's own noise suppression.
| Status | Meaning |
|---|---|
200 | Offered filters, possibly none. |
401 | No token, or the token is invalid or expired. |
404 | Voice is not set up on this network. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
filters | array of object | yes | |
filters[].id | string | yes | |
filters[].wasm | URL | yes | |
filters[].wasm_simd | URL | Build for CPUs with WebAssembly SIMD, used when available. |
calls
Voice calls between two friends from the DM window. Needs the features voice and
friends. Ringing runs over IRC (see IRCv3 support), the
API only hands out the room and rings app builds.
POSTchat/voice/call-token
Token for a call with a friend. Needs a token.
Both sides have to get the same room, for example dm: plus both account names in
lower case and sorted (dm:alice:bob).
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
peer | string | yes | Account of the other side. |
nick | string | yes | Own IRC nick, shown to the other side. |
{
"peer": "bob",
"nick": "alice"
}
| Status | Meaning |
|---|---|
200 | Token for the call room. |
401 | No token, or the token is invalid or expired. |
403 | Not friends (reason not_friends) or voice not allowed (not_allowed). |
404 | Voice is not set up on this network. |
422 | Invalid fields. The client shows the first message. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
url | URL | yes | LiveKit server (wss://). |
token | string | yes | LiveKit access token for the room. The participant identity should be the account name, the participant name the nick. |
is_moderator | boolean | Channel operator, room admin in LiveKit. |
POSTchat/voice/call-ring
Ring the app builds of a friend. Needs a token.
Optional next to the ringing over IRC, so an app in the background rings too, for
example through FCM. cancel takes the notification back. The caller treats
pushed > 0 like a ringing answer. How the app opens the call is described in
Features.
Body:
| Field | Type | Required | Meaning |
|---|---|---|---|
peer | string | yes | Account of the other side. |
call_id | string | yes | Pattern ^[A-Za-z0-9]{1,32}$. |
nick | string | yes | Own IRC nick, shown in the notification. |
action | invite, cancel | yes |
| Status | Meaning |
|---|---|
200 | Number of installs reached, 0 without a push service. |
401 | No token, or the token is invalid or expired. |
403 | Not friends. |
404 | Voice is not set up on this network. |
422 | Invalid fields. The client shows the first message. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
pushed | integer | yes |
{
"pushed": 1
}
spotify
Used by the desktop app. The network keeps the Spotify link of the account (OAuth with its own Spotify app) and asks Spotify for the user.
GETspotify/auth-url
Link to connect Spotify. Needs a token.
| Status | Meaning |
|---|---|
200 | A one-time link the app opens in the browser. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
url | URL | yes |
GETspotify/status
Whether Spotify is linked. Needs a token.
| Status | Meaning |
|---|---|
200 | The link state. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
connected | boolean | yes |
GETspotify/current-track
Track playing now. Needs a token.
| Status | Meaning |
|---|---|
200 | The track, or null when nothing plays. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
title | string | yes | |
artist | string | yes |
{
"title": "Clair de Lune",
"artist": "Claude Debussy"
}
DELETEspotify/disconnect
Unlink Spotify. Needs a token.
| Status | Meaning |
|---|---|
200 | Unlinked. |
401 | No token, or the token is invalid or expired. |
Answer 200:
| Field | Type | Required | Meaning |
|---|---|---|---|
ok | boolean | yes |