Skip to main content
POST
/
v1
/
auth
/
verify
Verify identifier code and set password
curl --request POST \
  --url https://api-sandbox.rinne.com.br/core/v1/auth/verify \
  --header 'Content-Type: application/json' \
  --data '{
  "identifier": "user@company.com",
  "code": "123456",
  "password": "SecurePassword123"
}'
{
  "message": "Identifier verified successfully",
  "user": {
    "id": "user123",
    "identifiers": [
      {
        "id": "id1",
        "type": "email",
        "value": "user@company.com",
        "verified": true,
        "created_at": "2024-01-01T00:00:00.000Z",
        "verified_at": "2024-01-01T01:00:00.000Z"
      }
    ],
    "primary_identifier": {
      "id": "id1",
      "type": "email",
      "value": "user@company.com",
      "verified": true,
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified_at": "2024-01-01T01:00:00.000Z"
    },
    "roles": [
      {
        "id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
        "name": "admin",
        "permissions": [
          "user.create",
          "user.read",
          "role.create"
        ],
        "description": "Administrator role with full access",
        "company_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
        "organization_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2794",
        "created_at": "2024-01-01T00:00:00.000Z",
        "updated_at": "2024-01-01T00:00:00.000Z"
      }
    ],
    "first_name": "John",
    "last_name": "Doe",
    "auth_methods": [
      "password"
    ],
    "suspended_at": "2024-01-01T00:00:00.000Z",
    "created_at": "2024-01-01T00:00:00.000Z",
    "updated_at": "2024-01-01T00:00:00.000Z",
    "metadata": {}
  }
}

Body

application/json
identifier
string
required

Email or phone number

Example:

"user@company.com"

code
string
required

6-digit verification code

Example:

"123456"

password
string<password>
required

New password (min 8 characters)

Example:

"SecurePassword123"

Response

Identifier verified and password set successfully

message
string
Example:

"Identifier verified successfully"

user
object