Skip to main content
GET
/
v1
/
tenant
Read tenant snapshot
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/tenant', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "tenant": {
      "tenantId": "<string>",
      "orgId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "counts": {
        "bases": 123,
        "rights": 123,
        "offers": 123,
        "challenges": 123,
        "proofPacks": 123,
        "events": 123
      }
    },
    "developer": {
      "developerId": "<string>",
      "orgId": "<string>",
      "email": "jsmith@example.com"
    },
    "key": {
      "keyId": "<string>",
      "label": "<string>",
      "scopes": [],
      "prefix": "<string>"
    }
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Response

Tenant snapshot.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"