Test your API
Last updated
Last updated
After the deployment has completed, you'll see a modal with useful commands to test your API. For the following commands, replace your api path
and your api key
with your API path and the API key.
Create a new post:
curl -H "Content-Type: application/json" \
-H "API-TOKEN: your api key" \
-d "{ \"Property\": \"value\"}" \
https://console.hatchapps.com/api/your_api_path/endpoint
Here's an example:
curl -H "Content-Type: application/json" \
-H "API-TOKEN: 26818869033657110" \
-d "{ \"name\": \"testname\"}" \
https://console.hatchapps.com/api/hatchappsapi/posts
We also provide a no-code way to test your API with our API Tester.
That's it! You have successfully built and deployed your first API with Hatch Apps API Builder and created your first object.