# Work with SessionId in API call

**URL:** <https://community.parabola.io/t/work-with-sessionid-in-api-call/1168>\
**Category:** Ask a question\
**Tags:** Building-Flows, Using-APIs\
**Created:** [October 13, 2020, 9:12am UTC](https://community.parabola.io/t/work-with-sessionid-in-api-call/1168 "2020-10-13T09:12:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Whoon\_Oisterwijk](https://avatars.discourse-cdn.com/v4/letter/w/779978/32.png) [@Whoon\_Oisterwijk](https://community.parabola.io/u/Whoon_Oisterwijk)\
**Post date:** [October 13, 2020, 9:12am UTC](https://community.parabola.io/t/work-with-sessionid-in-api-call/1168/1 "2020-10-13T09:12:23Z")

</div>

I need to use a sessionId when I use an API call. The sessionId is generated with a link (that is always the same) and gives this information for example:  
{“errorMessage”:null,“sessionId”:“659d50046428”}

[https://webservice.app4sales.net/App4SalesServices.svc/Rest/GetAllItems/\*\*\*\*\*\*/nl\_nl](https://webservice.app4sales.net/App4SalesServices.svc/Rest/GetAllItems/ ****** /nl_nl)

How can I get the sessionId from the first call to the \*\*\*\*\*\* on the second call?

---

<div class="post-metadata">

**Author:** ![sachi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.parabola.io/sachi/32/10_2.png) [@sachi](https://community.parabola.io/u/sachi)\
**Post date:** [October 13, 2020, 7:26pm UTC](https://community.parabola.io/t/work-with-sessionid-in-api-call/1168/2 "2020-10-13T19:26:10Z")

</div>

Hi @Whoon_Oisterwijk - It sounds like you’ll want to use our [Enrich with an API step](https://parabola.io/transforms/api-enrichment) for this. This step allows you to pass a variable returned in a previous API call to this step.

You’ll want to expand your returned JSON data to get `sessionId` values into it’s own column.

Then, in the `Enrich with an API` step, you can configure your API endpoint URL to be:  
`https://webservice.app4sales.net/App4SalesServices.svc/Rest/GetAllItems/{sessionId}/nl_nl`  
You’ll see that I’m passing the variable from the `sessionId` column as part of my endpoint URL.

Let me know if that works!

---

<div class="post-metadata">

**Author:** ![Whoon\_Oisterwijk](https://avatars.discourse-cdn.com/v4/letter/w/779978/32.png) [@Whoon\_Oisterwijk](https://community.parabola.io/u/Whoon_Oisterwijk)\
**Post date:** [October 14, 2020, 12:43pm UTC](https://community.parabola.io/t/work-with-sessionid-in-api-call/1168/3 "2020-10-14T12:43:50Z")

</div>

Thanks Sachi, I’ve got it working now 🙂
