Skip to main content
GET
/
auth
/
guest
Guest Login
curl --request GET \
  --url https://api.example.com/auth/guest
{
  "token": "<string>",
  "error": "<string>"
}

Request

This endpoint does not require any parameters.

Response

token
string
Authentication token for the guest session

Success Response

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Error Responses

error
string
Error message describing what went wrong

500 Internal Server Error

Returned when an unexpected error occurs during guest session creation.
{
  "error": "An unexpected error occurred. Please try again later."
}

Examples

curl -X GET https://api.planttogether.com/auth/guest

Build docs developers (and LLMs) love