Palbase ai · API
/ai/env/host-requests/{request_id}/allowAllow an ask
The owner's Allow, for any ask: its host is added to the variable's hosts (one of the project's), or to the agent's allowances (an agent's own secret: GET /ai/env/allowances), and the asks it now allows are marked allowed. A person's alone: an owner or an admin of the organization signed in, never a key or a token, the secret key included (403 person_required; an environment's token, token_out_of_scope).
Called by your server, with the project's secret key.
Path
request_idstring · requiredThe ask (shr_…).curl -X POST "https://<your-ref>.palbase.studio/ai/env/host-requests/<request_id>/allow" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The ask, allowed
401No valid credential
403A publishable key or a user's session: everything here is the project's server's, called with the secret key
404No such response, job or provider in this project
409The response's state refuses it
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation AllowEnvHostRequest of ai's contract.