Identity: card
The identity’s own contact card, as a peer would fetch it
Section titled “The identity’s own contact card, as a peer would fetch it”GET /v1/identities/{slug}/card · operation getIdentityCard
Requires the batondeck:identities:read permission (action identity:read).
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
slug |
path | string | yes |
Responses
| Status | Meaning |
|---|---|
| 200 | The identity’s own contact card, as a peer would fetch it |
| 401 | No portal session, and no live API key. |
| 403 | The policy refused, or the request was cross-site. |
| 404 | No such resource, or none this session may see. |
200 response schema
{ "type": "object", "properties": { "card": { "type": "string" }, "root_fingerprint": { "type": "string" }, "kid": { "type": "string" }, "endpoint": { "type": "string" } }, "required": [ "card", "root_fingerprint", "kid", "endpoint" ], "additionalProperties": false}curl -X GET 'https://api.batondeck.com/v1/identities/:slug/card' \ -H "Authorization: Bearer $BATONDECK_API_KEY"