Issue an expiring append-only token for an exact approved source
POST
/api/v1/channels/sources/{realmName}/{sourceName}/delegations
const url = 'http://localhost:11044/api/v1/channels/sources/example/example/delegations';const options = {method: 'POST', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:11044/api/v1/channels/sources/example/example/delegations \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'The token is returned once. Supply installationId, sourceRevision, label, expiresInSeconds and maxEvents.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”realmName
required
string
Name of a realm installed, and not revoked, in the signed-in owner’s world; 403 otherwise
sourceName
required
string
Name of a source the realm declares and the owner has approved; 403 when the realm declares no source of this name or its approval no longer holds
Responses
Section titled “Responses”The new delegation and its token
Media type*/*

