AI Monorepo API

tRPC API Documentation

63
Total Endpoints
63
Public Endpoints
29 Queries 34 Mutations
0
Protected Endpoints
0 Queries 0 Mutations

Analytics

query
Dashboard Analytics analytics.dashboard
Analytics

Returns aggregated analytics for the admin dashboard

Output Schema
{
  talentByMonth: Array<{
    date: string
    value: number
  }>
  schedulesByDay: Array<{
    date: string
    value: number
  }>
  imagesByMonth: Array<{
    date: string
    value: number
  }>
  schedulesByLocation: Array<{
    name: string
    value: number
  }>
  upcomingSchedules: Array<{
    date: string
    schedules: number
    talent: number
    locations: number
  }>
  badgeDistribution: Array<{
    name: string
    value: number
  }>
  topTags: Array<{
    name: string
    value: number
  }>
  imagesByStatus: Array<{
    name: string
    value: number
  }>
  menuPricing: Array<{
    name: string
    value: number
  }>
}
Test Endpoint

Auth

mutation
Create Account auth.createAccount
Auth

Register a new user account with email and password

Input Schema
{
  email: string
  password: string
  name: string
}
Output Schema
{
  token: string | null
  user: {
    id: string
    email: string
    name: string | null
    image: string | null
    emailVerified: boolean
  }
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Login auth.login
Auth

Authenticate with email and password

Input Schema
{
  email: string
  password: string
}
Output Schema
{
  token: string | null
  user: {
    id: string
    email: string
    name: string | null
    image: string | null
    emailVerified: boolean
  }
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

File

query
List Failed Images file.listFailed
Files

Returns root images with failed processing status

Output Schema
any[]
Test Endpoint
mutation
Retry Image Processing file.retryProcessing
Files

Retries processing for a failed image by re-generating missing variants

Input Schema
{
  imageId: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  fileId: string
  talentId: string
  variant: "Original" | "Watermarked" | "Thumbnail"
  status: "Processing" | "Completed" | "Failed"
  errorMessage: string | null
  width: number | null
  height: number | null
  sortOrder: number
  sourceImageId: string | null
  file: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string
    mimeType: string
    size: number
    blobKey: string
    container: string
    url: string | null
    uploadedById: string | null
  }
  variants: any[]
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Greeting

query
Hello greeting.hello
Greeting

Returns a hello message

Output Schema
{
  message: string
}
Test Endpoint

Image

query
Get Images by Talent image.byTalent
Images

Returns all images for a talent

Input Schema
{
  talentId: string
}
Output Schema
any[]
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
Get Talent Thumbnail image.thumbnailByTalent
Images

Returns the thumbnail image URL for a talent

Input Schema
{
  talentId: string
}
Output Schema
{
  url: string | null
  variant: "Original" | "Watermarked" | "Thumbnail" | null
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Create Image image.create
Images

Creates a new image

Input Schema
{
  fileId: string
  variant?: "Original" | "Watermarked" | "Thumbnail"
  width?: number | null
  height?: number | null
  sortOrder?: number
  talentId: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  fileId: string
  talentId: string
  variant: "Original" | "Watermarked" | "Thumbnail"
  status: "Processing" | "Completed" | "Failed"
  errorMessage: string | null
  width: number | null
  height: number | null
  sortOrder: number
  sourceImageId: string | null
  file: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string
    mimeType: string
    size: number
    blobKey: string
    container: string
    url: string | null
    uploadedById: string | null
  }
  variants: any[]
}
Test Endpoint
Optional fields (click to add):
variant width height sortOrder
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update Image image.update
Images

Updates an existing image

Input Schema
{
  id: string
  width?: number | null
  height?: number | null
  sortOrder?: number
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  fileId: string
  talentId: string
  variant: "Original" | "Watermarked" | "Thumbnail"
  status: "Processing" | "Completed" | "Failed"
  errorMessage: string | null
  width: number | null
  height: number | null
  sortOrder: number
  sourceImageId: string | null
  file: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string
    mimeType: string
    size: number
    blobKey: string
    container: string
    url: string | null
    uploadedById: string | null
  }
  variants: any[]
}
Test Endpoint
Optional fields (click to add):
width height sortOrder
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Delete Image image.delete
Images

Deletes an image and its variants from DB and blob storage

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  fileId: string
  talentId: string
  variant: "Original" | "Watermarked" | "Thumbnail"
  status: "Processing" | "Completed" | "Failed"
  errorMessage: string | null
  width: number | null
  height: number | null
  sortOrder: number
  sourceImageId: string | null
  file: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string
    mimeType: string
    size: number
    blobKey: string
    container: string
    url: string | null
    uploadedById: string | null
  }
  variants: any[]
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Location

query
List Locations location.list
Locations

