API Reference

Authorization Requests

Get authorization data.

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
client_idstringRequired
response_typestringRequired
redirect_uristringRequired
scopestringRequired
code_challengestringRequired
code_challenge_methodstringRequired
statestringOptional
Responses
200

Get application and user OAuth2 data.

No content

get
/authorize/

No content

Submit authorization by user.

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
client_idstringRequired
response_typestringRequired
redirect_uristringRequired
scopestringRequired
code_challengestringRequired
code_challenge_methodstringRequired
statestringOptional
Body
authorizebooleanRequired
Responses
200

Submit Authorization data.

No content

post
/authorize/

No content

Token Requests

Content-Type must be application/x-www-form-urlencoded

Get oauth2 access tokens.

post
Body
client_idstringRequired
client_secretstringOptional
grant_typestringRequired
redirect_uristringRequired
codestringRequired
code_verifierstringRequired
refresh_tokenstringOptional
Responses
200

Returns the tokens.

No content

post
/token/

No content

Revokes an Oauth2 Token

post
Responses
200

Token revoked

No content

post
/token/revoke
200

Token revoked

No content

User data requests (v1, deprecated)

Use the user's OAuth2 access token to make these calls.

In the HTTP request header: Authorization: Bearer xxxx where xxxx is the access token

Get OAuth2 user profile.

get
Responses
200

Returns the OAuth2 user profile.

No content

get
/user/profile
200

Returns the OAuth2 user profile.

No content

Get OAuth2 user wallets.

get
Responses
200

Returns the OAuth2 user wallets.

No content

get
/user/wallets
200

Returns the OAuth2 user wallets.

No content

Get OAuth2 user nfts.

get
Responses
200

Returns the OAuth2 user nfts.

No content

get
/user/nfts
200

Returns the OAuth2 user nfts.

No content

Get OAuth2 user verified email

GET https://api.matrica.io/oauth2/user/email

Returns the user data including their verified email. If the user doesn't have a verified email. this will null.

Get OAuth2 user discord.

get
Responses
200

Returns the OAuth2 user discord.

No content

get
/user/discord
200

Returns the OAuth2 user discord.

No content

Get OAuth2 user twitter.

get
Responses
200

Returns the OAuth2 user twitter.

No content

get
/user/twitter
200

Returns the OAuth2 user twitter.

No content

Get OAuth2 user telegram.

GET https://api.matrica.io/oauth2/user/telegram

Last updated