Check Slug Availability
GET /v1/agents/slug-availability
Request fields
| Field | Location | Type | Required |
|---|---|---|---|
slug | query | string | Required |
agent_id | query | string | null | Optional |
Examples
Use the environment settings from Quickstart. Replace sample resource IDs with your own. The examples show the required request shape.
import { MaxClient } from "@elmax/api";
const max = new MaxClient({
baseURL: process.env.MAX_API_URL,
});
const result = await max.api.getV1AgentsSlugAvailability({
"query": {
"slug": "support-example"
}
});
console.log(result);import os
from elmax_ai import MaxClient
with MaxClient(base_url=os.environ["MAX_API_URL"]) as max:
result = max.api.get_v1_agents_slug_availability(**{'query': {'slug': 'support-example'}})
print(result)