Feature is not enabled

https://api.us.amity.co/api/v3/posts

I’m trying to do a create post request but whatever I do I can’t make it work.

curl -X 'POST' \
  'https://api.us.amity.co/api/v3/posts' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ' \
  -H 'Content-Type: application/json' \
  -d '{
  "data": {
    "text": "test post",
    "images": [
      "string"
    ],
    "files": [
      "string"
    ]
  },
  "dataType": "upstra.customtype",
  "targetType": "user",
  "targetId": "jeffrey-test",
  "metadata": {},
  "postId": "string1",
  "tags": [
    ""
  ],
  "createdAt": "2022-07-07T04:24:20.444Z"
}'

Error: response status is 403

I’m doing this call via Amity API . I’m also not sure where to put the accessToken generated via /generate-session. Please help.

Hello @rewards our relevant team will reach out to you, thank you :)) :pray:

Hi rewards,

You have to add your access token after the “Bearer” in the authorization header.

curl -X 'POST' \
  'https://api.us.amity.co/api/v3/posts' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ACCESSTOKENGOESHERE' \
  -H 'Content-Type: application/json' \

Hello devdieter,

Yes, I’m adding the Accesstoken in authorization but still the response on API is “Feature is not enabled”

Maybe worth trying v4 of the api for post creation?

Hello @rewards we’re checking this on our side, will keep you posted :pray: