Questions to settle before a task

For anything a person does here (send a text, buy or release a number, register for 10DLC, verify a toll-free number, request a short code, send verification codes, a recurring text, a segment, template, list, topic, connecting a tool, a webhook, an API key, a link domain, a spend limit, a number pool, importing opt-outs, an automation, a broadcast, bringing people in): the questions to ask, each with the request fields it fills and this account's options (its numbers, registrations, topics, segments, lists, templates, integrations, and the allowed values from this spec).

GET/v1/plan

Query Parameters

  • taskstring

    A task key (buy_number, register_10dlc, ...) or the person's own words ("buy a number"). Omit to list the tasks.

Details

inputs lists every field the task's operation takes, read from this spec, marked asked or not. rules says what the person should hear first, gaps what is missing, and person_submits for carrier filings: what only the person can give before submitting (the fee acceptance and the signed business attestation).

Without task: the tasks. Automations and broadcasts answer with the campaign plan; bringing people in with the import plan.

Reads the account and changes nothing. Scope: contacts.

Responses

  • 200JSON object

    The plan, or the task list

  • 401Error

    Missing, malformed, or revoked API key

  • 402Error

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429Error

    Rate limit or quota exceeded

Response Fields

  • objecttask_plan, task_catalog, campaign_plan, import_plan
  • taskstring
  • howstring
  • questionsarray of object
  • questions[].idstring
  • questions[].askstring
  • questions[].setsarray of string
  • questions[].optionsarray of any
  • questions[].defaultany
  • questions[].whenstring
  • inputsarray of object
  • inputs[].namestring
  • inputs[].requiredboolean
  • inputs[].askedboolean
  • rulesarray of string
  • gapsarray of string
  • person_submitsstring
  • console_urlstring

Errors

Every error has the same JSON shape, and request_id matches the X-Request-Id response header. Errors lists every code and what to do about it.

  • 401

    Missing, malformed, or revoked API key

  • 402

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429

    Rate limit or quota exceeded