Get an OpenID token object to verify the requester's identity.

POST {{baseUrl}}/user/:userId/openid/request_token

Gets an OpenID token object that the requester may supply to another service to verify their identity in Matrix. The generated token is only valid for exchanging for user information from the federation API for OpenID.

The access token generated is only valid for the OpenID API. It cannot be used to request another OpenID access token or call /sync, for example.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"access_token":"SomeT0kenHere","token_type":"Bearer","matrix_server_name":"example.com","expires_in":3600}