Get Bearer token

POST /auth

This endpoint is used to generated the Bearer token needed for authentication to all other endpoints. Requires accountID + apiKey.

Body Required

Your AccountID and apiKey provided to you by Madden

  • accountID string
  • apiKey string

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • accessToken string

      The actual token to be used as bearer on all following requests

    • tokenType string

      Type of token

  • default

    All errors will return the same object with describing codes/messages

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode integer
POST /auth
curl \
 --request POST 'https://api.maddenanalytics.com/v2/api/auth' \
 --data '{"accountID":"string","apiKey":"string"}'
Request examples
{
  "accountID": "string",
  "apiKey": "string"
}
Response examples (200)
{
  "accessToken": "string",
  "tokenType": "string"
}
Response examples (default)
{
  "error": "Error Type (if any)",
  "message": "Message describing the error",
  "statusCode": 400
}