The API Key will work with several scopes in the future, but currently, it supports the “Query” scope only.
Query scope represents that your API key can work with the query endpoint.
Query Endpoint
You can query your data with the help of this endpoint, as you did in Resmo Search UI. You just need to add your SQL to the request body.
Method: POST
Url: <your customer domain>/api/query
Headers:
Header Name | Header Value |
---|---|
Authorization | Bearer <your-api-key> |
Content-Type | application/json |
Field | Value |
---|---|
sql | sql string that you want to execute. Example: SELECT * FROM resmo_account |
curl --location --request POST '/api/query'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer <your-api-key>'
--data-raw '{"sql":"SELECT * FROM resmo_account"}'
- Go to your Settings page on Resmo.
- Click on Rest API Management from the left side panel.
3. Click the Add API Key button from the top right.
4. Name your API key and choose the query scope. Then, define an expiration date for your API key.
5. Hit the Add API Key button.
For support requests and troubleshooting, contact our team via live chat or email us at [email protected].