Discussions

Ask a Question
Back to All

Help w/ api V2 authentication

Hi,

I'm trying to follow https://platform.humanity.com/v2.0/docs, but there are some inconsistencies. I have three questions. So far. :)

The text says I need:
[client_id] of your application,
[redirect_uri] of your application,
***[company_id] - of one of the companies which user belongs to,
[grant_type] - 'password'
[username] - your username
[password] - your password

But the screenshot of Postman shows:
client_id
username
password
grant_type
redirect_uri
***client_secret

The company ID doesn't appear on the postman screenshot and client_secret isn't listed in the text. Oh, and the url in the screenshot is wrong, but that's minor because the one in the text works.

So my first question is what fields are needed?

No matter what fields I use, I get this error:
{
"error": "invalid_request",
"error_description": "The grant type was not specified in the request"
}

But grant_type is specifically listed in the keys in postman. And I'm not sure what should go there. I've tried 'password' since it was in quotes I assumed it was a string, not an instruction. I've tried my application's password. I've tried my password. And various combinations. But I still get the message that grant type wasn't specified.

I would assume that if it were an authentication issue, I'd get a bad name or password error like I've gotten in the past. Authenticate first, then authorize.

So my second question is what should I use for grant_type?

And finally, do you have a timeline for when we need to move to V2?

Thanks,

Bob