# Asterisk Project : Asterisk 12 Asterisk REST API

Added by dlee , edited by wikibot on Nov 08, 2013

# Asterisk

Method | Path | Return Model | Summary
--- | --- | --- | ---
GET | /asterisk/info | AsteriskInfo | Gets Asterisk system information.
GET | /asterisk/variable | Variable | Get the value of a global variable.
POST | /asterisk/variable | void | Set the value of a global variable.

## GET /asterisk/info

Gets Asterisk system information.

### Query parameters

- only: string - Filter information returned
  - Allows comma separated values.

## GET /asterisk/variable

Get the value of a global variable.

### Query parameters

- variable: string - (required) The variable to get

### Error Responses

- 400 - Missing variable parameter.

## POST /asterisk/variable

Set the value of a global variable.

### Query parameters

- variable: string - (required) The variable to set
- value: string - The value to set the variable to

### Error Responses

- 400 - Missing variable parameter.