{"revision":"25c04798c52757c2","language":"en","entry":{"id":"discord-widget","kind":"endpoint","group":"share","title":"Embed a Discord profile that verifies","method":"GET","path":"/u/{card}/embed","paths":[],"summary":"Show a person’s card as a Discord profile that verifies itself and its keys in the visitor’s browser.","response":"An HTML frame, 520 pixels high and up to 560 pixels wide. “In good standing” takes the accent only after the visitor’s browser checked the card, and each key gets a tick once checked there.","parameters":[{"name":"card","description":"A permanent card number or its current alias.","in":"path","required":true},{"name":"style","description":"discord.","in":"query","required":true},{"name":"theme","description":"dark or light.","in":"query","required":false},{"name":"lang","description":"en or it. English is the default.","in":"query","required":false}],"sample":"/u/1/embed?style=discord","access":"public","base":"directory","notes":["Use an iframe, or embed.js with data-style=\"discord\". An alias redirects to the numbered widget and keeps the style."],"errors":["404 not_found","429 rate_limited","500 internal_error","503 busy"],"related":["widget","discord-image","embed-loader"],"sections":[{"kind":"code","language":"shell","code":"curl -fsS 'https://veil.pub/u/1/embed?style=discord'"}],"live":false,"responses":[{"status":200,"contentType":"text/html","description":"An HTML frame, 520 pixels high and up to 560 pixels wide. “In good standing” takes the accent only after the visitor’s browser checked the card, and each key gets a tick once checked there.","fields":[]},{"status":302,"contentType":"text/html","description":"An alias widget redirects to its permanent numeric card URL. Follow Location.","fields":[]}],"responseObjects":[],"errorFormat":"json","errorDetails":[{"status":404,"code":"not_found","description":"The requested card, key, alias, code or resource was not found.","action":"Check the identifier. Temporary codes and previews may already have expired or been used.","scope":"endpoint"},{"status":429,"code":"rate_limited","description":"An anonymous, signed-request or API-key allowance was exceeded.","action":"Wait at least `Retry-After` seconds. Share a queue and retry budget across your workers.","scope":"common"},{"status":500,"code":"internal_error","description":"An unexpected server error occurred. Internal details are not returned.","action":"Retry reads with bounded backoff. Check write results before sending a new signed operation.","scope":"common"},{"status":503,"code":"busy","description":"The application has reached a temporary concurrency or database limit.","action":"Wait `Retry-After` seconds and retry with bounded backoff.","scope":"common"}],"responseHeaders":[{"name":"Content-Type","value":"text/html","description":"Use the declared media type before choosing a parser."},{"name":"Date","value":"HTTP date","description":"Server time. Compare it with your clock when signing requests."},{"name":"Location","value":"relative URL","description":"Published card/proof address, or permanent widget redirect target."},{"name":"Retry-After","value":"integer seconds, on rate_limited or busy","description":"Wait at least this long before retrying. Other 429/503 codes do not necessarily include it."}],"documentationUrl":"https://veil.pub/docs/discord-widget","supportsBrowserFetch":false,"browserMode":"frame"}}