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

Initial Redirect

This will trigger the OAuth 2.0 flow.

PreviousCreate your applicationNextRetrieving the Access Token

Last updated 7 months ago

To start the OAuth 2.0 flow, you will need to redirect the user to https://matrica.io/oauth2.

Make sure to include the params below, url encoded as query string params.

Required fields:

  • client_id: Your application Client ID.

  • response_type: Must be set to code.

  • redirect_uri: One of the URIs set in your application.

  • scope: String representing the list of the scopes that your app is requesting, each scope must be separated by a space.

  • code_challenge: PCKE code challenge.

  • code_challenge_method: PKCE code challenge method. Must be set to S256.

Optional fields:

  • state: Highly recommended. The state parameter is used by the application to store request-specific data and/or prevent CSRF attacks. More info .

Example of a redirect request:

https://matrica.io/oauth2?client_id=123465&scope=profile&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&code_challenge=q1512316q&code_challenge_method=S256&state=x1561axa165

here