POST
/
accounts
curl --request POST \
  --url https://api.sandbox.goteal.co/accounts \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "user_id": "95a0e70b-fe02-4f47-aef9-2efff279df71",
  "payroll_provider": "quickbooks",
  "user_name": "john.smith@company.com",
  "password": "very-secret-password"
}'
{
  "account_id": "95a0e70b-fe02-4f47-aef9-2efff279df71",
  "payroll_provider": "quickbooks",
  "user_name": "john.smith@company.com",
  "status": "PENDING",
  "created_at": "2019-05-17T00:00:00.000Z",
  "mfa_enabled": true,
  "latest_pay_date": "2019-05-17T00:00:00.000Z",
  "authorization_url": "https://provider/authenticate?redirect_url=https://api.teal.com/auth&state=state&scope=read"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Response

201
application/json

Created

The response is of type object.