# get form submissions

**URL:** <https://community.hubspot.com/t/get-form-submissions/66414>\
**Category:** APIs & Integrations\
**Created:** [October 4, 2022, 9:18am UTC](https://community.hubspot.com/t/get-form-submissions/66414 "2022-10-04T09:18:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sboi](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sboi](https://community.hubspot.com/u/sboi)\
**Post date:** [October 4, 2022, 9:18am UTC](https://community.hubspot.com/t/get-form-submissions/66414/1 "2022-10-04T09:18:06Z")

</div>

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](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/"

}

```

}

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 4, 2022, 5:14pm UTC](https://community.hubspot.com/t/get-form-submissions/66414/2 "2022-10-04T17:14:43Z")

</div>

Hey, @sboi 👋 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

```lia-code-sample
{
 "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:

- [API sunset](https://developers.hubspot.com/changelog/upcoming-api-key-sunset)
- [Migrate an API key integration](https://developers.hubspot.com/docs/api/migrate-an-api-key-integration-to-a-private-app)

Have fun building! — Jaycee
