Skip to content

Zekt Gate API

Your applications call Zekt Gate’s API to check that Zekt Gate recognizes them, list workflows, and read a workflow’s inputs. Set up the application first, in step 3.

The token scope and the URL for each operation are on the application’s row in the Zekt Gate App, under How.

  • Applications only. Get an access token from your own Entra directory with the client credentials flow, and send it as a bearer token. A token issued to a person is refused.
  • The application needs Zekt Gate Caller (Gate.Caller), and must be on the account’s list under Applications in the Zekt Gate App.
  • Tokens are cached for up to about an hour. After you grant a permission, get a new token: one issued before the grant doesn’t carry it.

All three operations need Zekt Gate Caller and take no request body.

A check only: it doesn’t start or change anything. Like every call, it’s also checked at Zekt (the account must be in good standing). It’s recorded in the call history in the Zekt Gate App.

{"decision":"admitted"}

If the application isn’t recognized, you get one of the refusals.

Returns the services under the directory’s GitHub organization, as Zekt reports them.

{
"outcome": "listed",
"asOf": "<ISO-8601 time>",
"services": [
{
"id": "<opaque id>",
"workflowName": "<name>",
"serviceSlug": "<slug>",
"description": "<text>",
"providerAlias": "<alias>",
"switchedOn": false,
"launchable": true
}
]
}
  • serviceSlug, description and providerAlias may be missing.

  • id is opaque. Use it as it is; don’t build or guess one.

  • switchedOn and launchable are for starting workflows, which isn’t available yet.

  • When launchable is false, the service also has notLaunchableBecause. Treat its values as an open list: new ones can appear. Today’s values are:

    ValueMeaning
    input_not_definedOne or more inputs have no type or description.
    schema_not_publishedThe service has no published schema.
    unrecognisedA reason Zekt Gate doesn’t know.

When Zekt has nothing for this directory, you get a real answer, not an error:

{"outcome":"none_recorded","asOf":"<ISO-8601 time>"}

Use an id from the list.

{
"outcome": "described",
"asOf": "<ISO-8601 time>",
"launchable": true,
"inputs": [
{
"name": "<name>",
"type": "string",
"required": true,
"default": "<value>",
"options": ["<a>", "<b>"],
"description": "<text>"
}
]
}
  • type is string, boolean, choice or number. type, default, options and description may be missing. options appears for choice inputs.
  • "inputs": [] means the workflow declares no inputs.
  • If inputs is missing entirely, Zekt couldn’t read the workflow. Don’t treat that as “no inputs”.
  • asOf is when Zekt read the answer.
  • Fields that would be null are left out.
  • Responses aren’t cached (Cache-Control: no-store).
  • Each response carries a correlation id. Quote it when you contact support.

Errors are listed under API responses.