Skip to main content
POST
/
v1
/
users
/
{user_id}
/
browser
/
contexts
/
{name}
/
grants
Grant context access
curl --request POST \
  --url https://api.usenaive.ai/v1/users/{user_id}/browser/contexts/{name}/grants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "grantee_id": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Workspace API key. Create one via the dashboard or POST /v1/auth/keys.

Path Parameters

user_id
string
required

Tenant user UUID, or default / me for the operator's default user.

name
string
required

Body

application/json
grantee_type
enum<string>
required
Available options:
agent,
role
grantee_id
string
required

Response

Granted.

The response is of type object.