--- title: "Associate Trace and TWAMP Sessions" slug: "associating-trace-and-twamp-sessions-1" tags: ["analytics 22.11", "PCA", "API", "TWAMP", "TWAMP Sessions"] updated: 2026-11-05T16:32:53Z published: 2026-11-05T16:32:53Z canonical: "docs.crossworkassurance.cisco.com/associating-trace-and-twamp-sessions-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Associate Trace and TWAMP Sessions In Cisco Crosswork Assurance, you can associate different types of sessions and then leverage a combined view. The first combination available for this special view was TWAMP and Traceroute. Currently this association is only can only be provisioned via APIs, but we'll work on building it into the UI soon. ![assocated sessions.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/assocated%20sessions.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A20%3A18Z&se=2026-12-01T01%3A20%3A18Z&sr=b&sp=r&sig=Zj%2BFGQlgU9WNsfQzCkkgndLMp3Vs7XqCu9p%2Bb0qE2u0%3D) See the following for more info on setting up traceroute sessions: - [Session Traceroute](/v1/docs/session-traceroute) - [Agent: trace- Configuration](/v1/docs/agent-trace-configuration) --- ## Associating via APIs **NOTE** Both sessions should already exist before proceeding with these instructions. Crosswork Assurance manages its inventory using an endpoint referred to as stitch-it. Head over to our API page to check out the spec and optionally import the OpenAPI spec into your favorite tool. [https://api.accedian.io/session-stitchit.html](https://api.accedian.io/session-stitchit.html) We're going to need to follow the below steps to link the TWAMP and traceroute sessions. 1. Obtain the asset ID of the sessions 2. Add the traceroute session/object association to the TWAMP object 3. Verify the association ### Step 1 - Obtain asset IDs for sessions to be associated The asset ID used for the inventory is different from the Object ID that you may be familiar with, but the API supports filtering with object name and object id parameters so that's the easiest way we've found to navigate around here. - [Reference API link](https://api.accedian.io/session-stitchit.html#tag/v1/paths/~1api~1v1~1stitchit~1monitoredObjects/get) - Target - {{baseUrl}}/v1/stitchit/monitoredObjects?objectId=uuid here **NOTE** If you're doing this by hand, a good short cut is to navigate to the session detail view of each of them via the UI to grab the object ID out of the URL. Then use that as the query param. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-3T6RB5TG.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A20%3A18Z&se=2026-12-01T01%3A20%3A18Z&sr=b&sp=r&sig=koUbks7DZ1KZUA8S8ev4CksWOi6zyXqCPtPInoxfkzg%3D) **Example of TWAMP session** In this example the asset ID is 0x637. ``` { "data": [ { "id": "0x637", "type": "monitoredObject", "attributes": { "actuatorName": "", "actuatorType": "accedian-vnid", "createdTimestamp": "2022-08-23T18:32:34Z", "destinationLocation": { "latitude": 52.13267, "longitude": -106.66871 }, "lastModifiedTimestamp": "2022-11-08T18:39:41Z", "meta": { "region": "central", "source_city": "calgary" }, "objectId": "32558-F648E24B-AB01-4B95-8CC6-1AB6611FCCC0", "objectName": "E20767_JKL_2_ENB_CS6", "objectType": "twamp-sf", "reflectorName": "", "reflectorType": "unknown", "reportingMonitoredObjectId": "32558-F648E24B-AB01-4B95-8CC6-1AB6611FCCC0", "sourceLocation": { "latitude": 51.048363, "longitude": -114.06374 }, "tenantId": "", "topology": [ "calgary", "rtr0110", "rtr0110", "Saskatoon" ] } } ] } ``` **Example of Traceroute session** In this example the asset ID is 0x71d0. ``` { "data": [ { "id": "0x71d0", "type": "monitoredObject", "attributes": { "actuatorName": "", "actuatorType": "accedian-vnid", "createdTimestamp": "2022-10-12T21:21:45Z", "lastModifiedTimestamp": "2022-10-12T21:21:45Z", "objectId": "4af15733-0018-4754-8f67-eb577e38c458", "objectName": "driver4-trace-accedian.com", "objectType": "trace", "reflectorName": "", "reflectorType": "", "reportingMonitoredObjectId": "4af15733-0018-4754-8f67-eb577e38c458", "tenantId": "", "topology": [] } } ] } ``` ### Step 2 - Associate path-trace session to TWAMP session Now that you have both IDs, you need to add association to the TWAMP session via a patch call like the following - [Reference API link](https://api.accedian.io/session-stitchit.html#tag/v1/paths/~1api~1v1~1stitchit~1monitoredObjects~1%7Buid%7D/patch) - Target - {{baseUrl}}/v1/stitchit/monitoredObjects/ insert twamp id here ``` { "data": { "associatedObjects": { "data": [ { "id": "{{insert traceroute Asset Id here}}", "type": "addMonitoredObject" } ] } } } ``` ### Step 3 - Verify the association Re-query the TWAMP session afterwards using the same call as in Step 1 to check that there is now an association! ``` { "data": [ { "id": "0x637", "type": "monitoredObject", "attributes": { "actuatorName": "", "actuatorType": "accedian-vnid", "associatedObjects": [ { "id": "0x71d0", "type": "monitoredObject", "attributes": { "actuatorName": "", "actuatorType": "accedian-vnid", "createdTimestamp": "2022-10-12T21:21:45Z", "lastModifiedTimestamp": "2022-10-12T21:21:45Z", "objectId": "4af15733-0018-4754-8f67-eb577e38c458", "objectName": "driver4-trace-accedian.com", "objectType": "trace", "reflectorName": "", "reflectorType": "", "reportingMonitoredObjectId": "4af15733-0018-4754-8f67-eb577e38c458", "tenantId": "tenant uuid", "topology": null } } ], "createdTimestamp": "2022-08-23T18:32:34Z", "destinationLocation": { "latitude": 52.13267, "longitude": -106.66871 }, "lastModifiedTimestamp": "2022-11-08T18:39:41Z", "meta": { "region": "central", "source_city": "calgary" }, "objectId": "32558-F648E24B-AB01-4B95-8CC6-1AB6611FCCC0", "objectName": "E20767_JKL_2_ENB_CS6", "objectType": "twamp-sf", "reflectorName": "", "reflectorType": "unknown", "reportingMonitoredObjectId": "32558-F648E24B-AB01-4B95-8CC6-1AB6611FCCC0", "sourceLocation": { "latitude": 51.048363, "longitude": -114.06374 }, "tenantId": "tenant uuid", "topology": [ "calgary", "rtr0110", "rtr0110", "Saskatoon" ] } } ] } ``` --- ## Representation in Crosswork Assurance UI Once a path-trace session has been associated with a TWAMP session an extra tab will be available on the session details page. ![Untitled.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/Untitled%281%29.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A20%3A18Z&se=2026-12-01T01%3A20%3A18Z&sr=b&sp=r&sig=2nAHV1CylorKLo8%2B%2B%2BSR2V3wNk%2BpE0sH7YtI7oS%2BobA%3D) Data (specifically path changes) from the path-trace session results is integrated into the TWAMP session charts. ![Untitled 1.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/Untitled%201%281%29.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A20%3A18Z&se=2026-12-01T01%3A20%3A18Z&sr=b&sp=r&sig=VMyNFOZ0CRJEVmc90gUJheX7T1YK%2FsDa6jOnq9nbOAs%3D) --- **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)