AskSiya
Developer guide

The AskSiya support link

For software companies that keep tickets in their own system. You host one HTTPS endpoint; AskSiya sends it signed JSON whenever Siya needs your system to check a caller, read their account, list their tickets or open one. Your system emails and checks the caller's code itself. This page is the whole contract, version 2.

Using Zendesk? You do not need this page: connect Zendesk directly on the Support desk page of your AskSiya dashboard. The support link is for any other ticket system, and a developer builds it.

Siya checks every caller before she answers anything about their account (how Siya handles support calls). With the support link, your system does the check: it emails a 6-digit code to the address on the account, checks the code the caller reads out, and gives AskSiya a short session. AskSiya sends no code of its own for your callers.

The account actions, account_summary, list_tickets and create_ticket, carry only that session: no email address, no name and no customer id. So a leaked signing secret reads nothing without the customer's inbox.

Step one

Connecting your endpoint

  1. Build the endpoint. One https URL on port 443, reachable from the public internet, that answers the six actions below, checks the signature on every request and meets the receiver requirements.
  2. Enter the URL. Open the Support desk page in your AskSiya dashboard, choose Your own system and enter the address. AskSiya accepts https on port 443 only.
  3. Store the signing secret. AskSiya makes it (it starts with whsec_) and shows it once. Keep it on your server, never in front-end code. Regenerate makes a new secret that replaces the old one, so update your endpoint at the same time. Changing the endpoint address also makes a new signing secret, shown once, while saving the same address again keeps the one you have. Put the new secret in your receiver before the next call, because every request is signed with it from then on.
  4. Press Test connection. AskSiya sends ping with version 2. Only a version 2 receiver answers {"ok":true}, so a pass means your system is on version 2. If your endpoint answers 422 invalid, the Support desk page says your system answered, but not to support link version 2.
  5. Set your ticket categories. Between 1 and 10, each up to 40 characters. The defaults are Billing, Technical issue, Account, Feature request and Other, and Siya files every ticket under one of them.
The call

How a call uses the link, in order

Only find_customer and verify_code run before the caller is verified.

  1. The caller gives the email on their account. Siya asks for it before anything about an account or a ticket, and reads it back letter by letter.
  2. AskSiya sends find_customer with that email. You answer at once, the same way for every address: code_sent true, a verification_id and expires_in 600.
  3. Your system emails the code, after answering, and only when the address belongs to a customer you can serve. Otherwise you send nothing, and that verification_id never verifies. Siya tells the caller the same words either way: if the address is on an account, a 6-digit code is on its way.
  4. The caller reads the code out, and AskSiya sends verify_code with the verification_id and the 6 digits. You check them and answer with a session, the customer's name and expires_in.
  5. The session opens the account actions. account_summary, list_tickets and create_ticket send the session, and your system knows the caller only from it. It lasts at most 30 minutes from verification.
Requests

What every request looks like

AskSiya sends an HTTP POST with a JSON body and four headers.

Header Value
Content-Typeapplication/json
User-AgentAskSiya-Support-Link/2
Accept-Encodingidentity: answer uncompressed (see the limits below).
X-AskSiya-Signaturet=<unix seconds>,v1=<signature>, where the signature is the hex HMAC-SHA256 of <t>.<raw body>, keyed with your signing secret. Answer a bad signature, or a t more than 300 seconds from your clock, with 401 {"ok":false}.

Every body carries the same four fields, plus the fields of its action:

  • version is the JSON number 2. Answer anything else with 422 invalid.
  • action is one of the six below.
  • request_id is a UUID that is new on every HTTP attempt. Use it in your logs, and never to spot a repeat.
  • business is your business name as it is set in AskSiya.

Ignore any field you do not know. A request body is at most 32 KB, and every answer is due within 5 seconds.

A code check, as it arrives:

POST /asksiya HTTP/1.1
Content-Type: application/json
User-Agent: AskSiya-Support-Link/2
Accept-Encoding: identity
X-AskSiya-Signature: t=1796040000,v1=<64 hex characters>

