> ## Documentation Index
> Fetch the complete documentation index at: https://docs.basic.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Convert text to URL-friendly slug

> Converts any text into a URL-friendly slug by removing special characters, converting to lowercase, and replacing spaces with hyphens



## OpenAPI

````yaml get /utils/slugify
openapi: 3.0.0
info:
  title: Basic Admin API
  description: API for Basic Admin
  version: 0.1.0
servers:
  - url: https://api.basic.tech
    description: Production server
  - url: https://beta.api.basic.tech
    description: Staging server
  - url: http://localhost:3003
    description: Development server
security: []
tags:
  - name: auth
    description: Authentication and authorization end-points
  - name: projects
    description: Project management end-points
  - name: project-keys
    description: Project API key management end-points
  - name: project-users
    description: Project user management end-points
  - name: project-schema
    description: Project schema management end-points
  - name: project-upload
    description: Project image upload end-points
  - name: teams
    description: Project user management end-points
  - name: utils
    description: Utility end-points - very useful, trust me
externalDocs:
  url: https://docs.basic.tech
  description: Find more info here
paths:
  /utils/slugify:
    get:
      tags:
        - utils
      summary: Convert text to URL-friendly slug
      description: >-
        Converts any text into a URL-friendly slug by removing special
        characters, converting to lowercase, and replacing spaces with hyphens
      parameters:
        - schema:
            type: string
          in: query
          name: slug
          required: true
          description: Text to convert into a URL-friendly slug
      responses:
        '200':
          description: Successfully converted text to slug
          content:
            application/json:
              schema:
                description: Successfully converted text to slug
                type: object
                properties:
                  slug:
                    type: string
                    description: The converted URL-friendly slug
        '400':
          description: Bad Request - Missing slug parameter
          content:
            application/json:
              schema:
                description: Bad Request - Missing slug parameter
                type: object
                properties:
                  error:
                    type: string
                    description: Error message indicating missing slug parameter

````