Skip to content

Users

User management and profile endpoints. All require authentication unless otherwise noted.


Get current user

GET /api/user

Returns the authenticated user's profile.

Authentication: Required

Example Request

bash
curl -H "Authorization: Bearer YOUR_TOKEN" \
  https://fangate.info/api/user

Response (200)

json
{
  "success": true,
  "errors_message": null,
  "data": {
    "id": 1,
    "type": "business",
    "email": "creator@example.com",
    "first_name": "John",
    "last_name": "Doe",
    "birth_date": "2000-01-30",
    "stripe_url": "https://connect.stripe.com/...",
    "fee": {
      "percentage": 10,
      "fixed": 0
    },
    "iban": "...",
    "bic_swift": "...",
    "is_adult_content": true,
    "is_verif_age": true,
    "currency_id": 1
  }
}

user.resource schema

FieldTypeDescription
idintegerUser ID
typestringAccount type (e.g. business)
emailstringEmail address
first_namestringFirst name
last_namestringLast name
birth_datestringDate of birth (YYYY-MM-DD)
stripe_urlstringStripe Connect onboarding URL
feeobjectPlatform fee structure
ibanstringBank IBAN
bic_swiftstringBank BIC/SWIFT
is_adult_contentbooleanDefault AVS flag for uploads
is_verif_agebooleanDefault Yoti requirement
currency_idintegerPreferred currency ID

Update user

PATCH /api/user/{user_id}

Updates user profile. Note: some fields (e.g. personal info, bank details) may be view-only. Creators can typically edit default AVS and age check settings.

Authentication: Required

Request Body

FieldTypeDescription
is_adult_contentbooleanDefault AVS setting
is_verif_agebooleanDefault Yoti requirement

Response (200)

json
{
  "success": true,
  "errors_message": null,
  "data": { "user": { ... } }
}

Update profile (adult content defaults)

PATCH /api/user/profile/has-adult

Updates the creator's default adult content and age verification settings.

Authentication: Required

Request Body

FieldTypeDescription
is_adult_contentbooleanDefault AVS flag
is_verif_agebooleanDefault Yoti requirement

Response (200)

json
{
  "success": true,
  "errors_message": null,
  "data": { "user": { ... } }
}

Delete user account

DELETE /api/user

Permanently deletes the authenticated user's account. GDPR compliant.

Authentication: Required

Response (200)

json
{
  "success": true,
  "errors_message": null,
  "data": "Account deleted"
}

FCM tokens

Store FCM token

POST /api/user/fcm

Stores the device's FCM (Firebase Cloud Messaging) token for push notifications.

Authentication: Required

Request Body

FieldTypeRequiredDescription
tokenstringYesFCM token

Response (200)

json
{
  "success": true,
  "errors_message": null,
  "data": "Token stored"
}

Delete FCM token

DELETE /api/user/fcm

Removes the FCM token. Pass the token in the request body or as configured.

Authentication: Required

Response (200)

json
{
  "success": true,
  "errors_message": null,
  "data": "Token removed"
}

Fangate API Documentation