Skip to main content

Post comment using rest callout


I am trying to post comments on files in box using rest api callouts.It is asking for auth token.I have already authorized the app in box.I am not sure how it will work.if anybody has a working example in postman etc.

6 replies

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • January 9, 2024

Hi @user139, welcome to the forum.


Sounds like you don’t have the authorization complete yet.


To configure Postman to get and use our API, check out this quick start guide:




This is assuming you are using OAuth.


To use CCG or JWT, it is a bit more advanced, but checkout this article:




Let us know if this helps.


Cheers


  • Author
  • New Participant
  • 3 replies
  • January 9, 2024

Hello


I am not sure if that is the case. I am able to successfully use the app for a webhook.The issue is the webhook makes a outgoing call.I need 2 way communication.thats why I need to make a post call to box.


rbarbosa Box
  • Developer Advocate
  • 553 replies
  • January 9, 2024

In that case I’m going to need a bit more information.


In your development console you should have a configured app to work with your app, what type of authentication it has.


For you app, what stack are you using (node, python, .net, java) ?


Are you using any of the Box SDK’s to handle the authentication?


Cheers


  • Author
  • New Participant
  • 3 replies
  • January 9, 2024

I am trying with postman first


  • Author
  • New Participant
  • 3 replies
  • January 9, 2024

The webhook was using http post method


rbarbosa Box
  • Developer Advocate
  • 553 replies
  • January 9, 2024

That should mean it has an access token some how to send on the authorization header.


Perhaps your app gets a new access token before processing the webhook?


Cheers


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings