POST
/
api
/
config
/
pii
/
tracing-allow-list
Enable logging of prompts and responses
curl --request POST \
  --url https://app.traceloop.com/api/config/pii/tracing-allow-list \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "associationPropertyAllowList": {}
}'
By default, all prompts and responses are logged. If you want to disable this behavior by following this guide, you can selectively enable it for some of your users with this API.

Request Body

associationPropertyAllowList
Associated Property Object
The list of association properties (like {userId: "123"}) that will be allowed to be logged.
Example:
{
  "associationPropertyAllowList": [
    {
      "userId": "123"
    }
  ]
}