Are you receiving SNAP/EBT benefits? The Expensify.org/SNAP-VAX campaign is live and accepting new members. Learn more about receiving $50 for submitting a SNAP receipt and $50 for getting your COVID-19 vaccine here and join today!

User Not Authorized while trying policyList in API

YuvalPapaya
YuvalPapaya Expensify Customer Posts: 2

My user is defined as Policy Admin.

This is the request i'm using:

curl --location --request POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
--form 'requestJobDescription="{
        \"type\":\"get\",
        \"credentials\":{
            \"partnerUserID\": \"aa_yuvalgi_papayaglobal_com\",
            \"partnerUserSecret\": \"-----------------\"
        },
        \"inputSettings\":{
            \"type\":\"policyList\",
            \"adminOnly\":true,
            \"userEmail\":\"[email protected]\"
        }
    }"'

I'm getting:

{"responseMessage":"Not authorized to authenticate as user [email protected]","responseCode":401}

What am I doing wrong?

Answers