For the complete documentation index, see llms.txt. This page is also available as Markdown.

List user field history

Returns a paginated list of user permission field change records. Each record captures a single field change — the field name, its new value, the source of the change, and when it happened.

Tracked fields: email_allowed, sms_allowed, call_allowed, whatsapp_allowed.

Results are ordered by created_date descending by default (most recent first). Use ?sort=created_date for ascending or ?sort=-created_date for descending.

get
/users/field-history/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
user_idintegerOptional

Filter by the exact user identifier.

Example: 1001
field_namestringOptional

Filter by the exact field name (e.g. email_allowed, sms_allowed).

Example: email_allowed
sourcestring · enumOptional

The source that triggered the permission field change.

Example: iysPossible values:
Responses
200

A paginated list of user field history records.

application/json

A paginated list of user field history records.

countintegerOptional

Total number of records matching the request.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/users/field-history/
GET /api/v1/remote/1/users/field-history/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 42,
      "user": 1001,
      "field_name": "email_allowed",
      "value": "True",
      "source": "user",
      "created_date": "2024-03-15T10:23:45Z"
    }
  ]
}

Last updated

Was this helpful?