User Registration API Documentation

Step 3: Register a User

Register a User

The /registerEndpoint endpoint allows you to create a new user in the system. Upon success, it returns a link for automatic login.

Request Details

  • URL: POST https://ex.pankek.io/registerEndpoint
  • Headers:
    • Content-Type: application/json
    • api-key: <YOUR_API_KEY>
  • Body:
  • {
                  "database": <YOUR_DATABASE>,
                  "link": <YOUR_SITE_LINK>,
      "address": "de, sachsen, 02763, zittau",
      "nickname": "testNickname",
      "email": "testmail@test.com",
      "password": "123456",
      "coin": 12,
      "birth_date": "2000-10-05",
      "gender": 0,
      "searchGender": 1,
      "ref": <YOUR_REF_ID>,
      "phone": "",
      "beziehungsstatus": "",
      "kinder": "",
      "leben": "",
      "raucher": "",
      "abschluss": "",
      "click_id": <YOUR_TRACKING_ID>,
      "notification": true,
      "verify": true
    }
    • Required Fields:
      • database: Your database name (get information).
      • link: Your website name (get information).
      • email: User’s email address (string).
      • ref: The reference id provided to you (string).
      • address: User’s address (string, comma-separated: country, city, zip, place).
        (to send empty value: "de, , , ")
      • password: User’s password (string).
      • coin: Coin amount (integer).
      • birth_date: Birth date (ISO format, e.g., "2000-10-05").
      • gender: Gender (0: Male, 1: Female).
      • searchGender: Preferred gender (0: Male, 1: Female).
      • click_id: Can you use your tracking id. (You must send the postback link)
        (to send empty value: "")
      • phone: type of string (to send empty value: "")
      • beziehungsstatus: type of string (to send empty value: "")
      • kinder: type of string (to send empty value: "")
      • leben: type of string (to send empty value: "")
      • raucher: type of string (to send empty value: "")
      • abschluss: type of string (to send empty value: "")
      • notification: true or false (boolean)
      • verify: true or false (boolean)

Response

Successful Response:

{
  "result": "OK",
  "link": "[LINK]?token=abc123&uid=xyz789"
}

Error Response:

{
  "result": "Username is already in use"
}

Example Code

const axios = require('axios');

axios.post('https://ex.pankek.io/registerEndpoint', {
  address: 'de, sachsen, 02763, zittau',
  nickname: 'testNickname',
  email: 'testmail@test.com',
  password: '123456',
  coin: 12,
  birth_date: '2000-10-05',
  gender: 0,
  searchGender: 1,
  notification: true,
  verify: true
}, {
  headers: {
    'Content-Type': 'application/json',
    'api-key': '3959798b-38d8-4d02-915d-a79825bc3a7b'
  }
})
.then(response => {
  const { result, link } = response.data;
  if (result === 'OK') {
    console.log('Registration successful, redirect link:', link);
    window.location.href = link;
  } else {
    console.error('Registration Error:', result);
  }
})
.catch(error => console.error('API Error:', error));

Navigation