Accounts
Create an account
POST
/
accounts
Copy
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"
}'
Copy
{
"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
Body
application/json
Response
201
application/json
Created
The response is of type object
.
Copy
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"
}'
Copy
{
"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"
}
Assistant
Responses are generated using AI and may contain mistakes.