REST API/Credentials
Credentials
W3C Verifiable Credential issuance, verification, and revocation.
7 endpoints
Endpoints
Endpoint Details
POST /credentials/issue
/credentials/issueJWTIssue a new W3C Verifiable Credential for the current member. Platform admins may issue for any member; members can only issue self-attested credentials.
Request Example
{
"credential_type": "trait_attestation",
"attestation_tier": "self_attested",
"claims": {
"archetype_family": "Architect",
"trait_coverage": 0.85
},
"expiry_days": 365
}GET /credentials/
/credentials/JWTList credentials for the current user. Cursor-paginated with optional status and type filters.
Query Parameters
| Name | Type | Description |
|---|---|---|
status | string | Filter by status (active, revoked, expired) |
credential_type | string | Filter by credential type |
limit | integer | Page size (max 100) |
cursor | string | Pagination cursor |
GET /credentials/{credential_id}
/credentials/{credential_id}JWTReturns the full credential detail. Members see own; admins see all.
Path Parameters
| Name | Type | Description |
|---|---|---|
credential_id* | string | Credential UUID |
GET /credentials/{credential_id}/verify
/credentials/{credential_id}/verifyPublicPublic verification endpoint - verifies JWT signature, checks expiration and revocation status. No authentication required.
Path Parameters
| Name | Type | Description |
|---|---|---|
credential_id* | string | Credential UUID |
GET /credentials/verify
/credentials/verifyPublicStateless verification of compact attestation JWTs. Verifies the ES256 signature cryptographically without requiring the credential to exist in the database. Free and public.
Query Parameters
| Name | Type | Description |
|---|---|---|
token* | string | Compact attestation JWT to verify |
check_revocation | boolean | Whether to check revocation status (default true) |
POST /credentials/{credential_id}/revoke
/credentials/{credential_id}/revokeJWTRevoke a credential. Only the owning member or a platform admin can revoke.
Path Parameters
| Name | Type | Description |
|---|---|---|
credential_id* | string | Credential UUID |
Request Example
{
"reason": "Data no longer accurate"
}GET /credentials/.well-known/alter-keys.json
/credentials/.well-known/alter-keys.jsonPublicReturns the platform's ES256 public key in JWKS format for independent verification of compact attestation tokens.