Search history and suggestions
7 routes. Paths are relative to https://api.intersink.com/v1.
- GET/searchSearch
- POST/searchSave search
- GET/search/historyGet search history
- DELETE/search/historyDelete search history
- PATCH/search/keywords/{id}Set keyword status
- GET/search/suggestionsGet suggestions
- GET/search/trendingGet trending
Search
GET/search
Public: no sign-in needed.
Parameters
| Name | Type | Description |
|---|---|---|
| x-ref | string, header |
Response
200. The payload in data is not described in the spec yet.
Save search
POST/search
Needs a signed-in user (Bearer token or access_token cookie).
Request body application/json
| Field | Type | Description |
|---|---|---|
| queryrequired | string | At least 2 characters, at most 80 characters. |
| active_profile_id | string |
Response
201. The payload in data is not described in the spec yet.
Get search history
GET/search/history
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1, maximum 50. |
| active_profile_id | string, query | |
| scope | string, query | |
| x-ref | string, header |
Response
200. The payload in data is not described in the spec yet.
Delete search history
DELETE/search/history
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| x-ref | string, header |
Request body application/json
| Field | Type | Description |
|---|---|---|
| keyword_id | number | |
| active_profile_id | string | |
| match | string | |
| scope | string |
Response
200. The payload in data is not described in the spec yet.
Set keyword status
PATCH/search/keywords/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | number, path |
Response
200. The payload in data is not described in the spec yet.
Get suggestions
GET/search/suggestions
Public: no sign-in needed.
Parameters
| Name | Type | Description |
|---|---|---|
| qrequired | string, query | |
| limitrequired | string, query | |
| x-ref | string, header |
Response
200. The payload in data is not described in the spec yet.
Get trending
GET/search/trending
Public: no sign-in needed.
Parameters
| Name | Type | Description |
|---|---|---|
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1, maximum 50. |
| active_profile_id | string, query | |
| scope | string, query | |
| x-ref | string, header |
Response
200. The payload in data is not described in the spec yet.