Skip to main content
GET
/
:projectId
/
api
/
v7
/
spaces
/
check-slug
Check Slug Availability
curl --request GET \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/check-slug
{
  "available": true
}
Checks if a slug is available for use in the current project. Useful for real-time validation in space creation forms.

Query Parameters

slug
string
required
The slug to check. Must match the slug pattern (letters, numbers, hyphens, underscores).

Response

available
boolean
true if the slug is not in use.
See also: useCheckSlugAvailability