Skip to main content
POST
https://prod-contactswing-fastapi-962560522883.us-central1.run.app
/
v2
/
actions
Create Shopify Action
curl --request POST \
  --url https://prod-contactswing-fastapi-962560522883.us-central1.run.app/v2/actions \
  --header 'Authorization: <authorization>'
{
  "ctx_id": "<string>",
  "data": {
    "action_id": "<string>",
    "name": "<string>",
    "type": "<string>"
  }
}

Authorizations

Authorization
string
required
Enter your ContactSwing JWT Bearer token.

Request Body

name
string
required
Action display name. Example: My Shopify Action
description
string
Action purpose. Example: Test
action_timing
string
required
When to trigger: "DURING"
type
string
required
Action type: "SHOPIFY"
webhook
object
required
Shopify webhook configuration

Shopify Configuration

webhook.type
string
required
Shopify operation type. Example: "contactswing_shopify_search"
webhook.mandatory
boolean
Require Shopify response before proceeding
webhook.url
string
Shopify store URL or endpoint

Response

201 Created - Shopify action created successfully
ctx_id
string
Request context ID
data
object
action_id
string
New Shopify action ID
name
string
Action name
type
string
”SHOPIFY”
400 Bad Request - Invalid Shopify webhook configuration 401 Unauthorized - Invalid token