Skip to content

Menu

POST /api/auth/sign-up/email

operationId: signUpWithEmailAndPassword

Sign up a user using email and password

Authentication

None. Anyone can call this.

Request body

application/json

  • namestringrequired

    The name of the user

  • emailstringrequired

    The email of the user

  • passwordstringrequired

    The password of the user

  • imagestring

    The profile image URL of the user

  • callbackURLstring

    The URL to use for email verification callback

  • rememberMetrue

    Only true or omission is accepted; AgentLand sessions have a fixed30-day lifetime.

Responses

200 Successfully created user

  • tokenstring | null

    Authentication token for the session

  • userobjectrequired
    • idstringrequired

      The unique identifier of the user

    • emailstring (email)required

      The email address of the user

    • namestringrequired

      The name of the user

    • imagestring (uri) | null

      The profile image URL of the user

    • emailVerifiedbooleanrequired

      Whether the email has been verified

    • createdAtstring (date-time)required

      When the user was created

    • updatedAtstring (date-time)required

      When the user was last updated

400 Bad Request. Usually due to missing parameters, or invalid parameters.

  • messagestringrequired

401 Unauthorized. Due to missing or invalid authentication.

  • messagestringrequired

403 Forbidden. You do not have permission to access this resource or to perform this action.

  • messagestring

404 Not Found. The requested resource was not found.

  • messagestring

422 Unprocessable Entity. User already exists or failed to create user.

  • messagestring

429 Too Many Requests. You have exceeded the rate limit. Try again later.

  • messagestring

500 Internal Server Error. This is a problem with the server that you cannot fix.

  • messagestring

All operations

POST /api/auth/sign-up/email · AgentLand