addedOutput schema / anyOf
Added value: +[
+ {
+ "properties": {
+ "items": {
+ "items": {
+ "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data.",
+ "properties": {
+ "approved_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "When the carrier approved it.",
+ "title": "Approved At"
+ },
+ "campaign_accepted": {
+ "default": false,
+ "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send.",
+ "title": "Campaign Accepted",
+ "type": "boolean"
+ },
+ "cancellable": {
+ "default": false,
+ "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now.",
+ "title": "Cancellable",
+ "type": "boolean"
+ },
+ "confirmation": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending.",
+ "title": "Confirmation"
+ },
+ "country_code": {
+ "description": "ISO alpha-2 country code.",
+ "title": "Country Code",
+ "type": "string"
+ },
+ "created_at": {
+ "description": "When the verification was created.",
+ "format": "date-time",
+ "title": "Created At",
+ "type": "string"
+ },
+ "credit_needed_cents": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay.",
+ "title": "Credit Needed Cents"
+ },
+ "id": {
+ "description": "Unique identifier for this verification.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "identity_confirmed": {
+ "default": false,
+ "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations.",
+ "title": "Identity Confirmed",
+ "type": "boolean"
+ },
+ "kept_until": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept.",
+ "title": "Kept Until"
+ },
+ "number_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations.",
+ "title": "Number Id"
+ },
+ "number_type": {
+ "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'.",
+ "title": "Number Type",
+ "type": "string"
+ },
+ "purpose": {
+ "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification.",
+ "title": "Purpose",
+ "type": "string"
+ },
+ "rejection_reason": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Why it was rejected. Null unless rejected.",
+ "title": "Rejection Reason"
+ },
+ "resubmittable": {
+ "default": false,
+ "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`).",
+ "title": "Resubmittable",
+ "type": "boolean"
+ },
+ "runtime_ready": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked.",
+ "title": "Runtime Ready"
+ },
+ "state": {
+ "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'.",
+ "title": "State",
+ "type": "string"
+ },
+ "step": {
+ "anyOf": [
+ {
+ "enum": [
+ "confirm_identity",
+ "filing",
+ "carrier_review",
+ "runtime_setup",
+ "needs_information"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise.",
+ "title": "Step"
+ },
+ "subject_name": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown.",
+ "title": "Subject Name"
+ },
+ "subject_type": {
+ "description": "'person' or 'business'.",
+ "title": "Subject Type",
+ "type": "string"
+ },
+ "submitted_at": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "When it was submitted to the carrier.",
+ "title": "Submitted At"
+ },
+ "updated_at": {
+ "description": "When it last changed.",
+ "format": "date-time",
+ "title": "Updated At",
+ "type": "string"
+ },
+ "waiting_for_credit": {
+ "default": false,
+ "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check.",
+ "title": "Waiting For Credit",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "number_id",
+ "country_code",
+ "number_type",
+ "subject_type",
+ "subject_name",
+ "purpose",
+ "state",
+ "rejection_reason",
+ "created_at",
+ "updated_at",
+ "submitted_at",
+ "approved_at",
+ "confirmation",
+ "step",
+ "campaign_accepted",
+ "runtime_ready",
+ "cancellable",
+ "kept_until",
+ "resubmittable",
+ "identity_confirmed",
+ "waiting_for_credit",
+ "credit_needed_cents"
+ ],
+ "title": "VerificationResponse",
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "items"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]