{
  "version": 2,
  "action": "verify_code",
  "request_id": "9a4c7e21-0b5d-4f3a-8c6e-1d2f3a4b5c6d",
  "business": "Northside Software",
  "verification_id": "vrf_5b1e9c0d7a2f4e6b",
  "code": "481027"
}

And a good answer:

HTTP/1.1 200 OK
Content-Type: application/json

{
  "verified": true,
  "session": "ses_9f3b1e6d0a7c5b2ec41f0a9b7e2d4c8a",
  "name": "Sam Rivera",
  "expires_in": 1800
}
Actions

Six actions, one endpoint

Every action needs an answer: a 2xx with the JSON shown in its example below, or a refusal, HTTP 422 with one of the codes listed for that action. What AskSiya does with each answer is further down.

Action When AskSiya sends it Extra request fields Refusal codes (HTTP 422)
pingTest connection on the Support desk page.NoneNone
find_customerA caller gives the email on their account.emailinvalid, too_many_codes
verify_codeThe caller reads out the code.verification_id, code (6 digits)code_invalid, too_many_tries, code_expired, not_allowed
account_summaryA verified caller asks about their account.sessionnot_verified, not_allowed
list_ticketsA verified caller asks about their tickets.session, limit (5)not_verified, not_allowed
create_ticketA verified caller wants a ticket.session, subject, description, category, severity, reference, channelnot_verified, not_allowed, ticket_limit, help_center_only, invalid

ping

{
  "version": 2,
  "action": "ping",
  "request_id": "3f2b8c1d-6a4e-4f7b-9d20-5e1a7c9b4f60",
  "business": "Northside Software"
}

Answer, which only a version 2 receiver gives:

{"ok": true}

find_customer

{
  "version": 2,
  "action": "find_customer",
  "request_id": "b7e1c2d4-5f60-4a8b-9c1d-2e3f4a5b6c7d",
  "business": "Northside Software",
  "email": "sam@example.com"
}

Answer, the same for every address, then email the code only if the address belongs to a customer you can serve. No name and no customer id:

{
  "code_sent": true,
  "verification_id": "vrf_5b1e9c0d7a2f4e6b",
  "expires_in": 600
}

verify_code

{
  "version": 2,
  "action": "verify_code",
  "request_id": "9a4c7e21-0b5d-4f3a-8c6e-1d2f3a4b5c6d",
  "business": "Northside Software",
  "verification_id": "vrf_5b1e9c0d7a2f4e6b",
  "code": "481027"
}

Answer, once the session is stored on your side:

{
  "verified": true,
  "session": "ses_9f3b1e6d0a7c5b2ec41f0a9b7e2d4c8a",
  "name": "Sam Rivera",
  "expires_in": 1800
}

account_summary

{
  "version": 2,
  "action": "account_summary",
  "request_id": "0c8d2e4f-6a1b-4c3d-8e5f-7a9b1c2d3e4f",
  "business": "Northside Software",
  "session": "ses_9f3b1e6d0a7c5b2ec41f0a9b7e2d4c8a"
}

Answer with facts for Siya to read out:

{
  "facts": [
    {"label": "Plan", "value": "Growth"},
    {"label": "Seats", "value": "12 of 15 used"},
    {"label": "Renews", "value": "January 14, 2027"}
  ],
  "note": "Billed yearly."
}

list_tickets

{
  "version": 2,
  "action": "list_tickets",
  "request_id": "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b",
  "business": "Northside Software",
  "session": "ses_9f3b1e6d0a7c5b2ec41f0a9b7e2d4c8a",
  "limit": 5
}

Answer:

{
  "tickets": [
    {
      "id": "52011",
      "subject": "Invoice shows the old company name",
      "status": "Waiting on you",
      "updated_at": "2026-11-28T16:05:00Z"
    }
  ]
}

create_ticket

