API Reference
Authorization Requests
Authorizations
Query parameters
client_idstringRequired
response_typestringRequired
redirect_uristringRequired
scopestringRequired
code_challengestringRequired
code_challenge_methodstringRequired
statestringOptional
Responses
200
Get application and user OAuth2 data.
400
Bad request.
401
JWT is missing or invalid.
404
Unknown Application
get
GET /oauth2//authorize/ HTTP/1.1
Host: api.matrica.io
Authorization: Bearer JWT
Accept: */*
No content
Authorizations
Query parameters
client_idstringRequired
response_typestringRequired
redirect_uristringRequired
scopestringRequired
code_challengestringRequired
code_challenge_methodstringRequired
statestringOptional
Body
authorizebooleanRequired
Responses
200
Submit Authorization data.
400
Bad request.
401
JWT is missing or invalid.
post
POST /oauth2/authorize/?client_id=text&response_type=text&redirect_uri=text&scope=text&code_challenge=text&code_challenge_method=text HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"authorize": true
}
No content
Token Requests
Body
client_idstringRequired
client_secretstringOptional
grant_typestringRequired
redirect_uristringRequired
codestringRequired
code_verifierstringRequired
refresh_tokenstringOptional
Responses
200
Returns the tokens.
400
Bad request.
post
POST /oauth2/token/ HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"client_id": "text",
"client_secret": "text",
"grant_type": "text",
"redirect_uri": "text",
"code": "text",
"code_verifier": "text",
"refresh_token": "text"
}
No content
User data requests (v1, deprecated)
This will be deprecated, please use the V2 User APIs. Click here to access the V2 docs.
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 telegram.
GET
https://api.matrica.io/oauth2/user/telegram
Last updated