Skip to Content
Anuma SDKClientInternalFunctionsgetApiV1UserAgentGrants

getApiV1UserAgentGrants

getApiV1UserAgentGrants<ThrowOnError>(options: Options<GetApiV1UserAgentGrantsData, ThrowOnError>): RequestResult<GetApiV1UserAgentGrantsResponses, GetApiV1UserAgentGrantsErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:1645 

Lookup active agent grant (service key)

Service-key-authenticated lookup of an active grant for (user_id, agent_id, platform). Returns 404 when no active grant exists. Used by the cf-tasks Worker to gate job execution.

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<GetApiV1UserAgentGrantsData, ThrowOnError>

Returns

RequestResult<GetApiV1UserAgentGrantsResponses, GetApiV1UserAgentGrantsErrors, ThrowOnError>

Last updated on