How to configure API key in Custom action flow

Kri
Tera Guru

Hi,

I want to configure API key in custom action to set an integration outbound from snow to Jira. I created a Rest step in the Custom flow but not sure where to configure the API key. Can anyone help?

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Kri 

are you using JIRA spoke for this?

check docs

Set up the Jira spoke for Jira Cloud 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

No, I'm using custom action

Amit Verma
Kilo Patron
Kilo Patron

Hi @Kri 

 

If I understood your requirement correctly, you are making use of Rest Step within a flow action to make REST API call to Jira. If yes, have you explored the possibility of defining Credential Alias and defining the API Key as API Key Credentials within it. Refer below screenshot:

 

AmitVerma_0-1752138921495.png

 

AmitVerma_1-1752138936060.png

 

Alternatively, you can store the API Key within a Password2 type System Property, retrieve it by using 

gs.getProperty('name of the system property');

and set it to the request header.

AmitVerma_2-1752139113413.png

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.