Get Solutions (master Token)
POST https://{{base_url}}/graphql
List all solutions
Click 'Examples' to see different types of queries you can make when listing solutions
Use example requests from the right to try simple local tests with curl, js, python etc. (note you will still be interacting with live data when using master and user tokens!)
You can find example usage of this as a backend-only API in our Embedded sample app (remember that client-side Javascript calls to the API will be blocked by CORS):
* queries.solutions
in server/api.js references solutions
in server/graphql.js
Required Token | Notes |
---|---|
Master | Obtained from the Tray app UI |
The query accepts the following criteria:
Criteria | Notes |
---|---|
tags | If you have created tags in the Solution Editor, this field can be used to filter Solutions in your external application |
Returned Data | Subfields | Notes |
---|---|---|
id | The solution id which needs to be passed when using the createSolutionInstance mutation. | |
title | ||
description | ||
configSlots | externalId title defaultValue | This can be used to expose the externalId of Config Data which is required when Importing Config Data |
tags | If you have created tags in the Solution Editor, this field can be used to filter Solutions in your external application | |
custom fields | You can set these on the solution settings page. |
Pagination
You can paginate the results of this query using the methods discussed in Pagination
RESPONSES
status: OK
{"data":{"viewer":{"solutions":{"edges":[{"node":{"id":"28233cac-XXXX-XXXX-XXXX-e464a6881c04","title":"New Marketo Leads \u003e MailChimp Email Campaign","description":"Send new Marketo leads to Mailchimp campaign","tags":["marketing","mailchimp","marketo"],"customFields":[{"key":"my_custom_field","value":"myCustomFieldValue"}],"configSlots":[]},"cursor":"MjgyMzNjYWMtNzc1ZS00MTNlLWIyYWYtZTQ2NGE2ODgxYzA0"}],"pageInfo":{"hasNextPage":false,"endCursor":"MjgyMzNjYWMtNzc1ZS00MTNlLWIyYWYtZTQ2NGE2ODgxYzA0","hasPreviousPage":false,"startCursor":"MjgyMzNjYWMtNzc1ZS00MTNlLWIyYWYtZTQ2NGE2ODgxYzA0"}}}}}