validateEmail (sdk.gen)

temps · email, email-validation, email-verification, http-client

Calls POST /emails/validate to validate an email address using bearer auth. Generated SDK helper with typed options, responses, and errors.

export const validateEmail = <ThrowOnError extends boolean = false>(options: Options<ValidateEmailData, ThrowOnError>): RequestResult<ValidateEmailResponses, ValidateEmailErrors, ThrowOnError> => (options.client ?? client).post<ValidateEmailResponses, ValidateEmailErrors, ThrowOnError>({
    security: [{ scheme: 'bearer', type: 'http' }],
    url: '/emails/validate',
    ...options,
    headers: {
        'Content-Type': 'application/json',
        ...options.headers
    }
});

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key