Looking at the documents, I see that the former should do the trick.
Step 4. Understand the output parameters (what we will receive from the API and use in the product). In this case, API returns the improved text in the parameter…
text. Our developers can take it from the API and use it in the product: we probably want to show it one more time to the CS agent to review before sending it to the customer.
Step 5. Understand possible errors (to prepare the product for the fact that the response will not always be successful). In this case, it is pretty simple: if we set the parameters correctly, we will probably get the improved text. If not, the API will return an error, so we’ll have to tell the CS agent, “Sorry, you have to improve the message yourself.”
Step 6. Finally, you need to check if the API has any specifics. For example, is the API asynchronous, or can it return non-obvious results? Or is there a chain of calls: service A calls service B, which calls service C, which finally calls the DeepL API? In this case, you need to do a bit of a deep dive and build a Sequence Diagram. If you want to practice that, check out this
hands-on course. API is quite simple in this case, so we do not need anything else.
Step 7. Finally, you are all set to write a dev story for your team: what/why to connect, what parameters to send, what to get back, and how to use it in the product. Good job!