Compare commits

...

3 commits

Author SHA1 Message Date
Kévin Commaille f5c1b24bd8
Use added-in shortcode
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2026-01-15 11:25:12 +01:00
Kévin Commaille 4297109c11
Apply sugggestions to RequestTokenResponse
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2026-01-15 11:19:31 +01:00
Kévin Commaille 611ba3b4f9
Fix added in position
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2026-01-15 11:12:59 +01:00
3 changed files with 9 additions and 10 deletions

View file

@ -33,13 +33,14 @@ properties:
validation token, with identical request and response parameters and error
codes to the Identity Service API's
[`POST /_matrix/identity/v2/validate/email/submitToken`](/identity-service-api/#post_matrixidentityv2validateemailsubmittoken)
endpoint (without the requirement for an access token). The homeserver
and [`POST /_matrix/identity/v2/validate/msisdn/submitToken`](/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken)
endpoints (without the requirement for an access token). The homeserver
must send this token to the user (if applicable), who should then be
prompted to provide it to the client.
If this field is not present, the client can assume that verification
will happen without the client's involvement provided the homeserver
advertises this specification version in the [`GET /versions`](/client-server-api/#get_matrixclientversions)
advertises a sufficiently recent version in the [`GET /versions`](/client-server-api/#get_matrixclientversions)
response (ie: r0.5.0).
example: "https://example.org/path/to/submitToken"
required: ['sid']

View file

@ -154,14 +154,13 @@ paths:
"success": true
}
"400":
x-addedInMatrixVersion: "1.18"
description: |
An error occurred. Some possible errors are:
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
- {{% added-in v="1.18" %}} `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
incorrect.
- `M_INVALID_PARAM`: One of the supplied parameters is not valid.
- `M_SESSION_EXPIRED`: The validation session in question has expired.
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
- {{% added-in v="1.18" %}} `M_SESSION_EXPIRED`: The validation session in question has expired.
content:
application/json:
schema:

View file

@ -156,14 +156,13 @@ paths:
"success": true
}
"400":
x-addedInMatrixVersion: "1.18"
description: |
An error occurred. Some possible errors are:
- `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
- {{% added-in v="1.18" %}} `M_TOKEN_INCORRECT`: The token that the user entered to validate the session is
incorrect.
- `M_INVALID_PARAM`: One of the supplied parameters is not valid.
- `M_SESSION_EXPIRED`: The validation session in question has expired.
- {{% added-in v="1.18" %}} `M_INVALID_PARAM`: One of the supplied parameters is not valid.
- {{% added-in v="1.18" %}} `M_SESSION_EXPIRED`: The validation session in question has expired.
content:
application/json:
schema: