Skip to main content

Exposure Profiles API

Manage data access profiles.

Endpoints

POST /exposure-profiles

POST Create an exposure profile.

curl -X POST "https://api.ofself.ai/api/v1/exposure-profiles" \
-H "X-API-Key: your-key" \
-H "X-User-ID: user-123" \
-H "Content-Type: application/json" \
-d '{
"name": "Work Data Only",
"description": "Share work notes and documents",
"scope": {
"node_types": ["note", "document"],
"tag_ids": ["tag_work"],
"exclude_tag_ids": ["tag_private"],
"permissions": ["read"]
}
}'

Scope Options:

FieldTypeDescription
node_typesarrayOnly these node types
tag_idsarrayOnly nodes with these tags
exclude_tag_idsarrayExclude nodes with these tags
permissionsarrayread, write, delete

GET /exposure-profiles

GET List exposure profiles.


GET /exposure-profiles/:profile_id

GET Get an exposure profile.


PUT /exposure-profiles/:profile_id

PUT Update an exposure profile.


DELETE /exposure-profiles/:profile_id

DELETE Delete an exposure profile.