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:
| Field | Type | Description |
|---|---|---|
node_types | array | Only these node types |
tag_ids | array | Only nodes with these tags |
exclude_tag_ids | array | Exclude nodes with these tags |
permissions | array | read, 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.