Gyvar docs

Check your credential

Returns the key that signed the request. Use it to check your signing works.

GET
/whoami

Authorization

KeyID Timestamp Nonce Signature
X-Gyvar-Key<token>

Your key id, gyv_k_live_... or gyv_k_sandbox_....

In: header

X-Gyvar-Timestamp<token>

Unix seconds. Must be within 5 minutes of our clock.

In: header

X-Gyvar-Nonce<token>

A unique value per request. Replays are rejected.

In: header

X-Gyvar-Signature<token>

Ed25519 signature over the canonical string. See the Signing guide.

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/whoami"
{  "data": {    "key_id": "gyv_k_live_3f9c2a71b8e04d56a1c7e92b40d8f615",    "name": "shop-production",    "mode": "live",    "project_id": "5e2b8c14-7a3f-4d91-b6e0-2c8f1a9d4b73",    "fingerprint": "9a41c7e2b05f3d68",    "capabilities": [      "read",      "receive"    ]  }}