Navigation

Complete identification

Complete an identification request. This method supports protection against account takeover attacks. Supply the unique identification token Rupt SDK identify method.

Parameters


account string

The ID of the account you're completing the identification for.


Returns


Returns basic device information and metadata fields for the user.
POST /v2/proj/identification/:id/complete
import Rupt from 'rupt';
import axios from 'axios';

const { data } = await axios.post(
  'https://api.rupt.dev/v2/proj/identification/IDENTIFICATION_TOKEN/complete',
  { account: 'external_account_id' },
  { headers: { Authorization: `Bearer ${API_SECRET}` } }
);
Response
{
  "access": "651e72f5cc64cb48d6f860d7",
  "device": "651e72eccc64cb48d6f860c0",
  "new_device": false,
  "metadata_fields": {
    "key": ["value1", "value2", "..."]
  }
}