Skip to content
GAMPEONCreate
New project

Voice server webhook (called by LiveKit only)

POST
/v1/hooks/livekit
curl --request POST \
--url https://api.gampeon.com/v1/hooks/livekit \
--header 'Content-Type: application/json' \
--data '{ "event": "example" }'

Signed with Authorization: <JWT> from the API key of the voice server, with the SHA-256 of the raw body. Handles participant_joined, participant_left, track_published, track_unpublished (screen sharing) and room_finished. Unknown participants are removed. Only active when voice is set up.

Media typeapplication/json
object
event
required

E.g. participant_joined

string

Example generated

{
"event": "example"
}

Processed

Media typeapplication/json
object
ok
required

Example

{
"ok": true
}

Error codes: invalid_field

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: invalid_signature

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: not_found

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Error codes: body_too_large

Media typeapplication/json
object
error
required

Machine-readable error code, for example not_found or rate_limited.

string
message

Human-readable detail. Only present for some errors.

string

Example generated

{
"error": "example",
"message": "example"
}

Report a problem with this pageOther ways to give feedback