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.