After signing in, you can create credentials that can be used to call the Platform APIs.
Download OpenAPI specification:Download
Use the Adobe Experience Platform Query Service API to query Platform data with standard SQL. With this serverless tool, you can join any datasets in the Experience Platform Data Lake and capture the query results as a new dataset for use in reporting, Data Science Workspace, or for ingestion into Real-time Customer Profile.
Related Documentation:
Visualize API calls with Postman (a free, third-party software):
API paths:
Required headers:
Authorization
, x-gw-ims-org-id
, and x-api-key
. For more information on how to obtain these values, see the authentication tutorial.x-sandbox-name
whose value is the all-lowercase name of the sandbox the operation will take place in (for example, "prod"). See the sandboxes overview for more information.Content-Type
with a value of application/json
.API error handling:
You can now interact with the Experience Platform API endpoints directly from this API reference page. Get your authentication credentials and use the Try it functionality in the right rail. Note that by using this functionality, you are making real API calls. Keep this in mind when you interact with production sandboxes.
The queries endpoint uses standard SQL to query data held in Adobe Experience Platform. For example, you can join any number of datasets in the data lake and capture the results as a new dataset.
This request provides a list of queries for your organization.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "queries": [
- {
- "id": "0094d000-8062-4e6a-6fdb-05606704f08f",
- "request": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}, - "effectiveSQL": "SELECT SUM(test_segment.count_of_profiles) COUNT FROM acmesbox1.profile_agg.test_segment LEFT OUTER JOIN acmesbox1.profile_agg.adwh_dim_segments ON test_segment.segment_id = adwh_dim_segments.segment_id WHERE test_segment.segment_id = 67176434 and test_segment.merge_policy_id = 1914981602 and test_segment.date_key = '2022-11-09';",
- "isCTAS": false,
- "isInsertInto": false,
- "state": "SUCCESS",
- "created": "2022-11-09T18:45:31.256Z",
- "updated": "2022-11-09T18:45:31.256Z",
- "elapsedTime": 0,
- "rowCount": 0,
- "templateName": "Sample Query Template for ACME Data",
- "userId": "{USER_ID}",
- "client": "Acme",
- "errors": [
- {
- "code": 408,
- "message": "The server timed out waiting for the request",
- "errorType": "USER_ERROR"
}
], - "_links": {
- "soft_delete": {
- "method": "PATCH",
- "body": {
- "\"op\"": "\\\"soft_delete\\\""
}
}, - "cancel": {
- "method": "PATCH",
- "body": {
- "\"op\"": "\\\"cancel\\\""
}
}, - "referenced_datasets": [
- {
- "id": "5f7e5169ad81ea16bba6b222",
}
], - "created_dataset": {
- "id": "5f7e5169ad81ea16bba6b222",
}, - "schedule": {
- "id": "5f7e5169ad81ea16bba6b222",
- "method": "GET"
}, - "schedule_run": {
- "id": "5f7e5169ad81ea16bba6b222",
- "method": "GET"
}
}, - "version": 0
}
], - "_page": {
- "orderby": "-created",
- "start": "2021-12-06T22:00:17.362Z",
- "next": "2022-11-22T00:52:34.839Z",
- "property": "created>=2021-04-05T13:30:00Z,state==IN_PROGRESS",
- "count": 26
}, - "_links": {
}, - "version": 0
}
This request creates a new query configured by the values provided in the payload. The query required in the request body can be either an SQL statement or a template ID.
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Content-Type required | string The type of content being sent in the body of the request. The value should be 'application/json'. |
The request body for creating a query.
Query status
Bad request
Unauthorized
Internal server error
{- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}
{- "id": "0094d000-8062-4e6a-6fdb-05606704f08f",
- "request": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}, - "effectiveSQL": "SELECT SUM(test_segment.count_of_profiles) COUNT FROM acmesbox1.profile_agg.test_segment LEFT OUTER JOIN acmesbox1.profile_agg.adwh_dim_segments ON test_segment.segment_id = adwh_dim_segments.segment_id WHERE test_segment.segment_id = 67176434 and test_segment.merge_policy_id = 1914981602 and test_segment.date_key = '2022-11-09';",
- "isCTAS": false,
- "isInsertInto": false,
- "state": "SUCCESS",
- "created": "2022-11-09T18:45:31.256Z",
- "updated": "2022-11-09T18:45:31.256Z",
- "elapsedTime": 0,
- "rowCount": 0,
- "templateName": "Sample Query Template for ACME Data",
- "userId": "{USER_ID}",
- "client": "Acme",
- "errors": [
- {
- "code": 408,
- "message": "The server timed out waiting for the request",
- "errorType": "USER_ERROR"
}
], - "_links": {
- "soft_delete": {
- "method": "PATCH",
- "body": {
- "\"op\"": "\\\"soft_delete\\\""
}
}, - "cancel": {
- "method": "PATCH",
- "body": {
- "\"op\"": "\\\"cancel\\\""
}
}, - "referenced_datasets": [
- {
- "id": "5f7e5169ad81ea16bba6b222",
}
], - "created_dataset": {
- "id": "5f7e5169ad81ea16bba6b222",
}, - "schedule": {
- "id": "5f7e5169ad81ea16bba6b222",
- "method": "GET"
}, - "schedule_run": {
- "id": "5f7e5169ad81ea16bba6b222",
- "method": "GET"
}
}, - "version": 0
}
This endpoint provides the query information that relates to the query ID provided in the request.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "id": "0094d000-8062-4e6a-6fdb-05606704f08f",
- "request": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}, - "effectiveSQL": "SELECT SUM(test_segment.count_of_profiles) COUNT FROM acmesbox1.profile_agg.test_segment LEFT OUTER JOIN acmesbox1.profile_agg.adwh_dim_segments ON test_segment.segment_id = adwh_dim_segments.segment_id WHERE test_segment.segment_id = 67176434 and test_segment.merge_policy_id = 1914981602 and test_segment.date_key = '2022-11-09';",
- "isCTAS": false,
- "isInsertInto": false,
- "state": "SUCCESS",
- "created": "2022-11-09T18:45:31.256Z",
- "updated": "2022-11-09T18:45:31.256Z",
- "elapsedTime": 0,
- "rowCount": 0,
- "templateName": "Sample Query Template for ACME Data",
- "userId": "{USER_ID}",
- "client": "Acme",
- "errors": [
- {
- "code": 408,
- "message": "The server timed out waiting for the request",
- "errorType": "USER_ERROR"
}
], - "_links": {
- "soft_delete": {
- "method": "PATCH",
- "body": {
- "\"op\"": "\\\"soft_delete\\\""
}
}, - "cancel": {
- "method": "PATCH",
- "body": {
- "\"op\"": "\\\"cancel\\\""
}
}, - "referenced_datasets": [
- {
- "id": "5f7e5169ad81ea16bba6b222",
}
], - "created_dataset": {
- "id": "5f7e5169ad81ea16bba6b222",
}, - "schedule": {
- "id": "5f7e5169ad81ea16bba6b222",
- "method": "GET"
}, - "schedule_run": {
- "id": "5f7e5169ad81ea16bba6b222",
- "method": "GET"
}
}, - "version": 0
}
This request cancels the execution of the query that relates to the query ID provided in the request.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Content-Type required | string The type of content being sent in the body of the request. The value should be 'application/json'. |
Use JSON Patch formatting to cancel or soft delete a query.
Success
Unauthorized
Not found
Failed
Internal server error
{- "op": "cancel"
}
This request lists the connection parameters used for the interactive interface.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Internal server error
{- "host": "acme-prod.platform-query.adobe.io",
- "port": 80,
- "username": "{USER_NAME}",
- "token": "NCSDFBRlhQRTdJWFVLR01RRjI3WUJRND09PT09PSIsInNpZCI6IjE2NfkwNTg3ODc4MDVfMzI2YWE0NfQtODFlYy00MWI4LWFlMjctNjU3MThhYjIxOGE5X3VlMSIsIm1vaSI6ImYwYjJjYjkxIiwicGJhIjoiTWVkU2VjTm9FVixMb3dTZWMiLCJleHBpcmVzX2luIjoiODY0MDAwMDAiLCJzY29wZSI6ImFiLm1hbmFnZSxhZGRpdGlvbmFsX2luZm8sYWRkaXRpb25hbhMS5hZG9iZWxvZ2luLmNvbS9pbXMvc2Vzc2lvbi92MS9ORGt6TkRZMU5HTXRaVEUxTVMwMFl6SXdMVGd6T0RBdFlURTBNVGhsTVRkbFlqRXpMUzFHUmpsQk1FTkVNell3T1VGRk56RXdNRUUwT1RWRFJETkFRV1J2WW1WSlJBXCJ9IiwiYXMiOiJpbXMtbmExIiwiYWFfaWQiOiJGRjlBMENEMzYwOUFFNzEwMEE0OTVDRDNAQWRvYmVJRCIsImN0cCI6MCwiZmciOiJXNjF9pbmZvLmpvYl9mdW5jdGlvbixhZGRpdGlvbmFsX2luZm8ucHJvamVjdGVkUHJvZHVjdENvbnRleHQsYWRkaXRpb25hbF9pbmZvLnJvbGVzLEFkb2JlSUQsYWRvYmVpby5hcHByZWdpc3RyeS5yZWFkLGFkb2JlaW9fYXBpLGF1ZGllbmNlbWFuYWdlcl9hcGksY3JlYXRpdmVfY2xvdWQsbXBzLG9wZW5pZCxyZWFkX29yZ2FuaXphdGlvbnMscmVhZF9wYyxyZWFkX3BjLmFjcCxyZWFkX3BjLmRtYV90YXJ0YW4sc2Vzc2lvbiIsImNyZWF0ZWRfYXQiOiIxNjY5MDY2NzY2MzY0In0.ZPNyd7JHKFRfrPFtGh8SqoGK7em0AT7WN_LK_DHGzPZr5WqGCcdUE-qEifOa-DqdiAUM2OCNHCXjzN1U9TZu7xs-AZYkz8dEjMQmDfxTcdCSJDHTPYVqWCxxARvw9hS62QhJsAsJ2b08reo0Q6qoTeRlXt1xyl4pVruf2rHmC_Dz8EkujrZsdmxTLgsIkCfYOXnKISVLrqAtQbmNwcSmhBmpmYCDVvU8v1qjrSb3Qd11nw56a5CLHJZQ2y8adm6TUsqtXyGZGSDvdYPbwCEMNHs_Uk9F1PaT51NH1AKKr6a4lA1E3SOUE6ithAytqcA4wyoLqz86PCPMmmbPG7_jEQeyJhbGciOiJSUzI1NiIsIng1dSI6Imltc19uYTEta2V5LWF0LTEuY2VyIiwia2lkIjoiaW1zX25hMS1rZXktYXQtMSIsIml0dCI6ImF0In0.eyJpZCI6IjE2NjkwNjY3NjYzNjRfNGFhN2NjZDMtYTdiNi00NGJkLWFjMzAtYjIyNGFkNDk3NDk4X3VlMSIsInR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJjbGllbnRfaWQiOiJleGNfYXBwIiwidXNlcl9pZCI6IkMzNUI3OEJFNjJERDVERDcwQTQ5NUU3NEBjMGZjNzc0NjYyZGQzODlkNDk1YzBjLmUiLCJzdGF0ZSI6IntcInNlc3Npb25cIjpcImh0dHBzOi8vaW1zLW5",
- "compressedToken": "Nkgt8JNlbpg32ldmZrPOK1lo1oc1kZQkgw6lingKlj_wt3DRUshQ2cS22qDaUhL9RX212pIl9sKtZh35x1o1aCacFvGsU3TJ-rSotX_Y3XqFK09qlw9qHlUrlmyhqxlK1u3txGAP90mPGTNmy4mUkmjjKbA8YMS8utyFmpNtxe161trlNJbnfhuWqWUMk9dJnbI1Szz68LrP6352vINTQaKvs0bF03u9MFz0F__cGsj79_9RxV.eNoBAAH__mTzcneyRyhUX6zxbRofEqqBiu3ptAE-1jfyyvwxxsz2a-VqhgnHVBPqhInzmvg6nYgFDNjgjRwl48zdVPU2bu8bPgGWJM_HRIzEJg38U3HQkiQx0z2FalgscQEb8PYUutkISbALCdm9PK3qNEOqqE3kZV7dccpeKVa7n9qx5gew8_BJLo62bHZsUy4LCJAn2Dl5yiElS66gLUG5jcHEpoQZqZmAg1b1PL9ao60m90HddZ8OemuQixyWUNsvGnZuk1LKrV8hmRkg73WD28AhDDR7P1JPRdT2k-dTR9QCiq-muFQNRN0jlBOorYQMranAOMMqC6s_OjwjzJpmzxu_4xE5BXzTeNqrVkrMSVeyUgoKNjI1U9JRqjAtBfIyc4vj8xINdbNTK3UTS3QN9ZJTi4CS2ZkpWCSBEpklJUCJxBKlWgC4CRff.eNplU39vmzAQ_S78DcSAY0OkSSWFdN1K2qbpj0yR0GE7qVOCEThJm6rjjSZJN6k1EvjevfM93x3vluTWwPIIiRAhlJCA4BwDUMZ44AAtiINxwR1gAXIK38fAcURxFOYb4Vm2pd9qYeKBMdG2uVYvojIoK6WodH44WryyHOraoJtWNEfsPOgPaThMiZ8k_SShKMZRP6X4jKEFoxQT4nMehJHJ1WeIucJEtxp0l-p9brUml1TV3BrMrWet63bQ68l161TgucBVIUq1lJXL1LqDeyd6b-v1xsnLfpzMvPFFpv9MUy-7Q2i2v9xdTZf76yTWs2mKsulzmU15OVul-6s772KyKodZOk6z_Wx3fT8ajffpLktTdD19SCbJOL59nGxn64dfk3hufRih0BqVJzmdCcc7j0ZRfM6TgKAoTqmHDnc29lneKb5MurLp2hog21osDf-RBMOffjx6uknp5dP974vsduTTWXyLfyxWV5L_veuH1Dyonwc-AcAEO6EnmIO9InRA-NQhfeqFUPjmFZ16t1bShC9Q4bMi6oC6AA",
- "version": 1,
- "dbName": "prod:all",
- "websoketHost": "query-service-interactive-ws-prod-va7.cloud.adobe.io"
}
Schedules let you perform SQL functions on a regular cadence from a start date to an end date or set a maximum number of runs.
This request provides a list of all query schedules for your organization.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "schedules": [
- {
- "id": "e95168d65a26abf00a495d82_28e74200-e3de-11e9-8f5d-7f27416c5f0d_sample_scheduled_query7omob151bm_birvwm",
- "userId": "{USER_ID}",
- "updatedUserId": "{USER_ID}",
- "state": "REGISTERING",
- "query": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}, - "schedule": {
- "schedule": "51 12 * * 1",
- "startDate": "2020-01-08T12:30:00.000Z",
- "endDate": "2021-01-08T12:30:00.000Z",
- "maxActiveRuns": 3
}, - "created": "2022-01-06T23:42:15.352Z",
- "updated": "2022-01-06T23:42:15.352Z",
- "_links": {
- "enable": {
- "method": "PATCH",
- "body": "{ \"op\": \"enable\" }"
}, - "disable": {
- "method": "PATCH",
- "body": "{ \"op\": \"disable\" }"
},
}
}
], - "_page": {
- "orderby": "-created",
- "start": "2021-12-06T22:00:17.362Z",
- "next": "2022-11-22T00:52:34.839Z",
- "property": "created>=2021-04-05T13:30:00Z,state==IN_PROGRESS",
- "count": 26
}, - "version": 0
}
This request creates a new schedule for the query provided in the request payload.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
The request body for creating a schedule.
required | object (query_def) The POST request payload sent to the |
required | object (schedules_request) Information on the cadence of the query schedule. |
Success
Bad request
Unauthorized
Internal server error
{- "query": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}, - "schedule": {
- "schedule": "51 12 * * 1",
- "startDate": "2020-01-08T12:30:00.000Z",
- "endDate": "2021-01-08T12:30:00.000Z",
- "maxActiveRuns": 3
}
}
{- "id": "e95168d65a26abf00a495d82_28e74200-e3de-11e9-8f5d-7f27416c5f0d_sample_scheduled_query7omob151bm_birvwm",
- "userId": "{USER_ID}",
- "updatedUserId": "{USER_ID}",
- "state": "REGISTERING",
- "query": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}, - "schedule": {
- "schedule": "51 12 * * 1",
- "startDate": "2020-01-08T12:30:00.000Z",
- "endDate": "2021-01-08T12:30:00.000Z",
- "maxActiveRuns": 3
}, - "created": "2022-01-06T23:42:15.352Z",
- "updated": "2022-01-06T23:42:15.352Z",
- "_links": {
- "enable": {
- "method": "PATCH",
- "body": "{ \"op\": \"enable\" }"
}, - "disable": {
- "method": "PATCH",
- "body": "{ \"op\": \"disable\" }"
},
}
}
This request lists the details for the schedule ID provided in the request path. It returns schedule information that includes the state, creation date, and updated date of the scheduled query, as well as the cadence and user ID who created the schedule.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "id": "e95168d65a26abf00a495d82_28e74200-e3de-11e9-8f5d-7f27416c5f0d_sample_scheduled_query7omob151bm_birvwm",
- "userId": "{USER_ID}",
- "updatedUserId": "{USER_ID}",
- "state": "REGISTERING",
- "query": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "templateId": "0094d000-9062-4e6a-8fdb-05606805f08f",
- "name": "Sample Query Template for ACME Data",
- "description": "This query returns all account details.",
- "insertIntoParameters": "sampling_test_geometrix_sitesection_copy",
- "ctasParameters": {
- "datasetName": "sampling_test_geometrix_sitesection_copy",
- "description": "Sampling of geometrix dataset.",
- "targetSchemaTitle": "Schema for sampling_test_geometrix_sitesection_copy"
}
}, - "schedule": {
- "schedule": "51 12 * * 1",
- "startDate": "2020-01-08T12:30:00.000Z",
- "endDate": "2021-01-08T12:30:00.000Z",
- "maxActiveRuns": 3
}, - "created": "2022-01-06T23:42:15.352Z",
- "updated": "2022-01-06T23:42:15.352Z",
- "_links": {
- "enable": {
- "method": "PATCH",
- "body": "{ \"op\": \"enable\" }"
}, - "disable": {
- "method": "PATCH",
- "body": "{ \"op\": \"disable\" }"
},
}
}
This request deletes the query schedule for the schedule ID provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Request failed
Unauthorized
Not found
Internal server error
This request updates the details of the schedule for the schedule ID provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Use JSON Patch formatting to update the schedule.
Array of objects (schedule_patch_operation) The payload necessary to update the query schedule. |
Success
Request failed
Unauthorized
Not found
Internal server error
{- "body": [
- {
- "op": "replace",
- "path": "/state",
- "value": "disable"
}
]
}
This request lists the run details for the schedule ID provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "runsSchedules": [
- {
- "id": "c2NoZFR1dGVjX18yMDIyLKAxLTIxVDE1OfQxOjAwKzAwOfAw",
- "created": "2022-01-21T15:41:00Z",
- "state": "SUCCESS",
- "externalTrigger": false,
- "_links": {
}, - "version": 1
}
], - "_page": {
- "orderby": "-created",
- "start": "2021-12-06T22:00:17.362Z",
- "next": "2022-11-22T00:52:34.839Z",
- "property": "created>=2021-04-05T13:30:00Z,state==IN_PROGRESS",
- "count": 26
}, - "version": 0
}
This request triggers an immediate run for the schedule ID provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Schedule is disabled. Immediate run cannot be triggered
Unauthorized
Not found
Internal server error
This request provides details about a specific run for a specific scheduled query. Both the schedule ID and the run ID must be provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "created": "2022-06-02T10:56:00Z",
- "state": "FAILED",
- "taskStatusList": [
- {
- "duration": 9,
- "endDate": "2022-06-03T11:04:03.236972Z",
- "state": "FAILED",
- "message": "Processing Failed",
- "startDate": "2022-06-03T11:03:54.095191Z",
- "taskId": "0tx2JTP56S"
}
], - "id": "a2NoKWR1dGVkX18yMDIyLJA2LTAyVDEwOfU2OfAwKzAwOfAw",
- "scheduleId": "fcbd04245fcec73j0a495fc9_51c9d32e-7654-466a-89b3-2c7654768ab1_d623a799_6jbb_4b13_aaf5_j8b4f728fc3cw6tmcbapd30tx2ktp58s_mqj4xg",
- "externalTrigger": false,
- "_links": {
}
}
This request cancels a specific run for a specific scheduled query. Both the schedule ID and the run ID must be provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Use JSON PATCH formatting to cancel a scheduled query run.
Success
Unauthorized
Not found
Internal server error
{- "op": "cancel"
}
Alert subscriptions allow you to receive notifications on the different statuses of both ad hoc and scheduled queries. Alerts can be received by email, within the Platform UI, or both.
This request provides a list of alerts.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Internal server error
{- "alerts": [
- {
- "id": "query_service_flow_run_failure-5cdc3bbe-750a-4d80-9c43-96e5e09f1a96",
- "alertType": "failure",
- "status": "enabled",
- "assetId": "6df22232-f427-4250-a4e1-43cd30990641",
- "_links": {
- "self": {
- "method": "GET"
}, - "subscribe": {
- "method": "POST",
- "body": "{\\\"assetId\\\": \\\"queryId/scheduleId\\\", \\\"alertType\\\": \\\"start/success/failure\\\", \\\"subscriptions\\\": {\\n\\\"emailIds\\\": [\\\"xyz@example.com\\\", \\\"abc@example.com\\\"], \\\"email\\\": true, \\\"inContext\\\": false}}"
}, - "patch_status": {
- "method": "PATCH",
- "body": "{ \\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/status\\\", \\\"value\\\": \\\"enable/disable\\\" }"
}, - "get_list_of_subscribers_by_alert_type": {
- "method": "GET"
}, - "delete": {
- "method": "DELETE"
}
}
}
], - "_page": {
- "orderby": "-created",
- "page": 1,
- "property": "status==enabled",
- "count": 26,
- "pageSize": 26
}, - "_links": {
}, - "version": 1
}
This request associates a query to a newly created alert using an assetId
property, and subscribes users to alerts for that query through the use of emailIds
.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-service-token | string An optional key used to authenticate access. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Create an alert for a particular query or schedule ID and subscribe emailId
s to different notification channels.
Success
Request failed
Unauthorized
Not found
Internal server error
{- "assetId": "a679dd0e-bcb2-4e69-a610-22d17ba98cac",
- "alertType": "failure",
- "subscriptions": {
- "emailIds": [
- "rrunner@adobe.com"
], - "inContextNotifications": true,
- "emailNotifications": true
}
}
{- "id": "a679dd0e-bcb2-4e69-a610-22d17ba98cac",
- "assetId": "4422fc69-eaa7-464e-945b-63cfd435d3d1",
- "alertType": "failure",
- "subscriptions": {
- "emailNotifications": [
- "rrunner@adobe.com"
], - "inContextNotifications": [
- "rrunner@adobe.com"
]
}, - "_links": {
- "self": {
- "method": "GET"
}, - "subscribe": {
- "method": "POST",
- "body": "{\\\"assetId\\\": \\\"queryId/scheduleId\\\", \\\"alertType\\\": \\\"start/success/failure\\\", \\\"subscriptions\\\": {\\n\\\"emailIds\\\": [\\\"xyz@example.com\\\", \\\"abc@example.com\\\"], \\\"email\\\": true, \\\"inContext\\\": false}}"
}, - "patch_status": {
- "method": "PATCH",
- "body": "{ \\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/status\\\", \\\"value\\\": \\\"enable/disable\\\" }"
}, - "get_list_of_subscribers_by_alert_type": {
- "method": "GET"
}, - "delete": {
- "method": "DELETE"
}
}
}
This request lists the alerts for the query ID or schedule ID provided in the request path. It returns subscription information that includes a list of all subscribed users by providing their email IDs and their chosen notification channels.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "alerts": [
- {
- "id": "query_service_flow_run_failure-5cdc3bbe-750a-4d80-9c43-96e5e09f1a96",
- "alertType": "failure",
- "status": "enabled",
- "assetId": "6df22232-f427-4250-a4e1-43cd30990641",
- "subscriptions": {
- "emailNotifications": [
- "rrunner@adobe.com, jsnow@adobe.com, keverdeen@adobe.com"
], - "inContextNotifications": [
- "jsnow@adobe.com, keverdeen@adobe.com"
]
}, - "_links": {
- "self": {
- "method": "GET"
}, - "subscribe": {
- "method": "POST",
- "body": "{\\\"assetId\\\": \\\"queryId/scheduleId\\\", \\\"alertType\\\": \\\"start/success/failure\\\", \\\"subscriptions\\\": {\\n\\\"emailIds\\\": [\\\"xyz@example.com\\\", \\\"abc@example.com\\\"], \\\"email\\\": true, \\\"inContext\\\": false}}"
}, - "patch_status": {
- "method": "PATCH",
- "body": "{ \\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/status\\\", \\\"value\\\": \\\"enable/disable\\\" }"
}, - "get_list_of_subscribers_by_alert_type": {
- "method": "GET"
}, - "delete": {
- "method": "DELETE"
}
}
}
]
}
This request lists the alerts and alert subscription information for the query ID and alert type provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Request failed
Unauthorized
No alert was found for the given assetId
.
Internal Server Error.
{- "alerts": [
- {
- "id": "a679dd0e-bcb2-4e69-a610-22d17ba98cac",
- "assetId": "6df22232-f427-4250-a4e1-43cd30990641",
- "alertType": "success",
- "status": "enabled",
- "subscriptions": {
- "emailNotifications": [
- "rrunner@adobe.com, jsnow@adobe.com, keverdeen@adobe.com"
], - "inContextNotifications": [
- "jsnow@adobe.com, keverdeen@adobe.com"
]
}, - "_links": {
- "self": {
- "method": "GET"
}, - "subscribe": {
- "method": "POST",
- "body": "{\\\"assetId\\\": \\\"queryId/scheduleId\\\", \\\"alertType\\\": \\\"start/success/failure\\\", \\\"subscriptions\\\": {\\n\\\"emailIds\\\": [\\\"xyz@example.com\\\", \\\"abc@example.com\\\"], \\\"email\\\": true, \\\"inContext\\\": false}}"
}, - "patch_status": {
- "method": "PATCH",
- "body": "{ \\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/status\\\", \\\"value\\\": \\\"enable/disable\\\" }"
}, - "get_list_of_subscribers_by_alert_type": {
- "method": "GET"
}, - "delete": {
- "method": "DELETE"
}
}
}
]
}
Delete a specific alert by providing either an alert type and a query ID or an alert type and a schedule ID in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Request failed
Unauthorized
No alert was found for the given assetId
and alertType
.
Internal Server Error.
{- "message": "Alert deleted successfully for assetId: 6df22232-f427-4250-a4e1-43cd30990641 and alertType: success",
- "statusCode": "200"
}
Update the status of an alert to either enable
or disable
by providing a query or schedule ID and an alert type in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Use JSON PATCH formatting to enable or disable an alert.
Success
Request failed
Unauthorized
No alert found for the assetId
and alertType
provided.
Internal server error
{- "op": "replace",
- "path": "/status",
- "value": "enable"
}
{- "id": "query_service_flow_run_success-4422fc69-eaa7-464e-945b-63cfd435d3d1",
- "assetId": "4422fc69-eaa7-464e-945b-63cfd435d3d1",
- "alertType": "start",
- "status": "enabled"
}
This request lists the alerts subscribed to by the email ID provided in the request path. The returned information includes the alert name, IDs, status, alert type, and notification channels.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Request failed
Unauthorized
Internal server error
{- "items": [
- {
- "name": "query_service_flow_run_success-8f057161-b312-4274-b629-f346c7d15c1f",
- "assetId": "6df22232-f427-4250-a4e1-43cd30990641",
- "status": "enabled",
- "alertType": "failure",
- "subscriptions": {
- "inContextNotifications": true,
- "emailNotifications": false
}, - "_links": {
- "self": {
- "method": "GET"
}, - "subscribe": {
- "method": "POST",
- "body": "{\\\"assetId\\\": \\\"queryId/scheduleId\\\", \\\"alertType\\\": \\\"start/success/failure\\\", \\\"subscriptions\\\": {\\n\\\"emailIds\\\": [\\\"xyz@example.com\\\", \\\"abc@example.com\\\"], \\\"email\\\": true, \\\"inContext\\\": false}}"
}, - "patch_status": {
- "method": "PATCH",
- "body": "{ \\\"op\\\": \\\"replace\\\", \\\"path\\\": \\\"/status\\\", \\\"value\\\": \\\"enable/disable\\\" }"
}, - "get_list_of_subscribers_by_alert_type": {
- "method": "GET"
}, - "delete": {
- "method": "DELETE"
}
}
}
], - "page": {
- "orderby": "-created",
- "page": 1,
- "property": "status==enabled",
- "count": 26,
- "pageSize": 26
}, - "_links": {
}, - "version": 1
}
Query templates let you create, store, and execute any query as an ad hoc or scheduled service.
This request provides a list of every query template.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "templates": [
- {
- "sql": "SELECT $key from $key1 where $key > $key2;",
- "name": "Sample template query",
- "id": "f7cb5155-29da-4b95-6131-6c5beadjde7f",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "updated": "2022-11-21T21:50:01.469Z",
- "lastUpdatedBy": "{USER_ID}",
- "userId": "{USER_ID}",
- "_links": {
- "self": {
- "method": "GET"
}, - "update": {
- "method": "PUT",
- "body": "{\\\"sql\\\" : \\\"new sql\\\", \\\"name\\\" : \\\"new name\\\"}"
}, - "delete": {
- "method": "DELETE"
}
}
}
], - "_page": {
- "orderby": "-created",
- "start": "2021-12-06T22:00:17.362Z",
- "next": "2022-11-22T00:52:34.839Z",
- "property": "created>=2021-04-05T13:30:00Z,state==IN_PROGRESS",
- "count": 26
}, - "_links": {
}, - "version": 0
}
This request creates a query template.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
The query template to be created.
Success
Unauthorized
Internal server error
{- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "name": "Test Parameterized Query"
}
{- "sql": "SELECT $key from $key1 where $key > $key2;",
- "name": "Sample template query",
- "id": "f7cb5155-29da-4b95-6131-6c5beadjde7f",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "updated": "2022-11-21T21:50:01.469Z",
- "lastUpdatedBy": "{USER_ID}",
- "userId": "{USER_ID}",
- "_links": {
- "self": {
- "method": "GET"
}, - "update": {
- "method": "PUT",
- "body": "{\\\"sql\\\" : \\\"new sql\\\", \\\"name\\\" : \\\"new name\\\"}"
}, - "delete": {
- "method": "DELETE"
}
}
}
This request retrieves the count of query templates.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "totalCount": 52,
- "version": 1
}
This request retrieves the query template for the template ID provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "sql": "SELECT $key from $key1 where $key > $key2;",
- "name": "Sample template query",
- "id": "f7cb5155-29da-4b95-6131-6c5beadjde7f",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "updated": "2022-11-21T21:50:01.469Z",
- "lastUpdatedBy": "{USER_ID}",
- "userId": "{USER_ID}",
- "_links": {
- "self": {
- "method": "GET"
}, - "update": {
- "method": "PUT",
- "body": "{\\\"sql\\\" : \\\"new sql\\\", \\\"name\\\" : \\\"new name\\\"}"
}, - "delete": {
- "method": "DELETE"
}
}
}
This request updates the query template for the template ID provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Query template to be created.
Success
Unauthorized
Internal server error
{- "sql": "SELECT $key FROM $key1 WHERE $key > $key2;",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "name": "Test Parameterized Query"
}
{- "sql": "SELECT $key from $key1 where $key > $key2;",
- "name": "Sample template query",
- "id": "f7cb5155-29da-4b95-6131-6c5beadjde7f",
- "queryParameters": {
- "key": "value",
- "key1": "value1",
- "key2": "value2"
}, - "updated": "2022-11-21T21:50:01.469Z",
- "lastUpdatedBy": "{USER_ID}",
- "userId": "{USER_ID}",
- "_links": {
- "self": {
- "method": "GET"
}, - "update": {
- "method": "PUT",
- "body": "{\\\"sql\\\" : \\\"new sql\\\", \\\"name\\\" : \\\"new name\\\"}"
}, - "delete": {
- "method": "DELETE"
}
}
}
This request deletes the query template for the template ID provided in the request path.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Success
Unauthorized
Not found
Internal server error
{- "message": "Deleted",
- "statusCode": 202
}
Query the accelerated store in a stateless manner to quickly return results based on aggregated data.
Run a query on accelerated store datasets by including either an SQL statement or a template ID within the request payload.
Authorization required | string The access token which can be copied from your Experience Platform integration, prefixed with "Bearer " (for example, |
x-gw-ims-org-id required | string The Organization ID which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-api-key required | string The API key which can be copied from your Experience Platform integration. For more information on how to obtain this value, visit the documentation covering making API calls in the authentication tutorial. |
x-sandbox-name required | string The name of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
Content-Type required | string The type of content being sent in the body of the request. The value should be 'application/json'. |
x-sandbox-id | string The unique identifier of the sandbox in which the operation will take place. See the sandboxes overview documentation for more information. |
x-request-id | string An optional header that serves as a tracking ID for the request. If one is not provided on the request, the server generates one automatically. |
User-Agent | string The type of the client making the HTTP request. |
Accept-Encoding | string This request header indicates the type of content encoding that the client can understand when consuming compressed response bodies. It is usually a compression algorithm. Accepted values include |
The request body to run a query on the accelerated store. The request accepts either a query string as sql
or the ID of a saved query as templateId
.
The query definition submitted to the query accelerated store.
Success
Unauthorized
Not found
Internal server error
A payload for an accelerated query request that includes SQL in the payload.
{- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT * FROM accounts;",
- "name": "Accelerated Query Sample",
- "description": "A sample of an accelerated query."
}
A sample response for an accelerated query request that used SQL directly in the payload.
{- "queryId": "ba7aa60c-f5ab-47de-b980-c30789108efe",
- "resultsMeta": {
- "_adhoc": {
- "type": "string",
- "meta:xdmType": "string",
- "properties": {
- "Industry_name": {
- "type": "string",
- "meta:xdmType": "string",
- "default": null
}, - "Industry_code": {
- "type": "integer",
- "meta:xdmType": "int,",
- "maximum": 2147483647,
- "minimum": -2147483648
}, - "Value": {
- "type": "number",
- "meta:xdmType": "number",
- "maximum": "null,",
- "minimum": null
}, - "Active_customer": {
- "type": "boolean",
- "meta:xdmType": "boolean"
}
}
}
}, - "results": {
- "Industry_name": "Acme",
- "Industry_code": 23,
- "Value": 93141,
- "column_name_boolean_type": true
}, - "request": {
- "dbName": "acmesbox1:acmeacceldb:accmeaggschema",
- "sql": "SELECT * FROM accounts;",
- "name": "Accelerated Query Sample",
- "description": "A sample of an accelerated query."
}
}