▸ 03 / Developers · Build on the network
A terminal for the workforce.
install · darwin · arm64●REC
>curl -fsSL https://wrk.id/cli | sh
↳ resolving release manifest ...
↳ verifying ed25519 signature ✓
↳ installed wrk → /usr/local/bin/wrk
>wrk --version
wrk-cli 0.1.0 (build 8f4a2c1)
>
▸ Quickstart
- Install the wrk CLI.
- Authenticate with
wrk auth login. - Issue your first credential with
wrk issue. - Verify anywhere with the public verifier API.
▸01/Official SDKs
Open source · MITSDK / 01
TypeScript
@wrkid/sdk
v0.1.0
SDK / 02
Python
wrkid
v0.1.0
SDK / 03
Go
github.com/wrkid/go
v0.1.0
SDK / 04
Rust
wrkid
v0.1.0
▸02/REST API
api.wrk.id/v1| Method | Endpoint | Description | Auth |
|---|---|---|---|
| POST | /v1/credentials | Issue a new credential | issuer key |
| GET | /v1/credentials/:id | Resolve a credential | public |
| POST | /v1/verify | Verify a presentation | public |
| POST | /v1/revoke/:id | Revoke a credential | issuer key |
| GET | /v1/status/:list | Fetch a status list | public |
| POST | /v1/webhooks | Register a webhook | issuer key |
▸03/Issue, in 9 lines
import { Wrk } from "@wrkid/sdk";
const wrk = new Wrk({ issuerKey: process.env.WRK_KEY });
const cred = await wrk.issue({
schema: "vc/empl.v1",
subject: "did:wrk:0xA13F",
claims: { role: "Senior Engineer", org: "ACME" },
expires: "2028-05-04",
});
console.log(cred.id); // wrk:0xA13F·9C2E