Creates an end-user.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const endUser = await conductor.endUsers.create({
companyName: 'Acme Inc.',
email: 'alice@acme.com',
sourceId: '12345678-abcd-abcd-example-1234567890ab',
});
console.log(endUser.id);
{
"id": "end_usr_1234567abcdefg",
"objectType": "end_user",
"createdAt": "2021-01-01T12:34:56.789Z",
"companyName": "Acme Inc.",
"sourceId": "12345678-abcd-abcd-example-1234567890ab",
"email": "bob@acme.com",
"integrationConnections": [
{
"id": "int_conn_1234567abcdefg",
"objectType": "integration_connection",
"createdAt": "2021-01-01T12:34:56.789Z",
"integrationSlug": "quickbooks_desktop",
"lastRequestAt": "2021-01-01T12:34:56.789Z",
"lastSuccessfulRequestAt": "2021-01-01T12:34:56.789Z"
}
]
}
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
Returns the end-user object after successful end-user creation.
The response is of type object
.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const endUser = await conductor.endUsers.create({
companyName: 'Acme Inc.',
email: 'alice@acme.com',
sourceId: '12345678-abcd-abcd-example-1234567890ab',
});
console.log(endUser.id);
{
"id": "end_usr_1234567abcdefg",
"objectType": "end_user",
"createdAt": "2021-01-01T12:34:56.789Z",
"companyName": "Acme Inc.",
"sourceId": "12345678-abcd-abcd-example-1234567890ab",
"email": "bob@acme.com",
"integrationConnections": [
{
"id": "int_conn_1234567abcdefg",
"objectType": "integration_connection",
"createdAt": "2021-01-01T12:34:56.789Z",
"integrationSlug": "quickbooks_desktop",
"lastRequestAt": "2021-01-01T12:34:56.789Z",
"lastSuccessfulRequestAt": "2021-01-01T12:34:56.789Z"
}
]
}
Creates an end-user.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const endUser = await conductor.endUsers.create({
companyName: 'Acme Inc.',
email: 'alice@acme.com',
sourceId: '12345678-abcd-abcd-example-1234567890ab',
});
console.log(endUser.id);
{
"id": "end_usr_1234567abcdefg",
"objectType": "end_user",
"createdAt": "2021-01-01T12:34:56.789Z",
"companyName": "Acme Inc.",
"sourceId": "12345678-abcd-abcd-example-1234567890ab",
"email": "bob@acme.com",
"integrationConnections": [
{
"id": "int_conn_1234567abcdefg",
"objectType": "integration_connection",
"createdAt": "2021-01-01T12:34:56.789Z",
"integrationSlug": "quickbooks_desktop",
"lastRequestAt": "2021-01-01T12:34:56.789Z",
"lastSuccessfulRequestAt": "2021-01-01T12:34:56.789Z"
}
]
}
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
Returns the end-user object after successful end-user creation.
The response is of type object
.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const endUser = await conductor.endUsers.create({
companyName: 'Acme Inc.',
email: 'alice@acme.com',
sourceId: '12345678-abcd-abcd-example-1234567890ab',
});
console.log(endUser.id);
{
"id": "end_usr_1234567abcdefg",
"objectType": "end_user",
"createdAt": "2021-01-01T12:34:56.789Z",
"companyName": "Acme Inc.",
"sourceId": "12345678-abcd-abcd-example-1234567890ab",
"email": "bob@acme.com",
"integrationConnections": [
{
"id": "int_conn_1234567abcdefg",
"objectType": "integration_connection",
"createdAt": "2021-01-01T12:34:56.789Z",
"integrationSlug": "quickbooks_desktop",
"lastRequestAt": "2021-01-01T12:34:56.789Z",
"lastSuccessfulRequestAt": "2021-01-01T12:34:56.789Z"
}
]
}