Create an ATA

Method

POST

Path

atas

Request Parameters

Name Type Description
name string The name for your ATA
description string A more detailed description for your ATA
domain string The domain for your ATA
mac_address string The MAC address for your ATA (12 hexadecimal digits)

Response

A JSON object with success, message, and data attributes. The data attribute contains an ATA Object.

Sample Call

curl https://api.phaxio.com/v2.1/atas \
  -u 'API_KEY:API_SECRET' \
  -F 'name=Test ATA' \
  -F 'description=This is a test ATA' \
  -F 'domain=ata.mywebsite.com' \
  -F 'mac_address=AABBCCDDEEFF'

Sample Response

{
  "success": true,
  "message": "ATA created successfully",
  "data": {
    "id": 1234,
    "name": "Test ATA",
    "description": "This is an example ATA",
    "user_phone_number": null,
    "domain": "ata.mywebsite.com",
    "mac_address": "AABBCCDDEEFF",
    "username": "iq5eoyp7fk",
    "password": "eaesbkecirqftiq82k3iptotxmjuz5g9"
  }
}