Get a conversation custom attribute by ID
client.conversationAttributes.retrieve(stringid, ConversationAttributeRetrieveParams { featurebaseVersion } params?, RequestOptionsoptions?): ConversationAttribute { id, archived, dataType, 7 more }
GET/v2/conversation_attributes/{id}
Retrieves a single conversation custom attribute definition by its stable ID.
Use this when a conversation response contains a customAttributes key and you need the corresponding display name, identifier, data type, field subtype, or options.
Get a conversation custom attribute by ID
import Featurebase from 'featurebase-node';
const client = new Featurebase({
apiKey: process.env['FEATUREBASE_API_KEY'], // This is the default and can be omitted
});
const conversationAttribute = await client.conversationAttributes.retrieve(
'65d26304b2e65b1e1278170c',
);
console.log(conversationAttribute.id);{
"id": "65d26304b2e65b1e1278170c",
"archived": false,
"dataType": "number",
"fieldSubType": "number",
"identifier": "conversations.customFields.Minutes_to_Resolve",
"name": "Minutes to Resolve",
"object": "conversation_attribute",
"createdAt": "2026-06-09T16:00:19.000Z",
"options": [
{
"label": "Enterprise",
"id": "65d26304b2e65b1e1278170d"
}
],
"updatedAt": "2026-06-09T16:00:19.000Z"
}Returns Examples
{
"id": "65d26304b2e65b1e1278170c",
"archived": false,
"dataType": "number",
"fieldSubType": "number",
"identifier": "conversations.customFields.Minutes_to_Resolve",
"name": "Minutes to Resolve",
"object": "conversation_attribute",
"createdAt": "2026-06-09T16:00:19.000Z",
"options": [
{
"label": "Enterprise",
"id": "65d26304b2e65b1e1278170d"
}
],
"updatedAt": "2026-06-09T16:00:19.000Z"
}