Skip to main content

Read User by Token

POST 

/user-svc/user/by-token

Retrieve user information based on an authentication token.

Responses

OK

Schema

    activeOrganizationId string

    organizations

    object[]

  • Array [

  • createdAt string
    deletedAt string
    id string
    name string

    Full name of the organization

    slug string

    URL-friendly unique (inside the Singularon platform) identifier for the organization.

    updatedAt string
  • ]

  • user

    object

    contact

    object[]

    Contacts are used for login and identification purposes.

  • Array [

  • createdAt string
    deletedAt string
    id string

    The unique identifier, which can be a URL.

    Example values: "joe12" (singulatron username), "twitter.com/thejoe" (twitter url), "joe@joesdomain.com" (email)

    platform string

    Platform of the contact (e.g., "email", "phone", "twitter")

    primary boolean

    If this is the primary contact method

    updatedAt string
    userId string
    value string

    Value is the platform local unique identifier. Ie. while the id of a Twitter contact is twitter.com/thejoe, the value will be only thejoe. For email and phones the id and the value will be the same. This field mostly exists for display purposes.

    Example values: "joe12" (singulatron username), "thejoe" (twitter username), "joe@joesdomain.com" (email)

    verified boolean

    Whether the contact is verified

  • ]

  • createdAt string
    deletedAt string
    id string
    name string

    Full name of the organization.

    passwordHash string
    slug string

    URL-friendly unique (inside the Singularon platform) identifier for the user.

    updatedAt string
Loading...