Crop.photo
  1. Crop.photo API
Crop.photo
  • Crop.photo API
    • Introduction
    • Authentication
    • FAQs
    • Examples
    • Interactive API Testing
    • Auto Resize & Align
      POST
    • Body Aware Crop
      POST
    • Unrecognizable Crop
      POST
    • Remove Background
      POST
    • Create Banner Job
      POST
    • AI Lifestyle Crop
      POST
    • Banners Job Status
      POST
  1. Crop.photo API

Interactive API Testing

How to Test APIs Using the "Try it out" Button in API Documentation#

Overview#

API documentation often includes an interactive feature called the "Try it out" button. This allows users to test API endpoints directly from the documentation interface without needing external tools like Postman or cURL. This guide explains how to use the Try it out button effectively for API testing.

Steps to Test an API Using "Try it out"#

1. Navigate to the API documentation page.#

Click here to navigate to the API documentation page.

2. Locate the API Section#

Scroll through the list of available endpoints.
Click on the desired endpoint (e.g., "Auto Resize & Align").
Click the Try it out button next to the endpoint, as shown in the provided screenshot below.
image.png
The right panel will display the endpoint details, including the request method (e.g., POST), URL path, and request body.

3. Enter Required Parameters.#

Fill in the necessary parameters as follows:
1.
Request Body: Enter the required JSON data in the Body section, following the format specified in the API documentation - Examples.
image.png
2.
Headers: Add necessary authentication tokens or content types in the Headers section as required by the API.
image.png

4. Execute the API Request#

Click the 'Send' button to execute the request.
image.png
``
The API will process the request and return a response.

5. Review the API Response#

The API response will return an image output, verify that it is properly rendered.
image.png
``
Examine the response status code. If the request is successful, the API returns a 200 response.
image.png
In case of an error (e.g., 400 Bad Request, 401 Unauthorized, or 500 Internal Server Error), please refer to the FAQs section for troubleshooting. For further assistance, contact Crop.photo Support.

Conclusion#

Using the Try it out button simplifies API testing, enabling quick verification of endpoint functionality, to validate API responses efficiently.
Modified at 2025-03-14 09:47:00
Previous
Examples
Next
Auto Resize & Align
Built with