curl -u api_key equivalent

Hello,

I’ve been searching for a solution to this for some time now to how to pass an API key. The closest forum post I’ve found is:

The original post describes the same type of get request I’m trying to make. Here is my example:

curl  https://{site}/api/v2/items \
     -G  \
     -u {site_api_key}:\
     -d type[is]="widget" \
     --data-urlencode limit=2\
     

I think option 1) from Philipp is what I’m looking for. Unfortunately, the solution isn’t posted. Is there a way to do this in GET Request or HTTP Retriever?

Or @qqilihq, can you share the ready-to-use example you referred to?

All the best.

Hi seth_ekc,

this is an “HTTP Basic” authentication. You can do it with the HTTP Retriever as follows:

Hope that helps.

1 Like

Thank you. It’s been a crazy busy week, so I haven’t had a chance to try this yet, but will follow up when I do.

1 Like

@seth_ekc No worries. In case of any questions get back anytime! :+1: