Overview
PUT/account/privacyaccount

Set one card row's audience (upsert; PUBLIC/HUB only, 0 = only-me)

Replace a record in privacy.

Auth: bearerAuth — calls run as the authenticated user.

Request body

application/json · optional

  • targetTable"avatar" | "social_links" | "addresses" | "contact_methods"
  • targetIdstring
  • audienceMaskinteger

    Bitmask of audiences: 1=PUBLIC, 2=HUB (or their OR, 3). 0 = only-me. TEAM/ORG/AI bits are rejected with 400.

Example
{
  "targetTable": "avatar",
  "targetId": "string",
  "audienceMask": 0
}
Responses
200

The stored grant

  • targetTable"avatar" | "social_links" | "addresses" | "contact_methods"
  • targetIdstring
  • audienceMaskinteger
Example
{
  "targetTable": "avatar",
  "targetId": "string",
  "audienceMask": 0
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X PUT "https://api.agenticdeveloperhub.com/account/privacy" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "targetTable": "avatar",
  "targetId": "string",
  "audienceMask": 0
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/account/privacy", {
  method: "PUT",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"targetTable\": \"avatar\",\n  \"targetId\": \"string\",\n  \"audienceMask\": 0\n}",
});
const data = await res.json();