Verify buttons
Retrieve a button
content_copy
Copy page
Returns a verify button's public configuration. No key required.
GET
/api/embed/v1/buttons/{button_id}
Try it
play_arrow
Returns a verify button's label and style. The button script calls this to draw itself. It's public and needs no key: it returns nothing private.
button_id
string
path
required
The button's ID, starting vb_.
link
Response
background
string
Background colour, #RRGGBB.
full_width
boolean
Whether it fills its container.
Responses may be cached for up to a minute, and can be called from any website.
cURL
content_copy
curl https://www.kaywhysee.com/api/embed/v1/buttons/vb_MP1rKDG8nqK_SmwO
JavaScript
content_copy
const response = await fetch (
"https://www.kaywhysee.com/api/embed/v1/buttons/vb_MP1rKDG8nqK_SmwO" ,
);
const button = await response . json ();
200
content_copy
{
"id" : "vb_MP1rKDG8nqK_SmwO" ,
"label" : "Verify your identity" ,
"background" : "#d42a1c" ,
"color" : "#ffffff" ,
"radius" : 8 ,
"size" : "md" ,
"full_width" : false ,
"font" : "inherit" ,
"open_in" : "same_tab"
}
404
content_copy
{
"error" : {
"code" : "NOT_FOUND" ,
"message" : "Verify button not found: vb_nope"
}
}
Was this page helpful?
thumb_up
Yes
thumb_down
No
Thanks for letting us know.
cURL
content_copy
curl https://www.kaywhysee.com/api/embed/v1/buttons/vb_MP1rKDG8nqK_SmwO
JavaScript
content_copy
const response = await fetch (
"https://www.kaywhysee.com/api/embed/v1/buttons/vb_MP1rKDG8nqK_SmwO" ,
);
const button = await response . json ();
200
content_copy
{
"id" : "vb_MP1rKDG8nqK_SmwO" ,
"label" : "Verify your identity" ,
"background" : "#d42a1c" ,
"color" : "#ffffff" ,
"radius" : 8 ,
"size" : "md" ,
"full_width" : false ,
"font" : "inherit" ,
"open_in" : "same_tab"
}
404
content_copy
{
"error" : {
"code" : "NOT_FOUND" ,
"message" : "Verify button not found: vb_nope"
}
}