{
  "version": 2,
  "action": "create_ticket",
  "request_id": "7d1e3f5a-2b4c-4d6e-9f0a-1b2c3d4e5f6a",
  "business": "Northside Software",
  "session": "ses_9f3b1e6d0a7c5b2ec41f0a9b7e2d4c8a",
  "subject": "Large CSV exports stop at 99 percent",
  "description": "Exports of big reports stop at 99 percent and never download. Started this week.",
  "category": "Technical issue",
  "severity": "high",
  "reference": "SIYA-T-7C31A9E2",
  "channel": "phone"
}

Answer:

{
  "ticket_id": "52019",
  "ticket_url": "https://support.example.com/t/52019"
}

Siya reads 52019 back to the caller digit by digit. The ticket_url is optional; it is shown on your AskSiya Tickets page and is never read to the caller.

Limits

  • find_customer sends the email trimmed and lower-cased; match it without regard to case.
  • verify_code sends a code of exactly 6 digits, never anything else.
  • create_ticket sends a subject of up to 120 characters and a description of up to 4,000; a severity of low, medium, high or critical; a category from your list; the AskSiya ticket code as reference, such as SIYA-T-7C31A9E2, which you store as an opaque string without parsing it or assuming its length; and channel "phone".
  • Your find_customer answer: a verification_id of up to 64 printable ASCII characters.
  • Your verify_code answer: a session of up to 128 printable ASCII characters, a name of up to 100 characters, and expires_in in seconds. AskSiya counts the session as expired after expires_in seconds or 30 minutes, whichever comes first, and the caller has to verify again after that.
  • Your account_summary answer: at most 20 facts, each label up to 40 characters and each value up to 200, and an optional note of up to 500.
  • Your list_tickets answer: up to limit tickets, each with updated_at in ISO-8601.
  • Your create_ticket answer: a ticket_id of up to 40 characters, which Siya reads to the caller. ticket_url is optional.
  • Answer within 5 seconds, uncompressed, in at most 64 KB. AskSiya sends Accept-Encoding: identity and treats an answer with any other Content-Encoding (gzip, br, deflate) as a failure, so switch off response compression on this route: Express compression(), PHP zlib.output_compression, a CDN or proxy in front of it.

Everything you return is cleaned and length-capped, then handed to Siya as data. It is never followed as an instruction, so a ticket subject that says "ignore your rules" is just a subject.

Your side

What your receiver must do

Your system sends and checks every code, so these rules are what stand between a caller and an account.

  • The code is 6 digits, lasts 10 minutes, works once, and is dead after 5 wrong tries.
  • A correct code is spent only once its session is stored, so a retry after a 503 with the same code is safe.
  • The session lasts at most 30 minutes from verification, and use does not extend it.
  • Codes per address are at least a minute apart, at most 3 an hour and at most 10 a day, counted whether or not the address has an account, plus an hourly cap across the whole link. Past a limit, refuse with too_many_codes, in words that do not reveal whether the address has an account.
  • The same find_customer answer for every address, and the code email goes out only after you have answered.
  • No code in the email subject.
  • Never log the code, the session or the email address.

The reference field is the idempotency key: never create a ticket twice

Every create_ticket for one AskSiya ticket carries the same reference, its SIYA-T code. If you already hold a ticket with that reference, answer 2xx with that ticket's ticket_id and create nothing.

request_id is new on every HTTP attempt, so it can never tell you that a request is a repeat. Use it for your logs only.

Security

Check the signature before you trust the body

Your endpoint is on the public internet. Anyone who learns the URL can POST to it.

  1. Read the raw body before any JSON parsing. Re-serialized JSON does not reproduce the bytes AskSiya signed.
  2. Split the header on commas into t and v1.
  3. Refuse an old or future t: more than 300 seconds from your clock, either way.
  4. Compute the HMAC-SHA256 of t, a full stop, then the raw body, keyed with your signing secret, as lowercase hex.
  5. Compare it with v1 in constant time, and answer 401 {"ok":false} on any mismatch.

PHP:

