Embed a Discord profile that verifies
Show a person’s card as a Discord profile that verifies itself and its keys in the visitor’s browser.
/u/{card}/embed- Access
- Public access
- Client
- Embed in a frame
Parameters#
| Name | Location | Meaning |
|---|---|---|
cardRequired | Path | A permanent card number or its current alias. |
styleRequired | Query | discord. |
theme | Query | dark or light. |
lang | Query | en or it. English is the default. |
Request examples#
curl -fsS 'https://veil.pub/u/1/embed?style=discord'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.
An alias widget redirects to its permanent numeric card URL. Follow Location.
Response headers#
| Header | Value | Meaning |
|---|---|---|
Content-Type | text/html | Use the declared media type before choosing a parser. |
Date | HTTP date | Server time. Compare it with your clock when signing requests. |
Location | relative URL | Published card/proof address, or permanent widget redirect target. |
Retry-After | integer seconds, on rate_limited or busy | Wait at least this long before retrying. Other 429/503 codes do not necessarily include it. |
Usage notes#
- Use an iframe, or embed.js with data-style="discord". An alias redirects to the numbered widget and keeps the style.
Errors#
API errors return an error object. Use error.code for program logic; error.message is English text for people and can change. Response and error guide
| HTTP | Code | Meaning and next step |
|---|---|---|
| 404 | not_found | The requested card, key, alias, code or resource was not found. Check the identifier. Temporary codes and previews may already have expired or been used. |
Shared request errors
| HTTP | Code | Meaning and next step |
|---|---|---|
| 429 | rate_limited | An anonymous, signed-request or API-key allowance was exceeded. Wait at least |
| 500 | internal_error | An unexpected server error occurred. Internal details are not returned. Retry reads with bounded backoff. Check write results before sending a new signed operation. |
| 503 | busy | The application has reached a temporary concurrency or database limit. Wait |