> For the complete documentation index, see [llms.txt](https://elacitylabs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elacitylabs.gitbook.io/docs/api/reference/utility.md).

# Utility

Miscellaneous utility endpoints

## GET /quotes

> Get price quotes for supported tokens

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Utility","description":"Miscellaneous utility endpoints"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"paths":{"/quotes":{"get":{"tags":["Utility"],"summary":"Get price quotes for supported tokens","responses":{"200":{"description":"Price quotes"}}}}}}
```

## POST /quotes

> Post/update price quotes

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Utility","description":"Miscellaneous utility endpoints"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"paths":{"/quotes":{"post":{"tags":["Utility"],"summary":"Post/update price quotes","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Quotes updated"}}}}}}
```

## GET /isSiteLocked

> Check if site is in maintenance mode

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Utility","description":"Miscellaneous utility endpoints"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"paths":{"/isSiteLocked":{"get":{"tags":["Utility"],"summary":"Check if site is in maintenance mode","responses":{"200":{"description":"Lock status","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"data":{"type":"boolean"}}}}}}}}}}}
```

## GET /lock/{lockTime}

> Lock the site for maintenance

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Utility","description":"Miscellaneous utility endpoints"},{"name":"Admin","description":"Administrative operations"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained via POST /auth/getToken (24h expiration)"}}},"paths":{"/lock/{lockTime}":{"get":{"tags":["Utility","Admin"],"summary":"Lock the site for maintenance","parameters":[{"name":"lockTime","in":"path","required":true,"schema":{"type":"integer","description":"Lock duration in minutes"}}],"responses":{"200":{"description":"Site locked"}}}}}}
```

## GET /unlock

> Unlock the site

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Utility","description":"Miscellaneous utility endpoints"},{"name":"Admin","description":"Administrative operations"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT token obtained via POST /auth/getToken (24h expiration)"}}},"paths":{"/unlock":{"get":{"tags":["Utility","Admin"],"summary":"Unlock the site","responses":{"200":{"description":"Site unlocked"}}}}}}
```

## POST /turk/searchNames

> Search turk names

```json
{"openapi":"3.0.3","info":{"title":"REST Server API (Elacity)","version":"1.11.0"},"tags":[{"name":"Utility","description":"Miscellaneous utility endpoints"}],"servers":[{"url":"http://localhost:3001","description":"Local development server"},{"url":"https://staging.ela.city/api","description":"Staging Server"},{"url":"https://next.ela.city/api","description":"ESC-Network Server (Next)"},{"url":"https://base.ela.city/api","description":"Base-Network Server"}],"paths":{"/turk/searchNames":{"post":{"tags":["Utility"],"summary":"Search turk names","requestBody":{"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"200":{"description":"Search results"}}}}}}
```
