Almad
Almad

Reputation: 5913

How can I retrieve Heroku application id?

I am being asked for heroku app id (the [email protected]) by 3rd party support. I am quite sure there was some way to do get it, but I don't see it know. It's not featured in heroku info even in the more verbose --json mode.

How can I retrieve it?

Upvotes: 2

Views: 3795

Answers (3)

Xoel
Xoel

Reputation: 354

Go to your app on the Heroku dashboards, open the dev tools, check for requests coming from particleboard.heroku.com and there you have the ID, after /apps/...

enter image description here

Upvotes: 1

encapsulation
encapsulation

Reputation: 51

If someone needs a long App ID (01234567-89ab-cdef-0123-456789abcdef):

curl -n https://api.heroku.com/apps/$APP_NAME \
  -H "Accept: application/vnd.heroku+json; version=3"

App ID will be in the response object under "id"

Source: https://devcenter.heroku.com/articles/platform-api-reference#app-info

Upvotes: 5

stevec
stevec

Reputation: 52967

I had the same issue, and was informed via my support ticket that the only way to get the heroku app ID (that SendGrid uses) is to ask for it via Heroku support. Here's what Heroku support says:

You cannot retrieve that value yourself. This is a value that SendGrid support requires that only Heroku support can supply to them.

Lodge a ticket here: https://help.heroku.com/?t=true

UPDATE

Turns out you can access it by running

heroku config:get SENDGRID_USERNAME
[email protected]

Upvotes: 1

Related Questions