Returns all locations

Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  city: string
  name: string
  phoneNumberId: string | null
  phoneNumber?: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string | null
    number: string
  } | null
}>
Test Endpoint
query
Get Location by ID location.byId
Locations

Returns a location by ID

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  city: string
  name: string
  phoneNumberId: string | null
  phoneNumber?: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string | null
    number: string
  } | null
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
Get Locations by City location.byCity
Locations

Returns locations by city name

Input Schema
{
  city: string
}
Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  city: string
  name: string
  phoneNumberId: string | null
  phoneNumber?: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string | null
    number: string
  } | null
}>
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Create Location location.create
Locations

Creates a new location

Input Schema
{
  city: string
  name: string
  phoneNumberId?: string | null
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  city: string
  name: string
  phoneNumberId: string | null
  phoneNumber?: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string | null
    number: string
  } | null
}
Test Endpoint
Optional fields (click to add):
phoneNumberId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update Location location.update
Locations

Updates an existing location

Input Schema
{
  id: string
  city?: string
  name?: string
  phoneNumberId?: string | null
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  city: string
  name: string
  phoneNumberId: string | null
  phoneNumber?: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string | null
    number: string
  } | null
}
Test Endpoint
Optional fields (click to add):
city name phoneNumberId
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Delete Location location.delete
Locations

Deletes a location

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  city: string
  name: string
  phoneNumberId: string | null
  phoneNumber?: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    name: string | null
    number: string
  } | null
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Menu

MenuService

PhoneNumber

query
List Phone Numbers phoneNumber.list
Phone Numbers

Returns all phone numbers

Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string | null
  number: string
}>
Test Endpoint
query
Get Phone Number by ID phoneNumber.getById
Phone Numbers

Returns a phone number by ID

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string | null
  number: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Create Phone Number phoneNumber.create
Phone Numbers

Creates a new phone number

Input Schema
{
  name?: string | null
  number: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string | null
  number: string
}
Test Endpoint
Optional fields (click to add):
name
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update Phone Number phoneNumber.update
Phone Numbers

Updates an existing phone number

Input Schema
{
  id: string
  name?: string | null
  number?: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string | null
  number: string
}
Test Endpoint
Optional fields (click to add):
name number
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Delete Phone Number phoneNumber.delete
Phone Numbers

Deletes a phone number

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string | null
  number: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Schedule

query
Get Today's Schedules schedule.forToday
Schedules

Returns all schedules for today with talent data

Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  locationId: string
  date: string | any
  startTime: string | null
  endTime: string | null
  notes: string | null
  location: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    city: string
    name: string
    phoneNumberId: string | null
    phoneNumber?: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string | null
      number: string
    } | null
  }
  talentId: string
  talent: {
    id: string
    nickname: string
  }
}>
Test Endpoint
query
Get Visiting Soon schedule.visitingSoon
Schedules

Returns pre-grouped visiting-soon entries (next 60 days)

Output Schema
Array<{
  talentId: string
  nickname: string
  city: string
  dateLabel: string
  thumbnailUrl: string | null
}>
Test Endpoint
query
Get Schedules by Talent schedule.byTalent
Schedules

Returns all schedules for a talent

Input Schema
{
  talentId: string
}
Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  locationId: string
  date: string | any
  startTime: string | null
  endTime: string | null
  notes: string | null
  location: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    city: string
    name: string
    phoneNumberId: string | null
    phoneNumber?: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string | null
      number: string
    } | null
  }
}>
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
Get Schedules by Location schedule.byLocation
Schedules

Returns all schedules for a location

Input Schema
{
  locationId: string
}
Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  locationId: string
  date: string | any
  startTime: string | null
  endTime: string | null
  notes: string | null
  location: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    city: string
    name: string
    phoneNumberId: string | null
    phoneNumber?: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string | null
      number: string
    } | null
  }
}>
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
Get Schedules by Date Range schedule.byDateRange
Schedules

Returns all schedules in a date range with talent and location data

Input Schema
{
  startDate: string | any
  endDate: string | any
}
Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  locationId: string
  date: string | any
  startTime: string | null
  endTime: string | null
  notes: string | null
  location: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    city: string
    name: string
    phoneNumberId: string | null
    phoneNumber?: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string | null
      number: string
    } | null
  }
  talentId: string
  talent: {
    id: string
    nickname: string
  }
}>
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Create Schedule schedule.create
Schedules

Creates a new schedule

Input Schema
{
  locationId: string
  date: string | any
  startTime?: string | null
  endTime?: string | null
  notes?: string | null
  talentId: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  locationId: string
  date: string | any
  startTime: string | null
  endTime: string | null
  notes: string | null
  location: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    city: string
    name: string
    phoneNumberId: string | null
    phoneNumber?: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string | null
      number: string
    } | null
  }
}
Test Endpoint
Optional fields (click to add):
startTime endTime notes
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update Schedule schedule.update
Schedules

