Skip to content

Roblox OAuth2


Add a Application

Adds a new application to the database for the OAuth2 Flow

POST /api/roblox/oauth2/add
Terminal window
https://api.cookie-api.com/api/roblox/oauth2/add


{
"client_id": "Your OAuth2 client ID",
"client_secret": "Your OAuth2 client secret".
}

curl --location 'https://api.cookie-api.com/api/roblox/oauth2/add' \
--header 'Authorization: API_Key' \
--header 'Content-Type: application/json' \
--data '{
"client_id": CLIENT_ID,
"client_secret": "CLIENT_SECRET"
}'

Responses
{
"example_authorization_url": "https://apis.roblox.com/oauth/v1/authorize?client_id=6304453071367908946&redirect_uri=https://api.cookie-api.com/api/public/roblox/callback/KpPbNKKXwS&response_type=code&scope=openid",
"message": "Don't forget to set the redirect url in the Roblox Dev Portal :D",
"redirect_url": "https://api.cookie-api.com/api/public/roblox/callback/KpPbNKKXwS",
"success": true
}


List all Applications

Lists all Applications registered to your account.

GET /api/roblox/oauth2/applications/list
Terminal window
https://api.cookie-api.com/api/roblox/oauth2/applications/list


curl --location 'https://api.cookie-api.com/api/roblox/oauth2/applications/list' \
--header 'Authorization: API_Key'

Responses
{
"data": [
{
"client_id": "6304453071367908946",
"redirect_uri": "https://api.cookie-api.com/api/public/discord/callback/KpPbNK35swS"
}
],
"results": 1,
"success": true
}


Delete an Application

Deletes an Application from your account.

DELETE /api/roblox/oauth2/applications/delete
Terminal window
https://api.cookie-api.com/api/roblox/oauth2/applications/delete


URL Parameters
client_idClient ID of the Application to be deleted

curl --location --request DELETE 'https://api.cookie-api.com/api/roblox/oauth2/applications/delete?client_id=6304453071367908946' \
--header 'Authorization: API_Key'

Responses
{
"message": "Application deleted successfully",
"success": true
}


List all verified Users

Lists all verified users from a specified bot.


GET /api/roblox/oauth2/users/list
Terminal window
https://api.cookie-api.com/api/roblox/oauth2/users/list


URL Parameters
client_idYour OAuth2 client ID from what all verified users should be returned from
filter_user_id (optional)Filter to a specific roblox user id

curl --location 'https://api.cookie-api.com/api/roblox/oauth2/users/list?client_id=6304453071367908946' \
--header 'Authorization: API_Key'

Responses
{
"data": [
{
"access_token": "eyJhDctNTNiZjVmYjM5MjJjIiwic2NvcGUiOiJvcGVuaWQ6cmVhZCIsImp0aSI6IkFULjlMVVc4cmNid0NiY3pYWXppWW5YIiwibmJmIjoxNzM5MTE4MzczLCJleHAiOjE3MzkxMTkyNzMsImlhdCI6MTczOTExODM3MywiaXNzIjoiaHR0cHM6Ly9hcGlzLnJHV-2emi3AZzJoqNLN6Yh9n4rV7rCtJWIAEirLj3m2oIkf8tNe2TmTNxOMw",
"authorized_at": "1739118373",
"refresh_token": "eyJhbGciOiJkaXIiLCJlzRWQyQ0o1NDgtUi1Ya1J1TTBBRSIsInR5cCI6IkpXVCIsImN0eSI6IkpXVCJ9..d1yosmWDPUy9C8CEEpEuhg.88aVGl0To0E5Sfgaq7V9Ym9XMqIpVKeeMEJ5u1F5E-tIxAUHfyAj-FjG7eu81Y1uNsixd2xgGqV_JbEKzctjIkFerb9mmtV03wC6KgBPqSB9r6RWTn6GmrGOVrLdLvyt461wSknAskjaJxthuiB7G2MLn_tA1KET_9VsCj0lxmibxa07DhhruyzaPpl6_DWJ2XfWRsrTnOOLqi0lvV1zM6ufXAs2QU9NI6SSnU5JY4UdaGB--XYZpVsD8jewfDTv2nlZn9HewwA4LZcTiPWa04hWXBblm.FsEdAJyB6MwMeT6YXNHL3A4deYd8zCcPFBEujx_JaTk",
"roblox_data": {
"sub": "4635563910"
},
"user_id": "4635563910"
}
],
"results": 1,
"success": true
}


Delete a user from the database

Deletes a verified user from the database


DELETE /api/roblox/oauth2/users/delete
Terminal window
https://api.cookie-api.com/api/roblox/oauth2/users/delete


URL Parameters
client_idClient ID the user has been authorized with
user_idTarget user the data should be deleted of

curl --location --request DELETE 'https://api.cookie-api.com/api/roblox/oauth2/users/delete?client_id=6304453071367908946&user_id=4635563910' \
--header 'Authorization: API_Key'

Responses
{
"message": "User data deleted successfully",
"success": true
}