(thread) When we use the Rest API to create a new ...
# talk-kratos
d
(thread) When we use the Rest API to create a new identity a verification email doesn't get sent. POST https://{SLUG}.projects.oryapis.com/admin/identities
The schema being used has an email trait and is setup as the verification email:
Copy code
"email": {
          "type": "string",
          "format": "email",
          "title": "E-Mail",
          "<http://ory.sh/kratos|ory.sh/kratos>": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "webauthn": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              }
            },
            "recovery": {
              "via": "email"
            },
            "verification": {
              "via": "email"
            }
          },
          "maxLength": 320
        }
The identity is in a state that suggests it's going to send a verification email but in the Activity section of the Ory management interface I don't see it being sent and don't recieve the email.
Copy code
"verifiable_addresses": [
		{
			"id": "REDACTED",
			"value": "REDACTED",
			"verified": false,
			"via": "email",
			"status": "pending",
			"created_at": "2023-08-23T15:34:45.032144Z",
			"updated_at": "2023-08-23T15:34:45.032144Z"
		}
	],
Any ideas?
h
Hi, that is indeed true - the verification email is not sent in that case. The user can still verify the email themselves by going to the verify flow. In your UI you could show a banner “email not yet verified. verify now”, for example.
d
OK great thank you. So long as it's expected behavior that's all good. Cheers for the quick response