ContributionsMost RecentMost LikesSolutionsRe: Facing issue with image upload API SuzieH Thank You for response . I can successfully able to upload image ( to user account ) with REST API V1 and refer link back to message https://xxxxxxxx/restapi/vc/users/id/xxx/media/albums/default/public/images/upload Here I'm looking for REST API V2 to post images as part of messages Thanks & Regards Sachin Patil How to add multiple tags to a message curl --location --request PUT '.../api/2.0/messages/882?restapi.session_key=...' \ --header 'Content-Type: application/json' \ --data-raw '{ "data":{ "type":"message", "tags": [ { "type": "tag", "text": "tag3" }, { "type": "tag", "text": "tag4" } ] } }' Re: Facing issue with image upload API Thank You SuzieH for response Re: API to Share Message ( TKB ) different nodes Are you wanting to post a message to more than one board in a single request? Yes , I would like to post message to more than one board in a single request? Thanks Sachin Re: API to Share Message ( TKB ) different nodes Hi , Can anyone have update on above ask ? Thanks Sachin API to Share Message ( TKB ) different nodes Hi Team , I'm looking for REST API to post message to one board & shared across different board . or How to create message which is shared across different board ( or nodes ) . Can anyone please help . Thanks & Regards Sachin Patil Re: Facing issue with image upload API I'm looking for option Post Image as part of message using REST API V2 Can anyone please help . Thanks Sachin Patil Re: How to add multiple tags to a message Thank You Varun for response . I'm able to resolve issue . Re: Post Image as part of message using REST API V2 Hi Varun, The link provided are for attachment , I'm looking for API to post Image as part of message . Do you have any idea about REST API post Image as part of message . Thanks & Regards Sachin Patil How To Get OAuth 2.0 Access Token & Refresh Token Hi All , below are steps to get OAuth 2.0 Access Token & Refresh Token To Get OAuth 2.0 Access , first step is to get access code How to get access code , 1) Get Redirect URL http://xxxx/getAccessToken . (It can be whatever you want, as long as you reference it in the API call.) 2) URL-encode the Client ID and the State to properly format any special characters. 3) Enter URL encoded values in below URL: https://xxxx/auth/oauth2/authorize?client_id=xxxx&response_type=code&redirect_uri=http://xxxx/getAccessToken&state=xxxx 4) I will then get routed back to my redirect URL with the authorization code shown in the code argument of the query string, as shown below. (I get a “site can’t be reached” message but that’s to be expected since the Redirect URL is just something I made up since it doesn’t need to actually work for my purposes, since it’s just used for authentication. The Redirect URL would only matter if I were actually developing a web app for end-users.) How to get Access Token POST /auth/accessToken request curl -X POST \ https://[COMMUNITY DOMAIN]/api/2.0/auth/accessToken \ -H "Content-Type: application/json" \ -H "client-id: [CLIENT ID]" \ -d '{ "client_id":"[CLIENT ID]", "client_secret":"[CLIENT SECRET]", "grant_type":"authorization_code", "redirect_uri":"[REDIRECT URI]", "code":"[AUTHORIZATION CODE]" }' POST /auth/accessToken response { "response": { "status": "success", "message": "OK", "http_code": 200, "data": { "access_token": "o5IV0yIiNDj/5lNJ6doJh08LX6SsDwtkDXDVmhGvRtI=", "expires_in": 86400, "lithium_user_id": "2d8c95ed-21dc-4ba6-ab9f-d3eff9c928ce", "refresh_token": "XAAWIWKr38W33SlqYooR9OEJW0um9DoyB/o843rdIxk=", "token_type": "bearer" } } } Refresh the access token An access token is valid for 24 hours before it expires. Refresh the token within that time period with a POST call to /auth/refreshToken and passing the refresh_token received in the response from POST /auth/accessToken. Otherwise, the user will go through the authentication flow again. When you pass the refresh_token, the Authorization Service issues a new access token and (optionally) a new refresh token. Store the new refresh token in case you need it for subsequent refreshes. The refresh token does not expire. Community Link: https://xxxx/api/2.0/auth/refreshToken { "client_id":"xxxx", "client_secret":"xxxxx", "grant_type":"refresh_token", "refresh_token":"xxxxx" } Hope this helps ..... Please refer below link for details: https://developer.khoros.com/khoroscommunitydevdocs/docs/oauth- authorization-grant Thanks & Regards Sachin Patil