@Lo_ry96 ,
I am not sure where you are in the process. There are a large number of API resources with ThingWorx.
To get you started, In ThingWorx Composer, Navigate to Browse -> System -> Resources.
This will provide a list of the different aspects of ThingWorx. For example, select "ContentLoaderFunctions", If you go to the services, you are presented with a list of the available services, what they require as inputs and want is returned.
Your description is very general.
My suggestion is to use the tool POSTMAN, (or similar) This tool provides a great interface to work out the calling sequence and verify the returned values are what is expected and desired. It also provides better information on errors when the calling sequence is not quite correct.
Post a more specific question and I or someone in the community may be able to direct you to the proper function to all and how to process the results.
HTH
Pehowe