Passer au contenu principal
POST
/
jobs
/
verification-email
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.jobs.verificationEmail.create({
        userId: "user_id",
    });
}
main();
{
  "status": "completed",
  "type": "verification_email",
  "id": "job_0000000000000001",
  "created_at": "<string>"
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

user_id
string<user-id>
défaut:google-oauth2|1234
requis

user_id of the user to send the verification email to.

client_id
string<client-id>

client_id of the client (application). If no value provided, the global Client ID will be used.

identity
object

This must be provided to verify primary social, enterprise and passwordless email identities. Also, is needed to verify secondary identities.

organization_id
string<organization-id>
défaut:org_2eondWoxcMIpaLQc

(Optional) Organization ID – the ID of the Organization. If provided, organization parameters will be made available to the email template and organization branding will be applied to the prompt. In addition, the redirect link in the prompt will include organization_id and organization_name query string parameters.

Réponse

Job successfully created.

status
string
défaut:completed
requis

Status of this job.

type
string
défaut:verification_email
requis

Type of job this is.

id
string
défaut:job_0000000000000001
requis

ID of this job.

created_at
string

When this job was created.