Check out our upcoming events and meetups! View events →
Returns detailed metadata for a specific record type, including relationships and examples.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.sessionAnalysis.metadata.retrieveRecordType('record_type');
console.log(response.aliases);{
"record_type": "<string>",
"aliases": [
"<string>"
],
"product": "<string>",
"event": "<string>",
"child_relationships": [
{
"relationship_type": "<string>",
"via": {
"local_field": "<string>",
"parent_field": "<string>"
},
"cost_rollup": true,
"traversal_enabled": true,
"description": "<string>",
"child_product": "<string>",
"child_event": "<string>",
"child_record_type": "<string>"
}
],
"parent_relationships": [
{
"relationship_type": "<string>",
"via": {
"local_field": "<string>",
"parent_field": "<string>"
},
"cost_rollup": true,
"traversal_enabled": true,
"description": "<string>",
"parent_product": "<string>",
"parent_event": "<string>",
"parent_record_type": "<string>"
}
],
"examples": {},
"meta": {
"total_children": 123,
"total_siblings": 123,
"total_parents": 123,
"max_recommended_depth": 123
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The record type identifier (e.g. "call-control").
Record type metadata
Show child attributes
Show child attributes
Example queries and responses for this record type.
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const response = await client.sessionAnalysis.metadata.retrieveRecordType('record_type');
console.log(response.aliases);{
"record_type": "<string>",
"aliases": [
"<string>"
],
"product": "<string>",
"event": "<string>",
"child_relationships": [
{
"relationship_type": "<string>",
"via": {
"local_field": "<string>",
"parent_field": "<string>"
},
"cost_rollup": true,
"traversal_enabled": true,
"description": "<string>",
"child_product": "<string>",
"child_event": "<string>",
"child_record_type": "<string>"
}
],
"parent_relationships": [
{
"relationship_type": "<string>",
"via": {
"local_field": "<string>",
"parent_field": "<string>"
},
"cost_rollup": true,
"traversal_enabled": true,
"description": "<string>",
"parent_product": "<string>",
"parent_event": "<string>",
"parent_record_type": "<string>"
}
],
"examples": {},
"meta": {
"total_children": 123,
"total_siblings": 123,
"total_parents": 123,
"max_recommended_depth": 123
}
}