Skip to main content
POST
/
authorize_resources
cURL
curl --request POST \
  --url https://api.osohq.com/api/authorize_resources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "actor_type": "<string>",
  "actor_id": "<string>",
  "action": "<string>",
  "resources": [
    {
      "type": "<string>",
      "id": "<string>"
    }
  ]
}'
{
  "results": [
    {
      "type": "<string>",
      "id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Requires an API key to access. Signup at https://ui.osohq.com/

Body

application/json
actor_type
string
required
actor_id
string
required
action
string
required
resources
object[]
required
context_facts
object[]

Response

results
object[]
required