I have APIKeyHeader description
Api is made with FastApi.
I've tried different ways like
curl -X GET -H "X-Access-Token: <token>" "https://example/v1/method/"
curl -X GET "https://example/v1/method/" --header '{"X-Access-Token": "token"}'
And the answer is the same: {"detail": "Could not validate credentials"} but I know that token is correct.
P.S. new to curl, please could you describe my mistake in detail