get form submissions

Hi all,

I am trying to get form submission data for a form and i am getting below errror. any help would be great

https://api.hubapi.com/form-integrations/v1/submissions/forms/1vo3aDD7ZTnG63bn3nlJS3g4ji5c?hapikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

however i am getting an error:

{

"status": "error",

"message": "The API key provided is invalid. View or manage your API key here: https://app.hubspot.com/l/api-key/",

"correlationId": "aa4678a1-8716-44d2-8c5f-7811166ba628",

"category": "INVALID\_AUTHENTICATION",

"links": {

    "api key": "https://app.hubspot.com/l/api-key/"

}

}

Hey, @sboi :waving_hand: From my end, I just ran a quick test in Postman and the endpoint worked as expected.

Request

https://api.hubapi.com/form-integrations/v1/submissions/forms/48429ea5-4a51-4b00-b2e3-ee44091245d2?hapikey=NOPE

Response

{
 "results": [
 {
 "submittedAt": 1660260228172,
 "values": [
 {
 "name": "firstname",
 "value": "Maria",
 "objectTypeId": "0-1"
 },
 {
 "name": "lastname",
 "value": "Johnson (Sample Contact)",
 "objectTypeId": "0-1"
 },
 {
 "name": "email",
 "value": "emailmaria@hubspot.com",
 "objectTypeId": "0-1"
 },
 {
 "name": "subject",
 "value": "New form channel connected",
 "objectTypeId": "0-5"
 },
 {
 "name": "content",
 "value": "This is a test form submission",
 "objectTypeId": "0-5"
 }
 ],
 "pageUrl": null
 }
 ]
}

For context, I used the API from an App Test Account that still has an API key.

Have you tried making the same request using a Private App? With the upcoming API key sunset next month, I’d recommend taking a look here:

Have fun building! — Jaycee