Hello Fabiano Valle,
Thank you for reaching out to Microsoft Q&A forum!
To consume an API using Postman while bypassing authentication, you can follow these steps:
Using Postman:
Open Postman and create a new request.
Set the request method to **POST**.
Enter the API endpoint URL.
In the request body, choose the **form-data** option.
Add the required attributes and parameters as key-value pairs.
Send the request.
**HTML Form Approach**: If you want to implement the API in a simple HTML form, you can create an HTML form with the necessary input fields. Here’s an example:
**HTML**
```xml
<!DOCTYPE html>
```
AI-generated code. Review and use carefully. [More info on FAQ](https://www.bing.com/new#faq).
Replace the **`action`** attribute value with the actual API endpoint URL. Ensure that you include all the required attributes and parameters as hidden input fields within the form.
**Redirection URL**: If the API returns a success code but doesn’t provide the redirection URL in the response data or headers, you might need to handle the redirection manually after submitting the form.
Remember to replace the placeholder values (such as my_auth_token
, 85420
, and the actual API endpoint URL) with the appropriate values for your specific use case.
Happy API consuming!
Best regards,