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 player by Frayit ID (Client Credentials)

      GET
      https://api.frayit.com/v1/player/{frayitId}
      Last modified:2025-08-31 14:10:00
      Returns player details populated with offenses and games. Requires both client_id and client_secret headers.

      Request

      Authorization
      API Key
      Add parameter in header
      client_id
      Example:
      client_id: ********************
      API Key
      Add parameter in header
      client_secret
      Example:
      client_secret: ********************
      or
      Path Params

      Responses

      🟢200OK
      application/json
      Player details 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 'client_id: <api-key>' \
      --header 'client_secret: <api-key>'
      Response Response Example
      200 - Example 1
      {
          "frayitId": "player_12345",
          "fullName": "John Doe",
          "gamerTag": "ShadowHunter",
          "trustScore": 83,
          "isKycVerified": true,
          "games": [
              {
                  "gameTitle": "Battle Royale X"
              }
          ],
          "offenses": [
              {
                  "_id": "66d06b7d9b2c3a0012f9e321",
                  "player": "66d06b7d9b2c3a0012f9e100",
                  "game": "66d06b7d9b2c3a0012f9e200",
                  "studio": "66d06b7d9b2c3a0012f9e300",
                  "type": "toxicity",
                  "description": "Multiple slurs in chat",
                  "severity": "high",
                  "penaltyPoints": 8,
                  "evidence": [
                      {
                          "type": "text",
                          "content": "chat excerpt",
                          "submittedAt": "2025-08-31T12:30:00Z"
                      }
                  ],
                  "reviewedByAdmin": false,
                  "resolved": false,
                  "createdAt": "2025-08-31T12:31:00Z",
                  "updatedAt": "2025-08-31T12:31:00Z"
              }
          ]
      }
      Modified at 2025-08-31 14:10:00
      Previous
      Fetch logged-in player profile (OAuth2 + client_secret header)
      Next
      Submit an anti-cheat report
      Built with