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

fetch('https://sandbox.api.enfinitos.com/v1', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "contract": "v1",
    "auth": {
      "kind": "bearer-token",
      "header": "Authorization: Bearer <api-key>",
      "hint": "<string>"
    },
    "routes": [
      {
        "path": "<string>",
        "description": "<string>",
        "scopes": [
          "<string>"
        ]
      }
    ]
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

The v1 contract descriptor.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"