SDKs

PHP

PHP

Install

Not published. Build from the php directory.

Package

voxgig-sdk/artil-sdk

API reference

Entity Operations
Access load, update
Address create, list, load, remove, update
AddressSetup create
Agent create, list, load, remove, update
Channel list
Client list
Connection load, update
Event create, list
Listener list
Me load
MeToken remove
Message create, list, load
Teammate list
Token list, remove
Webhook create, list, remove

Configuration

Set the server URL and credentials for your environment. Enable only the features your application needs.

Features

Set up the client

This setup fragment reads credentials from the environment. Use the API operation reference to supply input for each call.

<?php
require_once 'artil_sdk.php';
$client = new ArtilSDK(["apikey" => getenv("ARTIL_APIKEY")]);

Client defaults

{
  "base": "https://app.artil.ai/api",
  "auth": {
    "prefix": "Bearer"
  },
  "headers": {
    "content-type": "application/json"
  },
  "entity": {
    "access": {},
    "address": {},
    "address_setup": {},
    "agent": {},
    "channel": {},
    "client": {},
    "connection": {},
    "event": {},
    "listener": {},
    "me": {},
    "me_token": {},
    "message": {},
    "teammate": {},
    "token": {},
    "webhook": {}
  }
}