# API call for search query

**URL:** <https://developer.sailpoint.com/discuss/t/api-call-for-search-query/12676>\
**Category:** SHF Discussion and Questions\
**Tags:** apis, identity-security-cloud, search\
**Created:** [June 16, 2023, 6:04pm UTC](https://developer.sailpoint.com/discuss/t/api-call-for-search-query/12676 "2023-06-16T18:04:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandramohan27](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@chandramohan27](https://developer.sailpoint.com/discuss/u/chandramohan27)\
**Post date:** [June 16, 2023, 6:04pm UTC](https://developer.sailpoint.com/discuss/t/api-call-for-search-query/12676/1 "2023-06-16T18:04:56Z")

</div>

Hi,

Could someone help me with document / sample API call to invoke a search query from postman.

I have a search query “11d7a51eab4b42248f481145939fb6ae AND operation:ACTIVATE” but i want invoke it through API call

---

<div class="post-metadata">

**Author:** ![adunker](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/adunker/32/2664_2.png) [@adunker](https://developer.sailpoint.com/discuss/u/adunker)\
**Post date:** [June 16, 2023, 9:37pm UTC](https://developer.sailpoint.com/discuss/t/api-call-for-search-query/12676/2 "2023-06-16T21:37:53Z")

</div>

Hi Chandra - the search API has a lot of options in the request body - but we can simplify it. You’ll want it to look something like this:

Search API docs: [search-post | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/v3/search-post)  
TYPE: POST  
URL:  
`https://[YOUR TENANT HERE].api.identitynow.com/v3`  
BODY:

```auto
{
    "query": {
        "query": "11d7a51eab4b42248f481145939fb6ae AND operation:ACTIVATE"
    }
}

```

And you’ll need to setup your bearer token in the Authorization tab. The easiest way is to use the Postman collection: [Official: IdentityNow Postman Workspace - IdentityNow (IDN) / Show and Tell - SailPoint Developer Community Forum](https://developer.sailpoint.com/discuss/t/official-identitynow-postman-workspace/6153)

It would look something like this:  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/7/7c138ed135f2b983b4e0e89b959c176ae2910986.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [August 15, 2023, 9:38pm UTC](https://developer.sailpoint.com/discuss/t/api-call-for-search-query/12676/3 "2023-08-15T21:38:40Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