Updates an existing schedule

Input Schema
{
  id: string
  locationId?: string
  date?: string | any
  startTime?: string | null
  endTime?: string | null
  notes?: string | null
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  locationId: string
  date: string | any
  startTime: string | null
  endTime: string | null
  notes: string | null
  location: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    city: string
    name: string
    phoneNumberId: string | null
    phoneNumber?: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string | null
      number: string
    } | null
  }
}
Test Endpoint
Optional fields (click to add):
locationId date startTime endTime notes
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Delete Schedule schedule.delete
Schedules

Deletes a schedule

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  locationId: string
  date: string | any
  startTime: string | null
  endTime: string | null
  notes: string | null
  location: {
    id: string
    createdAt: string | any
    updatedAt: string | any
    city: string
    name: string
    phoneNumberId: string | null
    phoneNumber?: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string | null
      number: string
    } | null
  }
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Service

query
List Services service.list
Services

Returns all services

Output Schema
Array<{
  id: string
  name: string
  createdAt: string | any
}>
Test Endpoint
query
Get Service by ID service.byId
Services

Returns a service by ID

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  name: string
  createdAt: string | any
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Create Service service.create
Services

Creates a new service

Input Schema
{
  name: string
}
Output Schema
{
  id: string
  name: string
  createdAt: string | any
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update Service service.update
Services

Updates a service

Input Schema
{
  name?: string
  id: string
}
Output Schema
{
  id: string
  name: string
  createdAt: string | any
}
Test Endpoint
Optional fields (click to add):
name
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Delete Service service.delete
Services

Deletes a service

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  name: string
  createdAt: string | any
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Tag

query
List Tags tag.list
Tags

Returns all tags

Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string
}>
Test Endpoint
query
Get Tag by ID tag.byId
Tags

Returns a tag by ID

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Create Tag tag.create
Tags

Creates a new tag

Input Schema
{
  name: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update Tag tag.update
Tags

Updates a tag

Input Schema
{
  name?: string
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string
}
Test Endpoint
Optional fields (click to add):
name
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Delete Tag tag.delete
Tags

Deletes a tag

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  name: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

Talent

query
List Talents talent.list
Talents

Returns all talents with relations (excluding schedules)

Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  nickname: string
  age: number | null
  height: string | null
  weight: string | null
  measurements: string | null
  nationality: string | null
  hair: string | null
  eyes: string | null
  tattoos: boolean | null
  enhanced: boolean | null
  tagline: string | null
  bio: string | null
  badge: "Visiting" | "Star" | "Vip" | "New" | null
  tags: Array<{
    tag: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string
    }
  }>
  images: any[]
}>
Test Endpoint
query
List Talent Summaries talent.listSummary
Talents

Returns lightweight talent list (id, nickname, badge only)

Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  nickname: string
  badge: "Visiting" | "Star" | "Vip" | "New" | null
}>
Test Endpoint
query
Get Talent by ID talent.byId
Talents

Returns a talent by ID with relations

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  nickname: string
  age: number | null
  height: string | null
  weight: string | null
  measurements: string | null
  nationality: string | null
  hair: string | null
  eyes: string | null
  tattoos: boolean | null
  enhanced: boolean | null
  tagline: string | null
  bio: string | null
  badge: "Visiting" | "Star" | "Vip" | "New" | null
  tags: Array<{
    tag: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string
    }
  }>
  menus: Array<{
    id: string
    createdAt: string | any
    updatedAt: string | any
    type: "Regular" | "Vip"
    durationMinutes: number
    price: number
  }>
  menuServices: Array<{
    id: string
    serviceId: string
    excludedFromPromo: boolean
    price: number | null
    service: {
      id: string
      name: string
      createdAt: string | any
    }
  }>
  schedules: Array<{
    id: string
    createdAt: string | any
    updatedAt: string | any
    locationId: string
    date: string | any
    startTime: string | null
    endTime: string | null
    notes: string | null
    location: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      city: string
      name: string
      phoneNumberId: string | null
      phoneNumber?: {
        id: string
        createdAt: string | any
        updatedAt: string | any
        name: string | null
        number: string
      } | null
    }
  }>
  images: any[]
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
Get Talent by Nickname talent.byNickname
Talents

Returns a talent by nickname with relations

