# Verify Token **POST /v1/auth/magic_links/verify** Verify the magic token of a magic link to authenticate the user. This endpoints verifies that the magic token sent in is valid and returns the method ID and verified user ID. ## HTTP Request `POST /v1/auth/magic_links/verify` ## Returns A successful response returns an object with `method_id`, `method_type`, and verified `user_id` properties. If session parameters are sent in, `session_token`, `session_jwt` and `session` will be included in the response. ## Servers - Production: https://api.moonkey.fun (Production) ## Authentication methods - Authorization ## Parameters ## Body parameters Content-type: application/json - **token** (string) `Required` Magic Token in the Magic Link received by the User - **session_expires_in** (integer) `Optional` Extend the session expiration time to N minutes from now, must be between 5 to 525600 minutes (365 days). This parameter will create a new session if there is no existing session along with a `session_token` and `session_jwt`. However, if a valid `session_token` or `session_jwt` is sent in, it will extend that session by the minutes specified. If not sent in, no session will be created by default. - **session_token** (string) `Optional` Unique session token to verify. - **session_jwt** (string) `Optional` Unique Session JWT to verify. ## Responses ### 200: OK #### Body Parameters: application/json (object) - **method_id** (string) Given ID of the method (email, phone_number, etc.). - **method_type** (string) Type of the auth method. Possible values: email, phone_number. - **user_id** (string) Given user ID of the user. - **session_token** (string) - **session_jwt** (string) - **session** (object) ### 400: Bad Request #### Body Parameters: application/json (object) - **status_code** (number) - **error_message** (string) - **error_type** (string) [Powered by Bump.sh](https://bump.sh)