1

I am new to API call. I'm attempting to retrieve a journey together with its data from SFMC.

  • Should i use POST or GET request?
  • What URL goes to the request?
  • For header, i have specified the Authorization as "Bearer Access Token", and the Content Type as application/json. What else i'm i missing?

  • What code should i enter into the Body section.

closed as off-topic by glls, Pranay Jaiswal, battery.cord, codeyinthecloud, Himanshu Jan 22 at 23:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – glls, Pranay Jaiswal, battery.cord, codeyinthecloud, Himanshu
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Most of the questions in this post are not related to SF, but rather basic programing. I would strongly suggest you do some research on each of the items you have in the post. after that, if you run into any specific SF related issues while implementing, feel free to open a new post =) . – glls Jan 21 at 19:22
  • @glls umm... these questions are absolutely related to - and specific to - SF and the unique SFMC API. – krigi Jan 21 at 19:31
  • 1
    imo, these look like basic REST api questions that just happen to have 'marketing cloud' in context – glls Jan 21 at 20:05
  • @glls Like i mentioned in my first statement, i am new to API calls - so what i may ask maybe basic to a well experienced folks. Please bear with me. Thank you. – Nat Fan Jan 21 at 20:12
  • 1
    Sorry, but i'll pass, your question has too many questions. if you narrow down your issue to a specific problem in relation to how you are calling the api, it would be relevant and on topic, but as is, i'm voting to close. Please take a moment to read How to Ask. please make sure to go through the documentation and whn you open a question, include what you have tried, where you are stuck and any relevant error messages. This way, it will be easier to assist. Thanks =) – glls Jan 22 at 15:05
2

The good news... this is well documented. Your questions (e.g. POST or GET, which URL, how to authenticate, etc.) are all covered here.

Specific answers to your questions:

  • GET
  • /interaction/v1/interactions/{id}
  • For headers: pass 1) "Content-Type": "application/json" and then 2) "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
  • No body is needed for this
  • Thank you for your response. I've leveraged the document you shared before. So far, i've used the GET request together with the /interaction/v1/interactions/{id}. I'm having a hard time locating the ID/External Key for Journey. I'm getting a 404 error. Also, should be specifying the version number of the journey in the GET request URL? Your help is much appreciated. – Nat Fan Jan 21 at 20:12
  • Any idea on this @krigi? – Nat Fan Jan 21 at 22:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.