Input Schema
{
  nickname: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  nickname: string
  age: number | null
  height: string | null
  weight: string | null
  measurements: string | null
  nationality: string | null
  hair: string | null
  eyes: string | null
  tattoos: boolean | null
  enhanced: boolean | null
  tagline: string | null
  bio: string | null
  badge: "Visiting" | "Star" | "Vip" | "New" | null
  tags: Array<{
    tag: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      name: string
    }
  }>
  menus: Array<{
    id: string
    createdAt: string | any
    updatedAt: string | any
    type: "Regular" | "Vip"
    durationMinutes: number
    price: number
  }>
  menuServices: Array<{
    id: string
    serviceId: string
    excludedFromPromo: boolean
    price: number | null
    service: {
      id: string
      name: string
      createdAt: string | any
    }
  }>
  schedules: Array<{
    id: string
    createdAt: string | any
    updatedAt: string | any
    locationId: string
    date: string | any
    startTime: string | null
    endTime: string | null
    notes: string | null
    location: {
      id: string
      createdAt: string | any
      updatedAt: string | any
      city: string
      name: string
      phoneNumberId: string | null
      phoneNumber?: {
        id: string
        createdAt: string | any
        updatedAt: string | any
        name: string | null
        number: string
      } | null
    }
  }>
  images: any[]
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Create Talent talent.create
Talents

Creates a new talent

Input Schema
{
  nickname: string
  age?: number | null
  height?: string | null
  weight?: string | null
  measurements?: string | null
  nationality?: string | null
  hair?: string | null
  eyes?: string | null
  tattoos?: boolean | null
  enhanced?: boolean | null
  tagline?: string | null
  bio?: string | null
  badge?: "Visiting" | "Star" | "Vip" | "New" | null
  tags?: string[]
  menus?: Array<{
    type: "Regular" | "Vip"
    durationMinutes: number
    price: number
  }>
  menuServices?: Array<{
    serviceId: string
    price?: number | null
  }>
  images?: Array<{
    fileId: string
    variant?: "Original" | "Watermarked" | "Thumbnail"
    width?: number | null
    height?: number | null
    sortOrder?: number
  }>
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  nickname: string
  age: number | null
  height: string | null
  weight: string | null
  measurements: string | null
  nationality: string | null
  hair: string | null
  eyes: string | null
  tattoos: boolean | null
  enhanced: boolean | null
  tagline: string | null
  bio: string | null
  badge: "Visiting" | "Star" | "Vip" | "New" | null
}
Test Endpoint
Optional fields (click to add):
age height weight measurements nationality hair eyes tattoos enhanced tagline bio badge tags menus menuServices images
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update Talent talent.update
Talents

Updates an existing talent

Input Schema
{
  id: string
  nickname?: string
  age?: number | null
  height?: string | null
  weight?: string | null
  measurements?: string | null
  nationality?: string | null
  hair?: string | null
  eyes?: string | null
  tattoos?: boolean | null
  enhanced?: boolean | null
  tagline?: string | null
  bio?: string | null
  badge?: "Visiting" | "Star" | "Vip" | "New" | null
  tags?: string[]
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  nickname: string
  age: number | null
  height: string | null
  weight: string | null
  measurements: string | null
  nationality: string | null
  hair: string | null
  eyes: string | null
  tattoos: boolean | null
  enhanced: boolean | null
  tagline: string | null
  bio: string | null
  badge: "Visiting" | "Star" | "Vip" | "New" | null
}
Test Endpoint
Optional fields (click to add):
nickname age height weight measurements nationality hair eyes tattoos enhanced tagline bio badge tags
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Delete Talent talent.delete
Talents

Deletes a talent

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  nickname: string
  age: number | null
  height: string | null
  weight: string | null
  measurements: string | null
  nationality: string | null
  hair: string | null
  eyes: string | null
  tattoos: boolean | null
  enhanced: boolean | null
  tagline: string | null
  bio: string | null
  badge: "Visiting" | "Star" | "Vip" | "New" | null
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.

User

query
Get Current User user.me
Users

Returns the authenticated user profile

Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  email: string
  name: string | null
}
Test Endpoint
mutation
Create User user.create
Users

Creates a new user via the auth admin API

Input Schema
{
  email: string
  name: string
  password: string
  role: "user" | "admin"
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  email: string
  name: string | null
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
Get User by ID user.getById
Users

Returns a user by their ID

Input Schema
{
  id: string
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  email: string
  name: string | null
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Update User user.update
Users

Updates an existing user

Input Schema
{
  id: string
  data: {
    email?: string
    name?: string
  }
}
Output Schema
{
  id: string
  createdAt: string | any
  updatedAt: string | any
  email: string
  name: string | null
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
mutation
Set User Password user.setPassword
Users

Sets a new password for a user via the auth admin API

Input Schema
{
  userId: string
  newPassword: string
}
Test Endpoint
💡 Tip: Schema is pre-filled with required fields. Click badges above to add optional fields.
query
List Users user.list
Users

Returns all users

Output Schema
Array<{
  id: string
  createdAt: string | any
  updatedAt: string | any
  email: string
  name: string | null
}>
Test Endpoint