E-Mail Verification
Sends a Verification E-Mail
Abusing this endpoint, like spamming an email address, will lead to punishments
If you don’t want to build your own BotGhost Command, you can use this share code: CMD_90b7aa41-0f5e-4a95-9973-1557bedd5eb8
POST /api/email/email-verification
https://api.cookie-api.com/api/email/email-verification
Authentication Learn how to get your API Key and use it in your requests!
URL Parameters | |
---|---|
to_email | email address from the recipient |
title | title of the email |
to | name of the recipient |
color | color accent of the email (hex format) |
code optional | custom code instead of the automatically generated one |
If an invalid hex color is provided, the color #E6CEA0 will be used.
curl --location --request POST 'https://api.cookie-api.com/api/email-verification?to_email=exampel%40exampel.com&name=Cookie&title=This%20is%20the%20title&to=A%20very%20nice%20person&color=%23e6cea0' \--header 'Authorization: API_Key'
import requests
url = 'https://api.cookie-api.com/api/email-verification?to_email=exampel%40exampel.com&name=Cookie&title=This%20is%20the%20title&to=A%20very%20nice%20person&color=%23e6cea0'headers = { 'Authorization': 'API_Key'}
response = requests.post(url, headers=headers)print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/email-verification?to_email=exampel%40exampel.com&name=Cookie&title=This%20is%20the%20title&to=A%20very%20nice%20person&color=%23e6cea0';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'POST', headers: headers}).then(response => response.json()).then(data => console.log(data)).catch(error => console.error('Error:', error));
package main
import ( "fmt" "log" "net/http" "io/ioutil")
func main() { url := "https://api.cookie-api.com/api/email-verification?to_email=exampel%40exampel.com&name=Cookie&title=This%20is%20the%20title&to=A%20very%20nice%20person&color=%23e6cea0" req, err := http.NewRequest("POST", url, nil) if err != nil { log.Fatal(err) }
req.Header.Set("Authorization", "API_Key")
client := &http.Client{} resp, err := client.Do(req) if err != nil { log.Fatal(err) } defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body) fmt.Println(string(body))}
const fetch = require('node-fetch');
const url = 'https://api.cookie-api.com/api/email-verification?to_email=exampel%40exampel.com&name=Cookie&title=This%20is%20the%20title&to=A%20very%20nice%20person&color=%23e6cea0';const headers = { 'Authorization': 'API_Key'};
fetch(url, { method: 'POST', headers: headers}).then(response => response.json()).then(data => console.log(data)).catch(error => console.error('Error:', error));
require 'net/http'require 'uri'
url = URI.parse("https://api.cookie-api.com/api/email-verification?to_email=exampel%40exampel.com&name=Cookie&title=This%20is%20the%20title&to=A%20very%20nice%20person&color=%23e6cea0")request = Net::HTTP::Post.new(url)request["Authorization"] = "API_Key"
response = Net::HTTP.start(url.hostname, url.port, use_ssl: url.scheme == "https") do |http| http.request(request)end
puts response.body
use reqwest::blocking::Client;use reqwest::header::{HeaderMap, HeaderValue, AUTHORIZATION};use std::collections::HashMap;
fn main() { let client = Client::new(); let url = "https://api.cookie-api.com/api/email-verification?to_email=exampel%40exampel.com&name=Cookie&title=This%20is%20the%20title&to=A%20very%20nice%20person&color=%23e6cea0";
let mut headers = HeaderMap::new(); headers.insert(AUTHORIZATION, HeaderValue::from_str("API_Key").unwrap());
let response = client .post(url) .headers(headers) .send() .unwrap();
println!("{:?}", response.text().unwrap());}
Responses
{ "code": 228003, "success": true}