Skip to main content

Discord

POST 

/external/discordauth

Request an access token on behalf of a Discord user. A Successful request will return an Access Token Object.

HINT: If you want to overlay the mod.io site in-game with Discord authentication, we recommend you add ?portal=discord to the end of the URL you open which will prompt the user to login with Discord. See Web Overlay Authentication for details.

Request

Error Codes

Status CodeError RefDescription
40111032mod.io was unable to verify the credentials against the external service provider.
40111043mod.io was unable to get account data from the Discord servers.
40114001The game associated with the supplied api_key is currently not available.
40311016The api_key supplied in the request must be associated with a game.
40311017The api_key supplied in the request is for test environment purposes only and cannot be used for this functionality.
40311074The user has not agreed to the mod.io Terms of Use. Please see terms_agreed parameter description and the [Terms](/restapi/docs/terms) endpoint for more information.

Responses

Successful Request