Check repo slug

Check repo slug availability within a team or user scope.

Endpoints

GET /api/v1/teams/{team_slug}/check-repo-slug?slug=repo-slug
GET /api/v1/users/{username}/check-repo-slug?slug=repo-slug

Request

Query parameter: slug (required).

Usage

curl "$GHIT_API_URL/v1/teams/platform/check-repo-slug?slug=website"
curl "$GHIT_API_URL/v1/users/alice/check-repo-slug?slug=website"

Success

200 OK when available, 409 Conflict when taken (with suggestion).

{
  "available": false,
  "suggestion": "website-2"
}

Errors

  • 400 Bad Request when slug is missing or invalid.
  • 404 Not Found when the referenced user or team does not exist.