Question about using the <REST API> with auth: whe...
# announcements
n
Question about using the REST API with auth: when we try •
curl <https://our-api-host> -u secret_OurSecretValue:
we get the error
{"status":401,"message":"Format is Authorization: Bearer [token]"
and when we try •
curl <https://our-api-host> -H "Authorisation: Bearer secret_OurSecretValue"
we get the error
{"status":401,"message":"jwt malformed"}
Is there a special way we need to format the secret value? Our UI is behind SSO using Azure AD (if that matters at all for the API)
f
The REST API has a path prefix of
/api/v1
to work. So
Copy code
curl <https://our-api-host/api/v1> -u secret:
If you just hit the API host directly, it requires you to go through the normal SSO auth flow before using
👍 1
n
Got it, that was the issue. Thank you :)