APIs & Integrations

bensquire
Member

Unable to retrieve API key

SOLVE

Hi,

 

So I've created a dev account and I'm a super-admin. But I can't see the integrations menu to the right left of my settings screen and therefore can't get my API secret. What am I missing?

 

Thanks

Ben

 

 

Screenshot 2020-06-17 at 12.40.45.png

 

0 Upvotes
1 Accepted solution
bensquire
Solution
Member

Unable to retrieve API key

SOLVE

I've worked it out. I'd created a developer-account and an application, but what I actually needed was a test-account. Once I'd done that the settings worked as expected.

 

Clear as mud.

View solution in original post

0 Upvotes
2 Replies 2
bensquire
Member

Unable to retrieve API key

SOLVE

And just to show what I'm trying to achieve:

 

curl --location --request POST 'https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/foo@baar.com?hapikey=INSERT_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "properties": [
    {
      "property": "email",
      "value": "foo@baar.com"
    },
    {
      "property": "firstname",
      "value": "test"
    },
    {
      "property": "lastname",
      "value": "testerson"
    },
    {
      "property": "website",
      "value": "http://updated.example.com"
    },
    {
      "property": "lifecyclestage",
      "value": "customer"
    }
  ]
}'

responsds with

{
    "status": "error",
    "message": "This hapikey (INSERT_API_KEY) doesn't exist.",
    "correlationId": "43161caf-fee9-4af4-b580-c07d8408dd54"
}
0 Upvotes
bensquire
Solution
Member

Unable to retrieve API key

SOLVE

I've worked it out. I'd created a developer-account and an application, but what I actually needed was a test-account. Once I'd done that the settings worked as expected.

 

Clear as mud.

0 Upvotes