diff --git a/content/application-service-api.md b/content/application-service-api.md index 0ab518de..42b1b985 100644 --- a/content/application-service-api.md +++ b/content/application-service-api.md @@ -446,11 +446,12 @@ achieved by including the `as_token` on a `/register` request, along with a login type of `m.login.application_service` to set the desired user ID without a password. -``` +```http POST /_matrix/client/v3/register Authorization: Bearer YourApplicationServiceTokenHere +``` -Content: +```json { "type": "m.login.application_service", "username": "_irc_example" @@ -476,11 +477,12 @@ along with a login type of `m.login.application_service`: {{% added-in v="1.2" %}} -``` +```http POST /_matrix/client/v3/login Authorization: Bearer YourApplicationServiceTokenHere +``` -Content: +```json { "type": "m.login.application_service", "identifier": {