API guide
Data Sharing API
Data Sharing API 管理匿名化数据共享与用户偏好。
Path: /api/v1/data-sharing
Format: AI-first docs
信息
Contract-backed page
这一页直接从当前 OpenAPI 契约生成摘要,用来保证文档路径和正式接口保持一致。
GET /api/v1/data-sharing
Get data sharing preferences
Required scopes
read:data_sharing
Request
- no extra request parameters
Responses
- 200: OK
- 401:
- 403:
- 429:
- 500:
Errors
none documented
Examples
Code sample (curl)
1
curl "https://api.profileclaw.com/api/v1/data-sharing" -H "Authorization: Bearer $PROFILECLAW_API_KEY"PUT /api/v1/data-sharing
Update data sharing preferences
At least one boolean preference must be provided. Unspecified fields keep their previous value.
Required scopes
write:data_sharing
Request
- request body available
Responses
- 200: OK
- 400: Bad request
- 401:
- 403:
- 429:
- 500:
Errors
data_sharing.no_preferences_provided
Examples
Code sample (curl)
1
curl -X PUT "https://api.profileclaw.com/api/v1/data-sharing" -H "Authorization: Bearer $PROFILECLAW_API_KEY" -H "Content-Type: application/json" -d '{"shareAssessmentResults":true}'Related surfaces
Use these surfaces when you need deeper inspection or automation.
