Skip to main content
GET
/
v2
/
organizations
/
{orgId}
/
attributes
/
assignments
/
{userId}
/
history
Get attribute assignment history for a user
curl --request GET \
  --url https://api.cal.com/v2/organizations/{orgId}/attributes/assignments/{userId}/history \
  --header 'Authorization: <authorization>'
import requests

url = "https://api.cal.com/v2/organizations/{orgId}/attributes/assignments/{userId}/history"

headers = {"Authorization": "<authorization>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: '<authorization>'}};

fetch('https://api.cal.com/v2/organizations/{orgId}/attributes/assignments/{userId}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cal.com/v2/organizations/{orgId}/attributes/assignments/{userId}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.cal.com/v2/organizations/{orgId}/attributes/assignments/{userId}/history"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "<authorization>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.cal.com/v2/organizations/{orgId}/attributes/assignments/{userId}/history")
.header("Authorization", "<authorization>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.cal.com/v2/organizations/{orgId}/attributes/assignments/{userId}/history")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'

response = http.request(request)
puts response.read_body
{
  "status": "success",
  "data": {
    "userId": 5,
    "membershipId": 42,
    "auditLogs": [
      {
        "id": "018ff5cd-6dc4-7d57-bcbc-374702ca8b38",
        "timestamp": "2026-06-04T10:00:00.000Z",
        "source": "API_V2",
        "actor": {
          "type": "USER",
          "displayName": "Alice Admin",
          "displayEmail": "alice@example.com",
          "displayAvatar": "https://example.com/avatar.png"
        },
        "sourceContext": {
          "kind": "API_V2"
        },
        "changes": [
          {
            "type": "VALUE_CHANGED",
            "attribute": {
              "id": "attr_dept",
              "slug": "department",
              "name": "Department",
              "type": "SINGLE_SELECT"
            },
            "previous": {
              "optionId": "opt_engineering",
              "optionSlug": "engineering",
              "value": "Engineering",
              "weight": 100
            },
            "current": {
              "optionId": "opt_engineering",
              "optionSlug": "engineering",
              "value": "Engineering",
              "weight": 100
            }
          }
        ],
        "hasError": true
      }
    ],
    "hasMore": true,
    "nextCursor": "018ff5cd-6dc4-7d57-bcbc-374702ca8b38"
  }
}

Headers

Authorization
string
required

value must be Bearer <token> where <token> is api key prefixed with cal_

Path Parameters

orgId
number
required
userId
number
required

Query Parameters

limit
number
default:25

Maximum number of audit log entries to return.

Required range: 1 <= x <= 50
cursor
string<uuid>

Cursor from the previous response.

Example:

"018ff5cd-6dc4-7d57-bcbc-374702ca8b38"

Response

200 - application/json
status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object
required

The attribute assignment history response payload.