UserDetail
Defined in: v1/schemas.ts:112
A detailed user object as returned from the /users/:id endpoint.
Includes role, sign-in metadata, IP address, tags, and an optional
list of course enrolments.
Remarks
Section titled “Remarks”src — the signup source of the user, visible in the Information tab
of the user profile in the Teachable dashboard. Can be used as a custom
identifier to associate a Teachable user with records in external systems
(e.g. a CRM ID, unique tag, or external user ID). Frequently null if
not set at signup.
tags — an array of tag objects assigned to the user. Each tag has a
single name field. May be an empty array if no tags are assigned.
Tags can be managed through the Teachable dashboard or assigned at
signup via the src field.
last_sign_in_ip — only populated for users who have signed in
at least once.
Course array — uses course_name (not name) based on observed
live API responses, which differs from the official documentation.
Extends
Section titled “Extends”output<typeofUserDetailSchema>
Properties
Section titled “Properties”courses?
Section titled “courses?”
optionalcourses?: {completed_at?:string|null;course_id?:number;course_name?:string;enrolled_at?:string|null;is_active_enrollment?:boolean;percent_complete?:number; }[]
Defined in: v1/schemas.ts:79
completed_at?
Section titled “completed_at?”
optionalcompleted_at?:string|null
course_id?
Section titled “course_id?”
optionalcourse_id?:number
course_name?
Section titled “course_name?”
optionalcourse_name?:string
enrolled_at?
Section titled “enrolled_at?”
optionalenrolled_at?:string|null
is_active_enrollment?
Section titled “is_active_enrollment?”
optionalis_active_enrollment?:boolean
percent_complete?
Section titled “percent_complete?”
optionalpercent_complete?:number
Inherited from
Section titled “Inherited from”z.infer.courses
email:
string
Defined in: v1/schemas.ts:69
Inherited from
Section titled “Inherited from”z.infer.email
id:
number
Defined in: v1/schemas.ts:68
Inherited from
Section titled “Inherited from”z.infer.id
last_sign_in_at?
Section titled “last_sign_in_at?”
optionallast_sign_in_at?:string|null
Defined in: v1/schemas.ts:73
Inherited from
Section titled “Inherited from”z.infer.last_sign_in_at
last_sign_in_ip?
Section titled “last_sign_in_ip?”
optionallast_sign_in_ip?:string|null
Defined in: v1/schemas.ts:74
Inherited from
Section titled “Inherited from”z.infer.last_sign_in_ip
optionalname?:string|null
Defined in: v1/schemas.ts:70
Inherited from
Section titled “Inherited from”z.infer.name
optionalrole?:string
Defined in: v1/schemas.ts:72
Inherited from
Section titled “Inherited from”z.infer.role
sign_in_count?
Section titled “sign_in_count?”
optionalsign_in_count?:number
Defined in: v1/schemas.ts:75
Inherited from
Section titled “Inherited from”z.infer.sign_in_count
optionalsrc?:string|null
Defined in: v1/schemas.ts:71
Inherited from
Section titled “Inherited from”z.infer.src
optionaltags?: {name:string; }[]
Defined in: v1/schemas.ts:76
name:
string
Inherited from
Section titled “Inherited from”z.infer.tags