Create account

Description

Adds a new account to an organization. Note that this account must still be authorized in order to perform API calls against the Heroku Platform API. Use the browser to initiate an OAuth 2.0 operation by visiting the following URL:

https://manager.hirefire.io/oauth/request/HIREFIRE_API_KEY/ACCOUNT_ID

Where HIREFIRE_API_KEY is the user’s HireFire API Key, and ACCOUNT_ID is the id associated with the newly created Account resource.

The above URL will redirect the browser to Heroku to request authorization for the newly created account. After clicking “Allow” on Heroku’s OAuth page, the browser will be redirected back to HireFire, after which the newly created account has become authorized.

The same URL can also be used to reauthorize accounts were authorization was previously revoked by the user. In addition to that, it can also be used to switch Heroku accounts by logging into a different Heroku account prior to visiting the URL.

Definition

POST https://api.hirefire.io/accounts

Parameters

account[organization_id] required   string 
The id of the organization to create the account for 

Result Format

200 OK

{
  "account": {
    "id": "6439cf4f-1f98-48fb-8058-2bea32ef4e1f",
    "organization_id": "c0724202-68fd-45c9-9932-acd6795bfc54",
    "email": "user+heroku@example.com",
    "remaining_api_calls": 2399,
    "oauth": false,
    "created_at": "2015-01-01T00:00:00.000Z",
    "updated_at": "2015-01-01T00:00:00.000Z"
  }
}