<?php
// True only for a request AskSiya signed in the last 5 minutes.
// $rawBody is the request body exactly as it arrived.
function asksiya_signature_ok(string $rawBody, string $header, string $secret): bool
{
    $t = null;
    $v1 = null;
    foreach (explode(',', $header) as $part) {
        $pair = explode('=', trim($part), 2);
        if (count($pair) !== 2) {
            continue;
        }
        if ($pair[0] === 't') {
            $t = $pair[1];
        } elseif ($pair[0] === 'v1') {
            $v1 = $pair[1];
        }
    }
    if ($t === null || $v1 === null || !ctype_digit($t)) {
        return false;
    }
    if (abs(time() - (int) $t) > 300) {
        return false; // too old or too far ahead: a replay or a bad clock
    }
    $expected = hash_hmac('sha256', $t . '.' . $rawBody, $secret);
    return hash_equals($expected, $v1);
}

In the endpoint, with the code check, the idempotency key and a refusal:

$raw = file_get_contents('php://input');
$secret = (string) getenv('ASKSIYA_SUPPORT_LINK_SECRET');
header('Content-Type: application/json');

function refuse(string $code, string $message): void
{
    // A refusal on purpose: HTTP 422, never retried as-is.
    http_response_code(422);
    echo json_encode(['ok' => false, 'code' => $code, 'message' => $message]);
}

if (!asksiya_signature_ok($raw, $_SERVER['HTTP_X_ASKSIYA_SIGNATURE'] ?? '', $secret)) {
    http_response_code(401);
    echo json_encode(['ok' => false]);
    exit;
}
$req = json_decode($raw, true);
if (!is_array($req) || ($req['version'] ?? null) !== 2) {
    refuse('invalid', 'This system answers support link version 2 only.');
    exit;
}

switch ($req['action'] ?? '') {
    case 'ping':
        echo json_encode(['ok' => true]);
        break;

    case 'find_customer':
        // The same answer for every address. your_start_check() applies the
        // per-address limits (counted whether or not the address has an
        // account) and queues the code email to go out AFTER this answer,
        // only for a customer you can serve.
        $check = your_start_check($req['email'] ?? '');
        if ($check === 'too_many') {
            refuse('too_many_codes', 'Too many codes have been asked for this address. Please try again later.');
            break;
        }
        echo json_encode(['code_sent' => true, 'verification_id' => $check, 'expires_in' => 600]);
        break;

    case 'verify_code':
        // Spend a correct code only once its session is stored, so a retry
        // after a 503 with the same code still works.
        $result = your_check_code($req['verification_id'] ?? '', $req['code'] ?? '');
        if (isset($result['refusal'])) { // code_invalid, too_many_tries, code_expired or not_allowed
            refuse($result['refusal'], $result['message']);
            break;
        }
        echo json_encode(['verified' => true, 'session' => $result['session'],
                          'name' => $result['name'], 'expires_in' => 1800]);
        break;

    case 'create_ticket':
        $customer = your_customer_for_session($req['session'] ?? '');
        if ($customer === null) {
            refuse('not_verified', 'Your check has expired. Please ask for a new code.');
            break;
        }
        // reference is the idempotency key: a repeat gets the ticket you
        // already made, not a second one.
        $existing = your_ticket_by_reference($customer, $req['reference']);
        if ($existing !== null) {
            echo json_encode(['ticket_id' => $existing['id']]);
            break;
        }
        // Siya tells the caller the message, so write it for them.
        if (your_phone_tickets_used_up($customer)) {
            refuse('ticket_limit', 'Your plan\'s phone tickets for this month are used up, but you can still email our support team.');
            break;
        }
        $id = your_create_ticket($customer, $req);
        echo json_encode(['ticket_id' => $id, 'ticket_url' => 'https://support.example.com/t/' . $id]);
        break;

    // account_summary and list_tickets find the customer from the session the same way.
    default:
        http_response_code(400);
}

Node.js:

const crypto = require("crypto");

