Microsoft Forms - Restful - Api

Fabiano Valle 0 Reputation points
2024-04-09T23:28:49.74+00:00

Hello, iam trying to consume forms api from office 365 account using:

https://forms.office.com/formapi/api

The operations works at browser a logged in, office 364 account.

I need to consume forms api from postman, but i dont know how to consume this api bypassing auth.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,497 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,007 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Claudia Dos Santos Haz (CONCENTRIX CORPORATION) 695 Reputation points Microsoft Vendor
    2024-04-11T10:23:46.8466667+00:00

    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,

    0 comments No comments