# Extensions

Manage your extensions.

## Get extension number

> Get details by extension number.<br>

```json
{"openapi":"3.1.0","info":{"title":"PortSIP PBX Rest API","version":"22.0"},"tags":[{"name":"Extension","description":"Manage your extensions.\n"}],"servers":[{"url":"{protocol}://{hostname}:{port}/api","variables":{"protocol":{"description":"Self-hosted Enterprise Server protocol.","default":"https"},"hostname":{"description":"Self-hosted Enterprise Server hostname.","default":"HOSTNAME"},"port":{"description":"Self-hosted Enterprise Server port.","default":"8887"}}}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"paths":{"/extension_numbers/{extension_number}":{"get":{"tags":["Extension"],"operationId":"getExtensionNumber","summary":"Get extension number","description":"Get details by extension number.\n","parameters":[{"name":"extension_number","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":64,"pattern":"[0-9]{3,64}","description":"The extension number.\n"},"description":"The extension number to check.\n"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"allOf":[{"type":"string","description":"The unique ID of the resource.\n"}],"description":"The unique ID of the Ext.\n"},"extension_number":{"allOf":[{"type":"string","minLength":3,"maxLength":64,"pattern":"[0-9]{3,64}","description":"The extension number.\n"}],"description":"The extension number of the Ext.\n"},"name":{"type":"string","description":"The name of this Ext.\n"},"type":{"type":"string","enum":["EXTENSION","RING_GROUP","CALL_QUEUE","CONFERENCE_ROOM","VIRTUAL_RECEPTIONIST"],"description":"User agent client includes:\n- `EXTENSION`: type of extension type.\n- `RING_GROUP`: type of ring group.\n- `CALL_QUEUE`: type of call queue.\n- `CONFERENCE_ROOM`: type of conference room.\n- `VIRTUAL_RECEPTIONIST`: type of virtual receptionist.\n"}}}}}},"404":{"description":"Not Found"}}}}}}
```
