The register endpoint creates a brand-new user account and immediately returns a Sanctum plain-text bearer token, so callers are authenticated in a single round trip without needing a separate login step.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ericcobasdev/careertrack-api/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
No authentication is required to call this endpoint.
Request Body
Full name of the user. Maximum 255 characters.
Email address for the account. Must be unique across all registered users. Maximum 255 characters.
Password for the account. Minimum 8 characters.
Confirmation of the chosen password. Must exactly match the
password field.Example Request
Response (201 Created)
A successful request returns HTTP201 Created with a JSON body containing the newly created user object and a bearer token.
The created user resource.
Sanctum plain-text bearer token. Include this value in the
Authorization header of all subsequent requests to protected endpoints.Error Responses
422 Unprocessable Content — Returned when validation fails, such as a duplicate email address, missing required fields, or a password confirmation mismatch.Store the returned token securely on the client side (for example, in an HTTP-only cookie or secure storage) and attach it to every subsequent request to a protected endpoint using the
Authorization: Bearer <token> header.