If you want to curl an error to the Airbrake error capturing service you have come to the right place! This is based off the API doc for create notice. There are more details there ;) https://airbrake.io/docs/#create-notice-v3
Just curl the json with the following command:
curl -X POST -H "Content-Type: application/json" -d @error.json "https://airbrake.io/api/v3/projects/PROJECT_ID/notices?key=PROJECT_KEY"