Discussions
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": "davisa[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!
Posted by Davi Amaral over 1 year ago
When is v2 coming out of Beta?
Curious about when v2 of the API is coming out of Beta.
Posted by Emmett Naughton over 1 year ago
Analytics API
hey team, wondering if there is an API to get analytics data/ metrics on sends, opens, interactions, ctr, etc...
Thanks!
Posted by Daniel Langer over 1 year ago
Virtual test numbers?
Are there any plans to offer virtual test numbers/inboxes? This would be handy when developing API integrations. We'd like to send test SMS messages to a virtual inbox without hitting traditional limitations or using up real-life resources.
Thanks!
Posted by Eric Carlstrom over 1 year ago