WatchAPIWatchAPI
GET
/auth.verifyToken

Query Parameters

token*string
Length1 <= length

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://watchapi.dev/api/trpc/auth.verifyToken?token=string"
{
  "id": "string",
  "email": "string",
  "name": "string",
  "avatar": "string",
  "role": "string"
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}