Prismatic Component
Interact with the Prismatic internal API
Component key: prismatic
Description
This component allows you to communicate with Prismatic's GraphQL API. You can interact with your integrations, instances, flows, and more.
API Documentation
Please see the following guide for more information: Intro to Prismatic's GraphQL API
Connections
Prismatic Refresh Token
To start using the Prismatic component you need to use your authenticated prism client to call the prism me:token --type refresh command.
Running this command will give you a refresh token, which you can use to make requests to the Prismatic API.
Now that you have your token, create a new Prismatic connection and enter the token you received from the Prism CLI.
| Input | Notes | Example |
|---|---|---|
| Refresh Token | Provide the Refresh Token obtained from the prism command line by calling prism me:token --type refresh. |
Actions
Deploy Instance
Deploy an instance to production | key: deployInstance
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Instance Id | Provide the unique ID of an instance. | Shopify Instance |
Disable Instance
Disable an existing instance | key: disableInstnce
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Instance Id | Provide the unique ID of an instance. | Shopify Instance |
Get Current User
Get information about the current logged in user | key: getCurrentUser
| Input | Notes | Example |
|---|---|---|
| Connection |
Get Customer
Get a customer's information and metadata | key: getCustomer
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Customer | Provide the unique identifier of a customer. This value should be an Id |
Get Execution
Get the information and metadata of an execution | key: getExecution
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Execution Id | Provide the unique identifier of an execution record. | SW50ZWdyYXRpb246Y2ZmNGUgUm2S3nMTUzLWEwMjQtZGI4YzlmOTAzNjIy |
Get Instance
Get the information and metadata of an existing instance | key: getInstance
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Instance Id | Provide the unique ID of an instance. | Shopify Instance |
Get Integration
Get the information and metadata of an integration | key: getIntegration
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Integration Id | Provide the unique identifier of an integration. This value should be the Id of the integration. |
Import Integration
Import Integration | key: importIntegration
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| YAML Definition | Provide a string value for the definition of the integration. | category: '' definitionVersion: 6 description: '' documentation: '' endpointType: flow_specific flows: - description: '' isSynchronous: false name: Flow 1 steps: - action: component: isPublic: true key: webhook-triggers version: 7 key: webhook description: '' inputs: body: type: value value: '' contentType: type: value value: '' statusCode: type: value value: '' isTrigger: true name: Integration Trigger name: prism requiredConfigVars: - connection: component: isPublic: true key: prismatic version: 53 key: apiKey dataType: connection inputs: apiKey: type: value value: >- exampleAPIKey key: prismatic Connection orgOnly: false |
| Integration Id | Provide the unique identifier of an integration. This value should be the Id of the integration. |
List Components
Returns a list of all the components published to your account | key: listComponents
| Input | Notes | Example |
|---|---|---|
| Connection |
List Customers
List all customers in an organization | key: listCustomers
| Input | Notes | Example |
|---|---|---|
| After | Specifies a cursor for use in combination with first to implement forward pagination. | YXJyYXljb25uZWN0aW9uOjk5 |
| Before | Specifies a cursor for use in combination with last to implement backward pagination. | YXJyYXljb25uZWN0aW9uOjk5 |
| Connection | ||
| Description Contains | Filter for objects where description contains the specified value (case insensitive). | Search for this string |
| External Id | Provide the customer external Id. | WdyYXRpb246Y33nmNGUgUm2S3nMTUzLWEwMjQtZGI4YzlmOTAzNjIy |
| Label Contains | Filter for objects where labels contains the specified value (case insensitive). | Search for this string |
| Last | A non-negative integer that specifies to return at most last edges before the before cursor. | 1 |
| Name | Provide a name. | |
| Name Contains | A non-negative integer that specifies to return at most last edges before the before cursor. | Search for this string |
| Name Starts With | Provide a value for the start of the customer name | Search for this string |
| Offset | Filter results based on the offset. | 2 |
List Flows
List all flows on an integration | key: listFlows
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Integration Id | Provide the unique identifier of an integration. This value should be the Id of the integration. |
List Instances
List all instances | key: listInstances
| Input | Notes | Example |
|---|---|---|
| After | Specifies a cursor for use in combination with first to implement forward pagination. | YXJyYXljb25uZWN0aW9uOjk5 |
| Before | Specifies a cursor for use in combination with last to implement backward pagination. | YXJyYXljb25uZWN0aW9uOjk5 |
| Compatibility | Provide an integer value to filter by compatibility. | 1 |
| Connection | ||
| Customer External Id | Provide the customer external Id. | 12345 |
| Customer | Provide the unique identifier of a customer. This value should be an Id | |
| Description | Provide a string value for the description. | |
| Description Contains | Filter for objects where description contains the specified value (case insensitive). | Search for this string |
| Enabled | Filter for objects where description contains the specified value (case insensitive). | true |
| First | A non-negative integer that specifies to return at most first edges after the after cursor. | 1 |
| Integration | Provide an identifier for the integration. This value should be an id. | |
| Label Contains | Filter for objects where labels contains the specified value (case insensitive). | Search for this string |
| Last | A non-negative integer that specifies to return at most last edges before the before cursor. | 1 |
| Name | Provide a name. | |
| Name Contains | A non-negative integer that specifies to return at most last edges before the before cursor. | Search for this string |
| Needs Deploy | Filter for objects where needsDeploy matches the specified value. | false |
| Offset | Filter results based on the offset. | 2 |
{
"data": {
"status": 200,
"data": {
"instances": {
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "example",
"endCursor": "example"
},
"nodes": [
{
"id": "example",
"updatedAt": "2022-02-28T21:04:42.282103+00:00",
"labels": [
"Example Labels"
],
"name": "Test Instance",
"customer": {
"id": "example"
}
}
]
}
}
}
}
List Integrations
List all available integrations | key: listIntegrations
| Input | Notes | Example |
|---|---|---|
| After | Specifies a cursor for use in combination with first to implement forward pagination. | YXJyYXljb25uZWN0aW9uOjk5 |
| All Versions | Return all versions instead of only the latest | false |
| Before | Specifies a cursor for use in combination with last to implement backward pagination. | YXJyYXljb25uZWN0aW9uOjk5 |
| Category | Filter for objects where category matches the specified value. | Example Category |
| Category Contains | Filter for objects where category contains the specified value (case insensitive). | Search for this string |
| Connection | ||
| Description | Provide a string value for the description. | |
| Description Contains | Filter for objects where description contains the specified value (case insensitive). | Search for this string |
| First | A non-negative integer that specifies to return at most first edges after the after cursor. | 1 |
| Has Instances | Return only Integrations that have Instances | false |
| Has Unpublished Changes | Filter for objects where hasUnpublishedChanges matches the specified value. | true |
| Label Contains | Filter for objects where labels contains the specified value (case insensitive). | Search for this string |
| Last | A non-negative integer that specifies to return at most last edges before the before cursor. | 1 |
| Marketplace | Returns only the version of Integrations either deployed or available in the Marketplace | false |
| Marketplace Config | Return only integrations sharing the provided marketplace config | |
| Name | Provide a name. | |
| Name Contains | A non-negative integer that specifies to return at most last edges before the before cursor. | Search for this string |
| Offset | Filter results based on the offset. | 2 |
| Version Is Available | Filter for objects where versionIsAvailable matches the specified value. | true |
| Version Number | Provide an integer value to filter by version number. | 29 |
| Version Sequence Id | Return only integrations sharing the provided version sequence id. | 4203516a-15a6-4306-8068-6b5c37a83f51 |
{
"data": {
"status": 200,
"data": {
"integrations": {
"nodes": [
{
"id": "example3843985702395",
"labels": [
"Example Labels"
],
"avatarUrl": "",
"name": "example",
"createdAt": "2022-02-28T20:52:49.763944+00:00",
"category": null,
"allowRemove": true,
"actions": {
"nodes": [
{
"id": "r80837409928349uf2309f3"
}
]
},
"flows": {
"edges": [
{
"node": {
"id": "28y9483f893dwe"
}
}
]
}
}
]
}
}
}
}
Publish Integration Version
Publish a new version of an existing integration | key: publishIntegration
| Input | Notes | Example |
|---|---|---|
| Comments | Provide a string value for comments. | This is my comment. |
| Connection | ||
| Integration Id | Provide the unique identifier of an integration. This value should be the Id of the integration. |
Raw GraphQL Request
Send raw GraphQL request to Prismatic | key: rawRequest
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Query or Mutation | Provide a query or mutation for the GraphQL request | |
| GraphQL Variables | These should match the variables of your query or mutation. |
Test Flow
Test an existing integration flow | key: testFlow
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Content Type | Provide a content type to be passed to the given flow upon execution. | application/json |
| Flow Id | Provide the unique identifier of a flow | SW50ZWdyYXRpb25GbG93OmEezxyb2ZjItNGNmOS1iNGQ2LWYyanYzViMTE4ZmMwZA== |
| Payload | Provide a payload to be passed to the given flow upon execution. | '{}' |
Update Instance
Update an existing instance | key: updateInstance
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Description | Provide a string value for the description of the instance | |
| Instance Id | Provide the unique ID of an instance. | Shopify Instance |
| Name | Provide a string value for the name of the instance |
Update Integration
Update the information and metadata of an integration | key: updateIntegration
| Input | Notes | Example |
|---|---|---|
| Connection | ||
| Description | Provide a string value for the description. | |
| Integration Id | Provide the unique identifier of an integration. This value should be the Id of the integration. | |
| Name | Provide a name. |
Changelog
2025-10-08
Added global variable support for enhanced token management and authentication persistence