Unable to use coder API endpoints

Hi, we installed coder on a k8s cluster and have deployed it behind a OIDC provider. We were trying to list few workspaces using the coder APIs. However, when I run the list workspace curl:
curl http://<coderIP>/api/v2/workspaces?q=owner:me \
-H "Coder-Session-Token: <your-token>"

I get the error
{"message":"You are signed out or your session has expired. Please sign in again to continue.","detail":"Invalid API key format: incorrect amount of API key parts, expected 2 got 1"}

Is there any extra flag to be passed for the curl, if OIDC is involved?
Was this page helpful?