API DOCUMENTATION

Get API key

Before you can use the TomFormAPI API, you first need to create your API key, create a GET request, and retrieve your API key. The key will send to your email address.

curl -X GET https://tomformapi.com/api/get-apikey/[email protected]

sample API response

{
    "success": true,
    "message": "We have sent an email with the API key. Please find your API key in your mailbox."
}

Get Submissions

Use below endpoint to get all of your submissions. Send GET request, and retrieve your submissions with the timestamp which in descending order.

curl -X GET https://tomformapi.com/api/get-submissions/<apikey>

sample API response

{
    "success": true,
    "submissions": [{
        "form_url": "https://tomformapi.com/support",
        "form_data": {
            "name": "TomFormAPI",
            "email": "[email protected]",
            "message": "hello! there"
        },
        "submitted_at": "Sun, Feb 7, 2021 10:17 PM"
    }, {
        "form_url": "https://tomformapi.com/support",
        "form_data": {
            "name": "TomFormAPI",
            "email": "[email protected]",
            "message": "hello! there"
        },
        "submitted_at": "Sun, Feb 7, 2021 10:19 PM"
    }]
}