> For the complete documentation index, see [llms.txt](https://docs.alemba.com/asm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.alemba.com/asm/asm-hermes/integrate/apis/asm-api-quick-reference-guide/search-for-existing-calls.md).

# Search for Existing Calls

## ASM API Quick Reference Guide <a href="#asmapiquickreferenceguide" id="asmapiquickreferenceguide"></a>

### Searching for Existing Calls <a href="#searchingforexistingcalls" id="searchingforexistingcalls"></a>

1. In Postman, select 'New' in the top left-hand corner.&#x20;
2. Select HTTP from the dialogue window and give the request the name of **Get Call List**

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2F4HE8aiVjSktIioIofZkR%2Fimage.png?alt=media&amp;token=3c368f81-3fc1-4a3d-b8f8-77b165bb842e" alt=""><figcaption></figcaption></figure>

3. Set the method to Get and the URL will be as follows, you have two options:

   Option 1: use the system variable for your base system url: `{{SystemURLTest}}/alemba.api/api/v2/call`

   Option 2: write the full base url: `https://<yourservername>/<yourasmsystemname>/alemba.api/api/v2/call`
4. Click the Authorization tab.
5. Set **Type** as **No Auth**

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2FChO6AKNqHf9q4QB6FTXW%2Fimage.png?alt=media&amp;token=4e711b28-c3bb-411a-b910-cee6cd7b6a6e" alt=""><figcaption></figcaption></figure>

6. Click **Headers** and add the following lines

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Key</td><td valign="top">Value</td></tr><tr><td valign="top">Content-Type</td><td valign="top">Application/json</td></tr><tr><td valign="top">Authorization</td><td valign="top">Bearer {{Login_Token}}</td></tr></tbody></table>

{% hint style="danger" %}

1. **{{Login\_Token}}** is the name of the environment variable we created earlier. This can be replaced with the actual access\_token value obtained, e.g. Bearer awerff32h347hb4tgb34&#x20;

2. The space between Bearer and the {{Login\_Token}}/access\_token is intentional and REQUIRED
   {% endhint %}

3. Verify the Headers tab appears as follows

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2F6Q0JMWhkTGT3Lp4aue0Z%2Fimage.png?alt=media&amp;token=64deb488-24fd-4898-8a35-563f6fc805b5" alt=""><figcaption></figcaption></figure>

8. Send the request to get a list of calls.  You will get a “results” array as per below. An array is a list of objects in JSON

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2FhJECN1EIC9Q9e34eTdHj%2Fimage.png?alt=media&amp;token=993b5c09-ff4a-4ea2-8f3e-196fbd8ee500" alt=""><figcaption></figcaption></figure>

OPTIONAL: You can now make a note of a call number from the result and update the CallRef variable by&#x20;

1. Access Environments on left hand menu
2. Select your Environment&#x20;
3. Fill a Current Value for Call Ref, as per below:

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2FuuN7FX3JRfVBUkGxFj4l%2Fimage.png?alt=media&amp;token=ccd1eefc-50c0-4661-b413-5998149cf76d" alt=""><figcaption></figcaption></figure>

4. Click save in the top right hand corner of your screen, to save the new variable

<figure><img src="https://1375663122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhlW9jKl7dcDggHAPhNU9%2Fuploads%2FO9B0ruCXPVAA9vk1V69y%2Fimage.png?alt=media&amp;token=89925f98-f718-4ab2-b55c-23f3cdd903df" alt=""><figcaption></figcaption></figure>
