✨ Vertex is now free! Learn more here
Check Credits

Check Credits

The Check Credits endpoint is useful for checking how many credits are left for a specific pubkey. To ensure privacy, credit information is going to be provided only after authentication has been fulfilled.

Check Credits with Nostr

  1. Connect to our relay wss://relay.vertexlab.io
  2. Perform a successful NIP-42 Authentication with one or more pubkeys.
  3. Fetch kind 22243 to get the credit info associated to all authed pubkeys.
["REQ", "<sub_id>", { "kinds": [22243] } ]

Check Credits with the API

  1. Send a GET request to https://relay.vertexlab.io/api/v1/credits with NIP-98 Authentication Header for exactly one pubkey.
  2. Read the event from the response’s body.

Response

In both cases, the response will be a Nostr event.

{
    "kind": 22243,
    "tags": [
        ["credits", "9847"],
        ["lastRequest", "1746466043"]
    ],
    // ...
}