Roblox OAuth2
Add a Application
Adds a new application to the database for the OAuth2 Flow
POST /api/roblox/oauth2/add
https://api.cookie-api.com/api/roblox/oauth2/add
Authentication Learn how to get your API Key and use it in your requests!
{ "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"}'
import requests
url = 'https://api.cookie-api.com/api/roblox/oauth2/add'headers = { 'Authorization': 'API_Key', 'Content-Type': 'application/json'}data = { 'client_id': 'CLIENT_ID', 'client_secret': 'CLIENT_SECRET'}
response = requests.post(url, headers=headers, json=data)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/oauth2/add';const headers = { 'Authorization': 'API_Key', 'Content-Type': 'application/json'};const data = { client_id: 'CLIENT_ID', client_secret: 'CLIENT_SECRET'};
fetch(url, { method: 'POST', headers, body: JSON.stringify(data) }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "bytes" "encoding/json" "fmt" "log" "net/http")
func main() { url := "https://api.cookie-api.com/api/roblox/oauth2/add"
requestData := map[string]interface{}{ "client_id": "CLIENT_ID", "client_secret": "CLIENT_SECRET", } jsonData, err := json.Marshal(requestData) if err != nil { log.Fatal(err) }
req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) if err != nil { log.Fatal(err) }
req.Header.Add("Authorization", "API_Key") req.Header.Add("Content-Type", "application/json")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
var result map[string]interface{} json.NewDecoder(resp.Body).Decode(&result) fmt.Println(result)}
const https = require('https');
const data = JSON.stringify({ client_id: 'CLIENT_ID', client_secret: 'CLIENT_SECRET'});
const options = { hostname: 'api.cookie-api.com', path: '/api/roblox/oauth2/add', method: 'POST', headers: { 'Authorization': 'API_Key', 'Content-Type': 'application/json', 'Content-Length': data.length }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.write(data);req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/oauth2/add')
request = Net::HTTP::Post.new(uri, {'Content-Type' => 'application/json'})request['Authorization'] = 'API_Key'request.body = { client_id: 'CLIENT_ID', client_secret: 'CLIENT_SECRET'}.to_json
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;use std::collections::HashMap;
fn main() { let url = "https://api.cookie-api.com/api/roblox/oauth2/add"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap()); headers.insert("Content-Type", "application/json".parse().unwrap());
let mut data = HashMap::new(); data.insert("client_id", "CLIENT_ID"); data.insert("client_secret", "CLIENT_SECRET");
let res = client .post(url) .headers(headers) .json(&data) .send() .unwrap();
println!("{}", res.text().unwrap());}
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
https://api.cookie-api.com/api/roblox/oauth2/applications/list
Authentication Learn how to get your API Key and use it in your requests!
curl --location 'https://api.cookie-api.com/api/roblox/oauth2/applications/list' \--header 'Authorization: API_Key'
import requests
url = 'https://api.cookie-api.com/api/roblox/oauth2/applications/list'headers = { 'Authorization': 'API_Key'}
response = requests.get(url, headers=headers)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/oauth2/applications/list';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'GET', headers }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/roblox/oauth2/applications/list"
req, err := http.NewRequest("GET", url, nil) if err != nil { log.Fatal(err) }
req.Header.Add("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) }
fmt.Println(string(body))}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/roblox/oauth2/applications/list', method: 'GET', headers: { 'Authorization': 'API_Key' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/oauth2/applications/list')
request = Net::HTTP::Get.new(uri)request['Authorization'] = 'API_Key'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;
fn main() { let url = "https://api.cookie-api.com/api/roblox/oauth2/applications/list"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap());
let res = client .get(url) .headers(headers) .send() .unwrap();
println!("{}", res.text().unwrap());}
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
https://api.cookie-api.com/api/roblox/oauth2/applications/delete
Authentication Learn how to get your API Key and use it in your requests!
URL Parameters | |
---|---|
client_id | Client 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'
import requests
url = 'https://api.cookie-api.com/api/roblox/oauth2/applications/delete?client_id=6304453071367908946'headers = { 'Authorization': 'API_Key'}
response = requests.delete(url, headers=headers)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/oauth2/applications/delete?client_id=6304453071367908946';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'DELETE', headers }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/roblox/oauth2/applications/delete?client_id=6304453071367908946"
req, err := http.NewRequest("DELETE", url, nil) if err != nil { log.Fatal(err) }
req.Header.Add("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) }
fmt.Println(string(body))}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/roblox/oauth2/applications/delete?client_id=6304453071367908946', method: 'DELETE', headers: { 'Authorization': 'API_Key' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/oauth2/applications/delete?client_id=6304453071367908946')
request = Net::HTTP::Delete.new(uri)request['Authorization'] = 'API_Key'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;
fn main() { let url = "https://api.cookie-api.com/api/roblox/oauth2/applications/delete?client_id=6304453071367908946"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap());
let res = client .delete(url) .headers(headers) .send() .unwrap();
println!("{}", res.text().unwrap());}
Responses
{ "message": "Application deleted successfully", "success": true}
List all verified Users
Lists all verified users from a specified bot.
Verified users are saved for 2 days. After that, they are deleted from the database. Only up to 500 users can be retrieved in one API Request.
GET /api/roblox/oauth2/users/list
https://api.cookie-api.com/api/roblox/oauth2/users/list
Authentication Learn how to get your API Key and use it in your requests!
URL Parameters | |
---|---|
client_id | Your 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'
import requests
url = 'https://api.cookie-api.com/api/roblox/oauth2/users/list?client_id=6304453071367908946'headers = { 'Authorization': 'API_Key'}
response = requests.get(url, headers=headers)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/oauth2/users/list?client_id=6304453071367908946';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'GET', headers }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/roblox/oauth2/users/list?client_id=6304453071367908946"
req, err := http.NewRequest("GET", url, nil) if err != nil { log.Fatal(err) }
req.Header.Add("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) }
fmt.Println(string(body))}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/roblox/oauth2/users/list?client_id=6304453071367908946', method: 'GET', headers: { 'Authorization': 'API_Key' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/oauth2/users/list?client_id=6304453071367908946')
request = Net::HTTP::Get.new(uri)request['Authorization'] = 'API_Key'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;
fn main() { let url = "https://api.cookie-api.com/api/roblox/oauth2/users/list?client_id=6304453071367908946"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap());
let res = client .get(url) .headers(headers) .send() .unwrap();
println!("{}", res.text().unwrap());}
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
https://api.cookie-api.com/api/roblox/oauth2/users/delete
Authentication Learn how to get your API Key and use it in your requests!
URL Parameters | |
---|---|
client_id | Client ID the user has been authorized with |
user_id | Target 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'
import requests
url = 'https://api.cookie-api.com/api/roblox/oauth2/users/delete?client_id=6304453071367908946&user_id=4635563910'headers = { 'Authorization': 'API_Key'}
response = requests.delete(url, headers=headers)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/roblox/oauth2/users/delete?client_id=6304453071367908946&user_id=4635563910';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'DELETE', headers }) .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/roblox/oauth2/users/delete?client_id=6304453071367908946&user_id=4635563910"
req, err := http.NewRequest("DELETE", url, nil) if err != nil { log.Fatal(err) }
req.Header.Add("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) }
fmt.Println(string(body))}
const https = require('https');
const options = { hostname: 'api.cookie-api.com', path: '/api/roblox/oauth2/users/delete?client_id=6304453071367908946&user_id=4635563910', method: 'DELETE', headers: { 'Authorization': 'API_Key' }};
const req = https.request(options, res => { let body = '';
res.on('data', chunk => { body += chunk; });
res.on('end', () => { console.log(JSON.parse(body)); });});
req.on('error', error => { console.error(error);});
req.end();
require 'net/http'require 'uri'require 'json'
uri = URI.parse('https://api.cookie-api.com/api/roblox/oauth2/users/delete?client_id=6304453071367908946&user_id=4635563910')
request = Net::HTTP::Delete.new(uri)request['Authorization'] = 'API_Key'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::HeaderMap;
fn main() { let url = "https://api.cookie-api.com/api/roblox/oauth2/users/delete?client_id=6304453071367908946&user_id=4635563910"; let client = Client::new();
let mut headers = HeaderMap::new(); headers.insert("Authorization", "API_Key".parse().unwrap());
let res = client .delete(url) .headers(headers) .send() .unwrap();
println!("{}", res.text().unwrap());}
Responses
{ "message": "User data deleted successfully", "success": true}