Skip to content

GET /v1/organizations/{organizationId}/projects/slug-availability

Reports whether createProject would accept slug right now. Advisory: only the create itself allocates, so a caller must still handle SLUG_TAKEN. A malformed slug is rejected on shape; a reserved slug, a slug held by an active project, and a slug retired with a deleted project each answer available: false with a reason.

photon.organizations.projects.checkProjectSlugAvailability(input: CheckProjectSlugAvailabilityInput, options?: RequestOptions): Promise<CheckProjectSlugAvailabilityOutput>
import { Photon } from "@photon-ai/api";

const photon = new Photon({
  headers: { Authorization: `Bearer ${process.env.PHOTON_API_TOKEN}` },
});
const result = await photon.organizations.projects.checkProjectSlugAvailability({
  path: {
    organizationId: "organizationId",
  },
  query: {
    slug: "slug",
  },
});
{
  "available": true,
  "slug": "string"
}

Parameters

Photon-VersionPhotonVersion

Selects the API contract date. Without it, the request is served as 2026-07-01.

organizationIdstringrequired
slugstringrequired

Returns

200 Whether the slug can be allocated, and why not. CheckProjectSlugAvailabilityResponse

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.

One of: AvailableProjectSlug

availabletruerequired
slugstringrequired

One of: UnavailableProjectSlug

availablefalserequired
reasonUnavailableProjectSlugReasonrequired
slugstringrequired
suggestionstring

304 Not Modified. Sent only when If-None-Match matches the ETag of an earlier 200 response for the same representation; no body. No body.

Headers: ETag, Photon-Version. The raw response carries these headers; see Raw responses.