braze-api
Version:
Track users, send messages, export data, and more with Braze API.
22 lines • 720 B
TypeScript
import type { UsersTrackObject } from './types';
/**
* User track.
*
* Use this endpoint to record custom events, purchases, and update user profile attributes.
*
* {@link https://www.braze.com/docs/api/endpoints/user_data/post_user_track/}
*
* @param apiUrl - Braze REST endpoint.
* @param apiKey - Braze API key.
* @param body - Request parameters.
* @param bulk - Bulk update.
* @returns - Braze response.
*/
export declare function track(apiUrl: string, apiKey: string, body: UsersTrackObject, bulk?: boolean): Promise<{
message: string;
attributes_processed?: number;
events_processed?: number;
purchases_processed?: number;
errors?: object[];
}>;
//# sourceMappingURL=track.d.ts.map