Discussions

Ask a Question

Keyword HTTP trigger returning 400

Hi! I have a keyword that is triggering an HTTP request to my flask app. However, it's constantly returning 400. ``` payload = request.json phone_number = payload.get('phone_number') ``` This is how I'm parsing the payload, which may be the issue. Any ideas of where I'm going wrong? My request is configured as so on postscript: Content Type application/json Method POST Body keyword BONSAIBUDDY phone_number e.g. 12345678910 shopify_customer_id e.g. 1 postscript_subscriber_id e.g. 1 triggered_at e.g. 2018-01-01 12:00:00.000000

How to determine what keyword a user has subscribed to

Hi, We are listening to shop.subscriber.opt_in events, but don't receive the information about what keyword the user has triggered to subscribe. We need that in order to properly close the proverbial "circle" on our social sms list growth tactics What would be the best way to get this information?

How do I receive a webhook to my app URL whenever I get a text message?

Hi there! How do I begin setting up receiving a webhook to my app URL whenever I get a text message? I don't see anything in my dashboard for this. Thanks!

Change pending_subscriber to full subscriber

Is there a possibility to change pending_subscriber to a full subscriber by an API call? Because for my case I don't need a user to answer the message "Reply Y to subscribe to recurring automated promotional msgs (e.g. cart reminders). Msg & data rates may apply." This message I show in my application where user can accept or decline subscription. Thanks for any help.
ANSWERED

API custom integrations not working

When I make a request to any URL its returns. {"errors":[{"loc":[],"msg":"Custom API access is not available on this plan. To create custom API implementations, upgrade to a plan with full API access.","type":"v2.access_denied"}]}

Webhook Work

I have some problems with the webhook. I create my app. I registered several webhooks , and gave endpoints on my app. But I can get responses after events such as 'shop.incoming_message' or 'shop.subscriber.opt_in' on my app logs. I find a way how to test webhooks in the manual. I get 'Example Event' and sent it with postman. I got "message": "OK" but nothing in my app logs. I changed webhook_id to my id after hook registration but it didn't work. I use API v2.0 Need some help. What am I doing wrong?
ANSWERED

Custom API access is not available on this plan. To create custom API implementations, upgrade to a plan with full API access.

Unable to use my Postscript API to build custom connector in Power Automate, kindly help i am getting below error, { "errors": [ { "loc": [], "msg": "Custom API access is not available on this plan. To create custom API implementations, upgrade to a plan with full API access.", "type": "v2.access_denied" } ] }
ANSWERED

Is there a limit of customer_ids?

We're building a Postscript integration to tag customers as being part of an audience in Peel. Is there a limit of customer_ids to be passed to the shopify_customer_id__in ? As it's a URL query param, we don't know if you are following any limit of elements. thanks!
ANSWERED

Messages for a subscriber

what's the way to get the sent messages associated to a subscriber?
ANSWERED

Post to add subscribers is not working!

I am trying a lot of different possibilities... and any of them is working: curl --location --request POST 'https://api.postscript.io/api/v2/subscribers' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx' \ --header 'Content-Type: application/json' \ --data-raw '{ "phone_number": "4372225500", "metadata": { "email": "[email protected]" }, "keyword": "HELLOTKEES" }' {"errors":[{"loc":["origin"],"msg":"field required","type":"value_error.missing"}]} curl --location --request POST 'https://api.postscript.io/api/v2/subscribers' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx' \ --header 'Content-Type: application/json' \ --data-raw '{ "phone_number": "4372225500", "metadata": { "email": "[email protected]" }, "keyword_id": "139153" }' {"errors":[{"loc":["origin"],"msg":"field required","type":"value_error.missing"},{"loc":["keyword"],"msg":"Must provide `keyword` OR `keyword_id`, one is required.","type":"value_error"}]} curl --location --request POST 'https://api.postscript.io/api/v2/subscribers' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx' \ --header 'Content-Type: application/json' \ --data-raw '{ "phone_number": "4372225500", "metadata": { "email": "[email protected]" }, "keyword_id": 139153 }' {"errors":[{"loc":["origin"],"msg":"field required","type":"value_error.missing"},{"loc":["keyword"],"msg":"Must provide `keyword` OR `keyword_id`, one is required.","type":"value_error"}]} curl --location --request POST 'https://api.postscript.io/api/v2/subscribers' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer sk_bba6ffee6d7ac7913cdeef1da55dfba6' \ --header 'Content-Type: application/json' \ --data-raw '{ "phone_number": "4372225500", "metadata": { "email": "[email protected]" }, "keyword_id": 139153, "keyword": "HELLOTKEES" }' {"errors":[{"loc":["origin"],"msg":"field required","type":"value_error.missing"},{"loc":["keyword_id"],"msg":"Must provide `keyword` OR `keyword_id`, not both.","type":"value_error"}]} I really don't know what to do!