SDKs

Golang

Golang

Install

Not published. Build from the go directory.

Package

github.com/voxgig-sdk/artil-sdk/go

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.

package main

import (
    "os"
    sdk "github.com/voxgig-sdk/artil-sdk/go"
)

func main() {
    client := sdk.NewArtilSDK(map[string]any{"apikey": os.Getenv("ARTIL_APIKEY")})
    _ = client
}

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": {}
  }
}