Show a card as a Discord profile
Read a person’s card drawn as a Discord profile, as a PNG or an SVG, for a README, a website or a chat.
/u/{card}/discord.png- Access
- Public access
- Client
- Local or server client
Other addresses#
/u/{card}/discord.svg
Parameters#
| Name | Location | Meaning |
|---|---|---|
cardRequired | Path | A permanent card number or its current alias. |
theme | Query | dark or light. |
lang | Query | en or it. English is the default. |
Request examples#
curl -fsS -o discord.png 'https://veil.pub/u/1/discord.png'Response#
A server-rendered image of GET /u/{n}: the name, the verified Discord account, the status, the 12 words and the active keys with their fingerprints, and the day it was drawn. The PNG is 1360 pixels wide, the SVG 680. The app that shows it does not verify the card.
The same image as an SVG (/u/{card}/discord.svg): every text an outline, the words again in its title and description.
Response headers#
| Header | Value | Meaning |
|---|---|---|
Content-Type | image/png | Use the declared media type before choosing a parser. |
Date | HTTP date | Server time. Compare it with your clock when signing requests. |
Cache-Control | public, max-age=300 | Server-rendered previews may be cached for five minutes. |
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#
- A person’s card only: an organisation answers 404. A number nobody has answers 200 with “Nobody has this card yet”. The accent marks the status only when the server checked the card and it has a verified account.
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. |
When using an optional API key
| HTTP | Code | Meaning and next step |
|---|---|---|
| 401 | invalid_api_key | The bearer credential is malformed, unknown, expired or revoked. Use an active key. To use anonymous public access, remove |
| 403 | api_key_scope | The API key lacks read or verify scope, or the endpoint does not accept bearer keys. Use the correct scope. Identity writes and key management still require a device signature. |
| 403 | api_key_suspended | This API key is suspended. Ask staff to restore it; another key cannot lift an account suspension. |
| 403 | developer_suspended | The owner’s API account is suspended or the owner card is unavailable. Check the owner account and any staff restriction. Creating another key does not bypass suspension. |
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 |