Webhook management
Register the URL for the game to receive notifications
Authorizations
Header parameters
x-mythical-environment-idstring · uuidRequired
Identifier for the environment that this request should interact with
Body
urlstring · stringRequired
url to send service events to
authorizationHeaderNamestring · stringOptional
header name to pass for authorization (if any)
authorizationKeystring · stringOptional
authorization header value (if any)
Responses
200
Success
application/json
post
POST /v1/webhook HTTP/1.1
Host:
Authorization: Bearer JWT
x-mythical-environment-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"url": "http://url.com/webhook",
"authorizationHeaderName": "Authorization",
"authorizationKey": "Bearer jwt"
}
200
Success
{
"url": "http://url.com/webhook",
"authorizationHeaderName": "Authorization",
"authorizationKey": "Bearer jwt"
}
Update the URL for the game to receive notifications
Authorizations
Header parameters
x-mythical-environment-idstring · uuidRequired
Identifier for the environment that this request should interact with
Body
urlstring · stringRequired
url to send service events to
authorizationHeaderNamestring · stringOptional
header name to pass for authorization (if any)
authorizationKeystring · stringOptional
authorization header value (if any)
Responses
200
Success
application/json
put
PUT /v1/webhook HTTP/1.1
Host:
Authorization: Bearer JWT
x-mythical-environment-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"url": "http://url.com/webhook",
"authorizationHeaderName": "Authorization",
"authorizationKey": "Bearer jwt"
}
200
Success
{
"url": "http://url.com/webhook",
"authorizationHeaderName": "Authorization",
"authorizationKey": "Bearer jwt"
}
Remove the URL for the game to receive notifications
Authorizations
Header parameters
x-mythical-environment-idstring · uuidRequired
Identifier for the environment that this request should interact with
Responses
204
Success
delete
DELETE /v1/webhook HTTP/1.1
Host:
Authorization: Bearer JWT
x-mythical-environment-id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
204
Success
No content
Related content: Webhooks structure and how to use
Last updated