attemptAffiliationVerification

@FormUrlEncoded
@POST(value = "organizations/{organization_id}/domains/{domain_id}/attempt_affiliation_verification")
abstract suspend fun attemptAffiliationVerification(@Path(value = "organization_id") organizationId: String, @Path(value = "domain_id") domainId: String, @Field(value = "code") code: String): ClerkResult<OrganizationDomain, ClerkErrorResponse>

Attempts to verify the affiliation of an organization domain using a verification code.

Note: You must call prepareAffiliationVerification first to receive the verification code via email.

Return

A ClerkResult containing either the updated OrganizationDomain on success or a ClerkErrorResponse on failure

Parameters

organizationId

The unique identifier of the organization

domainId

The unique identifier of the domain

code

The verification code received via email after calling prepareAffiliationVerification

See also