Matrica
  • Matrica
  • Guides
    • Pricing Guide
    • User Guide
      • Getting Started
      • Linking Wallets
      • Linking Socials
      • Customizing Your Profile
      • Bot Commands
      • Privacy Settings
      • /flash
    • Community Guide
      • Getting Started
      • Manage Community
      • Manage Collections
      • Discord Set-Up
        • Invite the Bot
        • Bot commands
        • Snapshots
      • Verification
        • Adding Rules
        • Fungible Token Roles
        • Amount Based Roles
        • Attribute Based Roles
        • Logic Operators
        • Status Based Roles
        • Verified Collection Roles
        • X Username Gating
        • Wallet Address Gating
        • Validator Stake Gating
        • Inscription # Based Roles
        • Royalty Based Roles
      • Telegram Set-Up
        • Invite the Bot
        • Bot Commands
        • Add Requirements
        • Invite Links
      • Sales Bot and Web-hooks
        • Discord Sales and Listings
        • Telegram Sales
      • Events
        • Create Event
        • Location
        • Requirements
        • Ticketing
      • Proposals
      • Customer Support
      • Staking Support
      • Add-Ons
    • Enterprise
  • Matrica Connect
    • Matrica Connect Overview
    • Who's Building with Matrica Connect?
    • What is OAuth2?
    • Create your application
    • Initial Redirect
    • Retrieving the Access Token
    • API Reference
  • API Reference
    • API - Getting Started
    • Feed
    • User
    • Wallet
    • Events
    • NFT
    • Snapshot
    • Onboard
    • Search
    • Collection
Powered by GitBook
On this page
  1. Matrica Connect

API Reference

PreviousRetrieving the Access TokenNextAPI - Getting Started

Last updated 25 days ago

Authorization Requests

Token Requests

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

User data requests

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 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

Revokes an Oauth2 Token

post
Responses
200
Token revoked
post
POST /oauth2//token/revoke HTTP/1.1
Host: api.matrica.io
Accept: */*
200

Token revoked

No content

Get OAuth2 user profile.

get
Responses
200
Returns the OAuth2 user profile.
get
GET /oauth2//user/profile HTTP/1.1
Host: api.matrica.io
Accept: */*
200

Returns the OAuth2 user profile.

No content

Get OAuth2 user wallets.

get
Responses
200
Returns the OAuth2 user wallets.
get
GET /oauth2//user/wallets HTTP/1.1
Host: api.matrica.io
Accept: */*
200

Returns the OAuth2 user wallets.

No content

Get OAuth2 user nfts.

get
Responses
200
Returns the OAuth2 user nfts.
get
GET /oauth2//user/nfts HTTP/1.1
Host: api.matrica.io
Accept: */*
200

Returns the OAuth2 user nfts.

No content

Get OAuth2 user discord.

get
Responses
200
Returns the OAuth2 user discord.
get
GET /oauth2//user/discord HTTP/1.1
Host: api.matrica.io
Accept: */*
200

Returns the OAuth2 user discord.

No content

Get OAuth2 user twitter.

get
Responses
200
Returns the OAuth2 user twitter.
get
GET /oauth2//user/twitter HTTP/1.1
Host: api.matrica.io
Accept: */*
200

Returns the OAuth2 user twitter.

No content

Get authorization data.

get
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

  • Authorization Requests
  • GETGet authorization data.
  • POSTSubmit authorization by user.
  • Token Requests
  • POSTGet oauth2 access tokens.
  • POSTRevokes an Oauth2 Token
  • User data requests
  • GETGet OAuth2 user profile.
  • GETGet OAuth2 user wallets.
  • GETGet OAuth2 user nfts.
  • Get OAuth2 user verified email
  • GETGet OAuth2 user discord.
  • GETGet OAuth2 user twitter.
  • Get OAuth2 user telegram.

Submit authorization by user.

post
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

Get oauth2 access tokens.

post
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