Frayit Developer API
    Frayit Developer API
    • Exchange authorization code for access token
      POST
    • Fetch logged-in player profile (OAuth2 + client_secret header)
      GET
    • Fetch player by Frayit ID (Client Credentials)
      GET
    • Submit an anti-cheat report
      POST
    • Submit a toxicity report
      POST
    • Submit an AFK report
      POST
    • Submit a griefing report
      POST
    • Schemas
      • Schemas
        • ErrorResponse
        • Evidence
        • AnticheatReport
        • ToxicityReport
        • AfkReport
        • GriefingReport
        • Reportoffense
        • ReportSubmitResponse
        • PlayerPublic
        • PlayerDetailed
        • TokenRequest
        • TokenResponse

      Fetch logged-in player profile (OAuth2 + client_secret header)

      GET
      https://api.frayit.com/v1/player
      Last modified:2025-08-31 14:10:00

      Requires Bearer token (Authorization: Bearer ) AND the game's client_secret header (used as the JWT secret in your implementation).

      Request

      Authorization
      JWT Bearer
      Add the parameter
      Authorization
      to Headers
      Example:
      Authorization: ********************
      API Key
      Add parameter in header
      client_secret
      Example:
      client_secret: ********************
      or

      Responses

      🟢200OK
      application/json
      Player profile retrieved
      Body

      🟠401Unauthorized
      🟠404Record Not Found
      🔴500Server Error
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.frayit.com/v1/player' \
      --header 'Authorization: Bearer <token>' \
      --header 'client_secret: <api-key>'
      Response Response Example
      200 - Example 1
      {
          "frayitId": "player_12345",
          "fullName": "John Doe",
          "gamerTag": "ShadowHunter",
          "trustScore": 90,
          "profileUrl": "https://cdn.frayit.com/profiles/player_12345.png",
          "gameTitle": "Battle Royale X",
          "gameDescription": "Fast-paced survival shooter."
      }
      Modified at 2025-08-31 14:10:00
      Previous
      Exchange authorization code for access token
      Next
      Fetch player by Frayit ID (Client Credentials)
      Built with