cURL
curl --request POST \ --url https://api.osohq.com/api/authorize_query \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "query": { "actor_type": "<string>", "actor_id": "<string>", "action": "<string>", "resource_type": "<string>", "resource_id": "<string>", "context_facts": [] }, "data_bindings": "<string>" } '
{ "sql": "<string>" }
Fetches a query that can be run against your database to determine whether an actor can perform an action on a resource.
Requires an API key to access. Signup at https://ui.osohq.com/
Show child attributes
Was this page helpful?