Read a small card summary
Get current metadata without downloading signed records, proofs or history.
/v1/identities/{n}/summary- Access
- Public; API key optional
- Client
- Browser fetch supported
Parameters#
| Name | Location | Meaning |
|---|---|---|
nRequired | Path | Permanent positive card number. |
Request examples#
curl -fsS 'https://veil.rip/v1/identities/1/summary'const response = await fetch("https://veil.rip/v1/identities/1/summary");
const result = await response.json();Try the request#
Response#
n, url, name, initials, type, version, keys, orgs, badges, nameHidden and logo. Useful for labels and menus.
| Field | Type | Meaning |
|---|---|---|
n | integer | Permanent card number. |
url | string | Permanent URL using the card number. |
name | string | Current display name; a hidden name becomes Card followed by its number. |
initials | string | Initials for an image fallback. |
version | integer | Current published version. |
keys | array<CardKey> | All device and recovery keys, including revoked keys. |
orgs | array<CardOrg> | Accepted organisation affiliations of a person. |
type | string | person or organization. |
badges | array<object> | Active signed or derived badges. |
logo | object | null | Image type and URL; omitted without a visible image. |
alias | string | null | Current alias; it can change. |
aliasUrl | string | null | Current alias address. Use n as the permanent identifier. |
nameHidden | boolean | Whether staff hide the name. |
Expand a nested object for its fields. Types ending in null allow a null value; optional fields may be absent. Other fields are present in that object.
Device key CardKey
| Field | Type | Meaning |
|---|---|---|
id | string | Device label shown on the card. |
alg | string | Readable algorithm name. |
fp | string | Full public key as stored in the signed record. |
ed25519 | string | Ed25519 key or composite-key half, in hex. |
since | string | Date the key was added. |
state | string | active, offline or revoked. Offline denotes a recovery key. |
revoked | string | null | Revocation date, when revoked. |
role | string | Signing role assigned to the key. |
addedIn | integer | Version that added the key. |
revokedIn | integer | null | Version that revoked the key. |
Organisation affiliation CardOrg
| Field | Type | Meaning |
|---|---|---|
n | integer | Permanent card number. |
url | string | Permanent card URL. |
name | string | Display name, subject to moderation. |
role | string | Accepted membership role. |
since | string | Membership start time. |
nameHidden | boolean | Whether staff hide the name. |
logo | object | null | Image type and URL, when available. |
Response headers#
| Header | Value | Meaning |
|---|---|---|
Content-Type | application/json | Use the declared media type before choosing a parser. |
Date | HTTP date | Server time. Compare it with your clock when signing requests. |
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. |
What to verify#
Use the full card for verification or an authorisation decision.
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 |
|---|---|---|
| 400 | invalid_parameter | A path, query or body field is missing, malformed or outside its accepted range. Correct the field named in |
| 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. |
| 410 | erased | The card existed and was erased or removed. The response also carries its public erasure receipt. Stop using this card as current authority. Retain only the public receipt if needed. |
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 |