Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create Blog Post - WIX #15782

Open
frason88 opened this issue Mar 1, 2025 · 6 comments · May be fixed by #15954
Open

Create Blog Post - WIX #15782

frason88 opened this issue Mar 1, 2025 · 6 comments · May be fixed by #15954
Assignees
Labels
action New Action Request enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed triaged For maintainers: This issue has been triaged by a Pipedream employee

Comments

@frason88
Copy link

frason88 commented Mar 1, 2025

I need to automatically create post blogs workflows to my wix website.

webhook system to create an http-function (https://dev.wix.com/docs/velo/velo-only-apis/wix-http-functions/introduction) to catch the payload from the webhook and then use createDraftPost(https://dev.wix.com/docs/velo/apis/wix-blog-backend/draft-posts/create-draft-post)

@frason88 frason88 added action New Action Request enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Mar 1, 2025
@vunguyenhung vunguyenhung added the triaged For maintainers: This issue has been triaged by a Pipedream employee label Mar 4, 2025
@jcortes jcortes self-assigned this Mar 17, 2025
@jcortes jcortes moved this from Prioritized to Doing in Component (Source and Action) Backlog Mar 17, 2025
@jcortes
Copy link
Collaborator

jcortes commented Mar 17, 2025

Hi @frason88 I haven't found any endpoint related for the creation of the webhook but in the meantime I'm going to implement the action create-draft-post using this docs https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/create-draft-post

On the other hand we are asking for support on wix to check if they have some sort of webhook docs that I haven't seen yet, thanks in advance! 

@frason88
Copy link
Author

Thanks much @jcortes

@jcortes
Copy link
Collaborator

jcortes commented Mar 18, 2025

Issues with Wix API Endpoints

Hi @sergio-eliot-rodriguez I couldn't have the action working because of the following API issues, can you please help me reach out to Wix team support so we can understand what's going on?

I'm using the following endpoints in async options

And the the following endpoint as the action itself

and as you can see all of these endpoints returned errors like permission denied like if there were some kind of additional permissions we need to add to. Actually I didn't find a way to add more permissiones other that the ones listed when creating a API token as suggested here https://dev.wix.com/docs/go-headless/getting-started/setup/authentication/generate-an-api-key-for-admins

List Categories

Request

curl -i -X GET "https://www.wixapis.com/blog/v3/categories?paging.limit=20&paging.offset=0" \
  -H "Accept: application/json, text/plain, */*" \
  -H "wix-account-id: $ACCOUNT_ID" \
  -H "Authorization: $TOKEN"

Response

HTTP/2 403 
...
x-wix-request-id: 1742329214.00281802748317987167
server: Pepyaka
...
{"message":"","details":{}}

List Members

Request

curl -i -X GET "https://www.wixapis.com/members/v1/members?paging.limit=20&paging.offset=0" \
  -H "Accept: application/json, text/plain, */*" \
  -H "wix-account-id: $ACCOUNT_ID" \
  -H "Authorization: $TOKEN"

Response

HTTP/2 403 
...
x-wix-request-id: 1742329372.12581906022179982725
...
{"message":"","details":{}}

Query Tags

Request

curl -i -X POST "https://www.wixapis.com/blog/v2/tags/query" \
  -H "Accept: application/json, text/plain, */*" \
  -H "wix-account-id: $ACCOUNT_ID" \
  -H "Authorization: $TOKEN" \
  -d "{\"query\":{\"paging\":{\"limit\":20,\"offset\":0}}}"

Response

HTTP/2 403 
...
x-wix-request-id: 1742330433.42882275016252960966
...
{"message":"PERMISSION_DENIED: Permission denied","errorCode":-100,"details":{"validationError":{}}}%

Query Posts

Request

curl -i -X POST "https://www.wixapis.com/blog/v3/posts/query" \
  -H "Accept: application/json, text/plain, */*" \
  -H "wix-account-id: $ACCOUNT_ID" \
  -H "Authorization: $TOKEN" \
  -d "{\"query\":{\"filter\":{\"title\":{\"$contains\":\"\"}},\"paging\":{\"limit\":20,\"offset\":0}}}"

Response

HTTP/2 403
...
x-wix-request-id: 1742330624.6098218497463973352
...
{"message":"PERMISSION_DENIED: Permission denied","errorCode":-100,"details":{"validationError":{}}}

Create Draft Post

Request

curl -i -X POST "https://www.wixapis.com/blog/v3/draft-posts" \
  -H "Accept: application/json, text/plain, */*" \
  -H "wix-account-id: $ACCOUNT_ID" \
  -H "Authorization: $TOKEN" \
  -d "{\"draftPost\":{\"title\":\"Test 1\"}}"

Response

HTTP/2 500 
...
x-wix-request-id: 1742330747.44582289222758999632
...
{"message":"internal error","details":{}}

@jcortes jcortes moved this from Doing to Prioritized in Component (Source and Action) Backlog Mar 18, 2025
@jcortes jcortes linked a pull request Mar 18, 2025 that will close this issue
@sergio-eliot-rodriguez sergio-eliot-rodriguez removed their assignment Mar 20, 2025
@sergio-eliot-rodriguez
Copy link
Collaborator

It turns out the API comes with Wix Studio "Enterprise"

@frason88
Copy link
Author

Is it solved?

@sergio-eliot-rodriguez
Copy link
Collaborator

Not yet. We are in touch with Wix support re API

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
action New Action Request enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed triaged For maintainers: This issue has been triaged by a Pipedream employee
Projects
Development

Successfully merging a pull request may close this issue.

4 participants