I want to use these api directly as a way for me to check the data;
api
method
…/api/query_results
POST
…/api/jobs/{query_hash}
GET
…/api/query_results/{query_result_id}
GET
But if don’t log in first, will get this message:
Couldn't find resource. Please login and try again
I would like to ask, how can I skip the login restrictions, so that other systems can directly use these three api, and the three api of his own web page are still restricted by the login status
Hi @jesse
I added headers
Authorization=Key {{user api_key}}
Accept=/
Content-Type=application/json
to request POST {{redash_url}}/api/query_results
but it not work, it still show error 404 ```
Couldn’t find resource. Please login and try again
max_age is not accepted when creating or modifying queries. That only matters when executing a query.
Your query has no name declaration. This will fail.
You did not include an Authorization header. This is why you receive a 404. Probably would be better to receive a 400, honestly, but that would actually reveal too much information (i.e. this resource exists but you can’t access it). The API simply returns a 404 if you aren’t authorised properly.
You’re using a GET request when a POST is required to create a new query.
Login or sign up disabled while the site is in read only mode