// True only for a request AskSiya signed in the last 5 minutes.
// rawBody is the request body exactly as it arrived, as a Buffer.
function asksiyaSignatureOk(rawBody, header, secret) {
  let t = null;
  let v1 = null;
  for (const part of String(header || "").split(",")) {
    const i = part.indexOf("=");
    if (i < 0) continue;
    const key = part.slice(0, i).trim();
    const value = part.slice(i + 1).trim();
    if (key === "t") t = value;
    else if (key === "v1") v1 = value;
  }
  if (!t || !v1 || !/^\d+$/.test(t)) return false;
  const now = Math.floor(Date.now() / 1000);
  if (Math.abs(now - Number(t)) > 300) return false; // a replay or a bad clock
  const expected = crypto
    .createHmac("sha256", secret)
    .update(t + ".")
    .update(rawBody)
    .digest("hex");
  const a = Buffer.from(expected, "utf8");
  const b = Buffer.from(v1, "utf8");
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

In an Express endpoint, with the code check, the idempotency key and a refusal:

const express = require("express");
const app = express();

// A refusal on purpose: HTTP 422, never retried as-is.
const refuse = (res, code, message) => res.status(422).json({ ok: false, code, message });

// express.raw keeps the bytes the signature covers; parse JSON after the check.
app.post("/asksiya", express.raw({ type: "application/json" }), async (req, res) => {
  if (!asksiyaSignatureOk(req.body, req.get("X-AskSiya-Signature"), process.env.ASKSIYA_SUPPORT_LINK_SECRET)) {
    return res.status(401).json({ ok: false });
  }
  const body = JSON.parse(req.body.toString("utf8"));
  if (body.version !== 2) return refuse(res, "invalid", "This system answers support link version 2 only.");

  if (body.action === "ping") return res.json({ ok: true });

  if (body.action === "find_customer") {
    // The same answer for every address. yourStartCheck() applies the
    // per-address limits (counted whether or not the address has an
    // account) and queues the code email to go out AFTER this answer,
    // only for a customer you can serve.
    const check = await yourStartCheck(body.email);
    if (check.tooMany) {
      return refuse(res, "too_many_codes", "Too many codes have been asked for this address. Please try again later.");
    }
    return res.json({ code_sent: true, verification_id: check.id, expires_in: 600 });
  }

  if (body.action === "verify_code") {
    // Spend a correct code only once its session is stored, so a retry
    // after a 503 with the same code still works.
    const result = await yourCheckCode(body.verification_id, body.code);
    if (result.refusal) return refuse(res, result.refusal, result.message);
    return res.json({ verified: true, session: result.session, name: result.name, expires_in: 1800 });
  }

  if (body.action === "create_ticket") {
    const customer = await yourCustomerForSession(body.session);
    if (!customer) return refuse(res, "not_verified", "Your check has expired. Please ask for a new code.");

    // reference is the idempotency key: a repeat gets the ticket you
    // already made, not a second one.
    const existing = await yourTicketByReference(customer, body.reference);
    if (existing) return res.json({ ticket_id: existing.id });

    // Siya tells the caller the message, so write it for them.
    if (await yourPlanIsHelpCenterOnly(customer)) {
      return refuse(res, "help_center_only", "Your plan includes help center support only, so we cannot open a ticket by phone.");
    }
    const id = await yourCreateTicket(customer, body);
    return res.json({ ticket_id: id, ticket_url: "https://support.example.com/t/" + id });
  }

  // account_summary and list_tickets find the customer from the session the same way.
  return res.status(400).end();
});

Check your HMAC step against this example. Its timestamp is long past, so a full check refuses it: test the HMAC on its own.

secret: whsec_0123456789abcdef0123456789abcdef0123456789abcdef
t:      1796040000
body:   {"version":2,"action":"ping","request_id":"3f2b8c1d-6a4e-4f7b-9d20-5e1a7c9b4f60","business":"Northside Software"}
v1:     003fb87f19690c0821203440ad0175c2c96278f73bb0f4ee4bff36f696979a50

The secret above is an example; yours comes from the Support desk page. If yours ever leaks, press Regenerate and put the new one on your server. A leaked secret still reads no account: every account action needs a session, and only a code from the customer's inbox gets one.

Answers

Success, a refusal, or a failure

AskSiya reads every answer as one of three things, and never retries a refusal as it was sent.

Your answer What it is
A 2xx with the action's JSONSuccess.
HTTP 422 with {"ok":false,"code":"..","message":".."}A refusal on purpose. A code AskSiya does not know is read as not_allowed.
A 503 with {"ok":false}, any other non-2xx, JSON AskSiya cannot read, {"ok":false} on a 2xx, a compressed answer, more than 64 KB, a verification_id or session that is too long or not printable ASCII, or no answer within 5 secondsA failure.

Refusal codes

  • invalid: the request is not one your system can accept as sent, such as an unreadable address on find_customer or a version other than 2.
  • too_many_codes: on find_customer, a code limit for that address or for the whole link is reached.
  • code_invalid: the code is wrong.
  • too_many_tries: the 5th wrong try; that code is dead.
  • code_expired: the verification_id is unknown, its code is already used, or it is older than 10 minutes.
  • not_verified: the session is not one you hold, or it has expired.
  • not_allowed: on verify_code, the code is right but the customer can no longer be served; anywhere else, anything you refuse that has no code of its own.
  • ticket_limit: the caller's ticket allowance for the period is used.
  • help_center_only: the caller's plan includes help center support only.

The message is one plain sentence of up to 200 characters, written for the caller to hear, such as "Your plan includes help center support only, so we cannot open a ticket by phone." Keep internal detail out of it.

On the call

What AskSiya does with each answer

Action Your answer What AskSiya does
find_customer2xx with code_sent trueKeeps the verification_id, replacing any earlier one on the call. Siya tells the caller that if the address is on an account, a 6-digit code is on its way, and asks them to read it out.
find_customerinvalidSiya asks for the address again.
find_customertoo_many_codesSiya tells the caller your message and does not ask for another code now.
find_customerAny other refusalThe same "on its way" words as a 2xx, with no verification_id kept. Your message is never read: before the check, any reason could tell a stranger that the address has an account.
find_customerA failureSiya says she cannot check accounts right now and offers to take a message. AskSiya does not send it again, because a second find_customer would be a second code.
verify_codeNever sentA code that is not exactly 6 digits: Siya says it does not match, and AskSiya never sends it, so it never counts as a wrong try.
verify_code2xx with verified trueThe caller is verified, for this call only. AskSiya keeps the session, and Siya may use the name to address the caller.
verify_codecode_invalidSiya says the code does not match, in the same words as any other mismatch.
verify_codetoo_many_tries, code_expiredAskSiya drops the verification_id, and Siya offers to send a fresh code.
verify_codenot_allowedSiya tells the caller your message and offers to take a message. No account action runs for the rest of the call.
verify_codeinvalid, or a failureSiya says she cannot check the code right now and asks the caller to try again in a moment. The same code may be sent again.
account_summary, list_tickets, create_ticket2xxSiya reads out the facts or the tickets, or reads the ticket_id back digit by digit. For create_ticket, AskSiya sends no ticket email of its own: any notification about the ticket comes from your system, under its own settings.
account_summary, list_ticketsnot_verifiedNot final. AskSiya drops the session and the caller is no longer verified; Siya says the check has expired and offers a fresh code.
create_ticketnot_verifiedHandled like a failure: the ticket is kept in AskSiya, and Siya gives the caller the AskSiya reference and says your team will follow up by email. AskSiya also drops the session, so the caller is no longer verified and needs a fresh code for any more account questions.
account_summary, list_tickets, create_ticketAny other refusalFinal, and it stands for the rest of the call. Siya tells the caller your message and offers to take a message. On create_ticket, the ticket stays in AskSiya marked failed with your code, and no alert email goes to the account owner, because a business rule is not a broken link.
account_summary, list_ticketsA failureSiya apologizes that she cannot reach your system right now and offers to take a message.
create_ticketA failureSiya gives the caller the AskSiya reference, such as SIYA-T-7C31A9E2, and says your team will follow up by email. See below.

A ticket your system did not confirm during the call stays in AskSiya

AskSiya saves every ticket before it sends create_ticket, and sends it once, during the call, with the caller's session. AskSiya cannot send it again after the call, because the session ends with the call.

So a ticket that hits a failure, or not_verified, is kept on your AskSiya Tickets page, and the account owner gets one email about it at once. Your system did not confirm it during the call, but it may still have arrived, after a timeout or an answer AskSiya could not read: if so, it carries the AskSiya reference in its reference field, such as SIYA-T-7C31A9E2, so search your system for that reference before handling the ticket from the Tickets page. There is no retry for these tickets.

Safety

What AskSiya does on its side

  • https on port 443 only, to a public address. AskSiya resolves your host again on every call and refuses private, loopback, link-local and reserved addresses.
  • No redirects and no compression. AskSiya sends Accept-Encoding: identity, refuses an answer with any other Content-Encoding, and reads at most 64 KB.
  • The verification_id and session stay in the call. AskSiya holds them in the call's memory only: never in a log, the transcript, a database or your dashboard, and it drops them when the call ends.
  • No AskSiya code for your callers. AskSiya sends no code email and keeps no record of the check for a company on the support link; your limits govern your codes. On one call, Siya asks for at most 3 codes and checks at most 6.
  • The same words either way: after find_customer, Siya tells the caller the same thing whether or not the address belongs to a customer.
  • Never the number someone calls from. Only your code verifies a caller.
  • Facts, read aloud. Return only what you are happy for a verified caller to hear on the phone: never passwords, keys or full payment card numbers.
  • Account facts are never stored in Siya's knowledge. AskSiya asks your endpoint on each call.
FAQ

Frequently asked questions

No. Zendesk connects directly: on the Support desk page of your AskSiya dashboard, add your Zendesk subdomain, an agent's email address and an API token. The support link is for any other ticket system, and a developer builds the endpoint.

All six. ping is what Test connection sends; find_customer and verify_code are how your system emails a caller a 6-digit code and checks it; account_summary, list_tickets and create_ticket serve a verified caller, through the session you gave AskSiya. An action your endpoint does not answer is a failure on the call.

So that a leaked signing secret reads nothing. The account actions carry only a session, and your system gives one out only after the caller reads back a code from the customer's own inbox. Whoever holds the secret without that inbox gets no session. AskSiya sends no code email of its own for a company on the support link, and your limits govern your codes.

For this call only, and at most until the session ends: the expires_in you return or 30 minutes, whichever comes first. Use does not extend a session. If you answer not_verified, AskSiya drops the session and the caller needs a fresh code for any more account questions; a create_ticket answered that way is kept in AskSiya, like a failed one.

Treat reference as the idempotency key. Every create_ticket for one AskSiya ticket carries the same reference, its SIYA-T code. If you already hold a ticket with that reference, answer 2xx with that ticket's ticket_id and create nothing. request_id changes on every HTTP attempt and is for your logs only.

Refuse on purpose: answer HTTP 422 with ok false, a code (help_center_only, ticket_limit, not_allowed or invalid) and a message of one plain sentence, up to 200 characters. A refusal is never retried as it was sent. Siya tells the caller your message and offers to take a message instead, so write it for the caller to hear.

Anything that is not a 2xx or a 422, JSON AskSiya cannot read, ok false on a 2xx, a compressed answer (any Content-Encoding other than identity), more than 64 KB, or no answer within 5 seconds is a failure. On find_customer, Siya offers to take a message, and AskSiya does not ask again, because that would be a second code. On verify_code, the caller can try the same code again in a moment. On create_ticket, the caller gets an AskSiya reference such as SIYA-T-7C31A9E2; AskSiya cannot send the ticket after the call, so it stays on your AskSiya Tickets page and the account owner gets one email about it. Your system did not confirm it, but it may still have arrived, after a timeout for example: it would carry that reference in its reference field, so search for the reference before handling the ticket from the Tickets page. A ticket your system accepts gets no email from AskSiya: any notification about it comes from your system.

No. AskSiya sends requests only to an https address on port 443 that resolves to a public address. It refuses private, loopback, link-local and reserved addresses, checked again on every call, and it does not follow redirects.

Connect your ticket system, then take a test call

The 7-day free trial includes a number and 30 minutes of live calls. We ask for a card to set up the number, and nothing is charged for 7 days.