Get Directory Member History
Get version history for a directory member (contact). Version 1 is always the oldest; order_by_direction only controls response order.
/api/v1/directory_members/{member_id}/historyAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
member_id
integer
path
required
Query parameters
page
integer
query
optional
Page number (0-based)
0Minimum 0Example 0limit
integer
query
optional
Items per page
25Minimum 1Maximum 100Example 25order_by_direction
enum<string>
query
optional
Sort by oldest first (asc) or newest first (desc). Version 1 is always the oldest.
["asc","desc"]Default ascExample ascresponse_format
enum<string>
query
optional
Directory response format: normalized (default) strips @hours and formats times; raw returns stored @hours values.
["normalized","raw"]Default normalizedExample normalizedResponses
200Successful Response
application/json
response
ListResponse_DirectoryMemberHistoryResponse_
required
5 fields
itemsDirectoryMemberHistoryResponse[]requiredList of items returned from the query
Item schema
itemsDirectoryMemberHistoryResponserequiredAPI response for one version in a directory member's history (GET /{member_id}/history).
10 fields
directory_member_idintegerrequiredID of the directory member
versionintegerrequired1-based ordinal in the history list (1 = oldest)
timestampstring (date-time)requiredWhen this version was recorded
namestringrequiredName at this version
typestringrequiredType at this version
extensionsDirectoryExtension[]optionalExtensions at this version
Item schema
itemsDirectoryExtensionrequired2 fields
namestringrequiredDirectory extension name
numbersDirectoryExtensionNumber[] | nulloptionalDirectory extension numbers.
Item schema
itemsDirectoryExtensionNumberrequired3 fields
numberstringrequiredPhone number or SIP URI
rulesobject[] | nulloptionalDirectory extension number rules. To include a language rule, use key "language" with a language code value.
Item schema
itemsobjectrequired1 field
{key}stringoptionalsip_transfer_modeenum<string> | nulloptionalHow to perform the SIP transfer, INVITE or REFER.
["refer","invite"]contact_tagsobjectoptionalContact tags at this version
1 field
{key}string[]optionalItem schema
itemsstringrequireduser_emailstringrequiredUser who made the change
commentsstring | nulloptionalOptional comment for this version
operationstring | nulloptionalWhat produced this row: create, update, delete, restore, bulk_load. Null for rows created before this field existed.
pageintegerrequiredThe page number of the results (0-based)
page_sizeintegerrequiredThe number of items returned per page
total_pagesinteger | nulloptionalThe total number of pages of results given the indicated page size
total_countinteger | nulloptionalThe total number of items returned from the query
Response example
{
"items": [
{
"directory_member_id": 0,
"version": 0,
"timestamp": "string",
"name": "string",
"type": "string",
"extensions": [
{
"name": "string",
"numbers": "string"
}
],
"contact_tags": "string",
"user_email": "string",
"comments": "string",
"operation": "string"
}
],
"page": 0,
"page_size": 0,
"total_pages": "string",
"total_count": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
