Get desktop application:
View/edit binary Protocol Buffers messages
* Create a new registration session for a given destination phone number.
* The phone number for which to create a new registration session.
* Indicates whether an account already exists with the given e164 (i.e. this session represents a "re-registration" attempt).
* Metadata for the newly-created session.
* A response explaining why a session could not be created as requested.
* Retrieves session metadata for a given session.
* The ID of the session for which to retrieve metadata.
* Sends a verification code to a destination phone number within the context of a previously-created registration session.
* The message transport to use to send a verification code to the destination phone number.
* A prioritized list of languages accepted by the destination; should be provided in the same format as the value of an HTTP Accept-Language header.
* The type of client requesting a verification code.
* The ID of a session within which to send (or re-send) a verification code.
* If provided, always attempt to use the specified sender to send this message.
* Metadata for the named session. May be absent if the session could not be found or has expired.
* If a code could not be sent, explains the underlying error. Will be absent if a code was sent successfully. Note that both an error and session metadata may be present in the same response because the session metadata may include information helpful for resolving the underlying error (i.e. "next attempt" times).
* Checks a client-provided verification code for a given registration session.
* Metadata for the named session. May be absent if the session could not be found or has expired.
* If a code could not be checked, explains the underlying error. Will be absent if no error occurred. Note that both an error and session metadata may be present in the same response because the session metadata may include information helpful for resolving the underlying error (i.e. "next attempt" times).
* Indicates whether the verification code given in the request that produced this response was correct.
* If a code could not be checked, explains the underlying error. Will be absent if no error occurred.
Used in:
,* The type of error that prevented a verification code from being checked.
* Indicates that this error may succeed if retried without modification after a delay indicated by `retry_after_seconds`. If false, callers should not retry the request without modification.
* If this error may be retried,, indicates the duration in seconds from the present after which the request may be retried without modification. This value has no meaning otherwise.
Used in:
* The caller has attempted to submit a verification code even though no verification codes have been sent within the scope of this session. The caller must issue a "send code" request before trying again.
* The caller has made too many guesses within some period of time. Callers should wait for the duration prescribed in the session metadata object elsewhere in the response before trying again.
* The session identified in this request could not be found (possibly due to session expiration).
* The session identified in this request is still active, but the most recently-sent code has expired. Callers should request a new code, then try again.
Used as request type in: RegistrationService.check_verification_code, RegistrationService.legacy_check_verification_code
* The session ID returned when sending a verification code.
* The client-provided verification code.
Used in:
Used in:
* The type of error that prevented a session from being created.
* Indicates that this error may succeed if retried without modification after a delay indicated by `retry_after_seconds`. If false, callers should not retry the request without modification.
* If this error may be retried,, indicates the duration in seconds from the present after which the request may be retried without modification. This value has no meaning otherwise.
Used in:
* Indicates that a session could not be created because too many requests to create a session for the given phone number have been received in some window of time. Callers should wait and try again later.
* Indicates that the provided phone number could not be parsed.
Used in:
Used in:
* No session was found with the given identifier.
Used in:
Used in:
, , ,* An opaque sequence of bytes that uniquely identifies the registration session associated with this registration attempt.
* Indicates whether a valid verification code has been submitted in the scope of this session.
* The phone number associated with this registration session.
* Indicates whether the caller may request delivery of a verification code via SMS now or at some time in the future. If true, the time a caller must wait before requesting a verification code via SMS is given in the `next_sms_seconds` field.
* The duration, in seconds, after which a caller will next be allowed to request delivery of a verification code via SMS if `may_request_sms` is true. If zero, a caller may request a verification code via SMS immediately. If `may_request_sms` is false, this field has no meaning.
* Indicates whether the caller may request delivery of a verification code via a phone call now or at some time in the future. If true, the time a caller must wait before requesting a verification code via SMS is given in the `next_voice_call_seconds` field. If false, simply waiting will not allow the caller to request a phone call and the caller may need to perform some other action (like attempting verification code delivery via SMS) before requesting a voice call.
* The duration, in seconds, after which a caller will next be allowed to request delivery of a verification code via a phone call if `may_request_voice_call` is true. If zero, a caller may request a verification code via a phone call immediately. If `may_request_voice_call` is false, this field has no meaning.
* Indicates whether the caller may submit new verification codes now or at some time in the future. If true, the time a caller must wait before submitting a verification code is given in the `next_code_check_seconds` field. If false, simply waiting will not allow the caller to submit a verification code and the caller may need to perform some other action (like requesting delivery of a verification code) before checking a verification code.
* The duration, in seconds, after which a caller will next be allowed to submit a verification code if `may_check_code` is true. If zero, a caller may submit a verification code immediately. If `may_check_code` is false, this field has no meaning.
* The duration, in seconds, after which this session will expire.
Used in:
* The type of error that prevented a verification code from being sent.
* Indicates that this error may succeed if retried without modification after a delay indicated by `retry_after_seconds`. If false, callers should not retry the request without modification.
* If this error may be retried,, indicates the duration in seconds from the present after which the request may be retried without modification. This value has no meaning otherwise.
Used in:
* The sender received and understood the request to send a verification code, but declined to do so (i.e. due to rate limits or suspected fraud).
* The sender could not process or would not accept some part of a request (e.g. a valid phone number that cannot receive SMS messages).
* A verification could could not be sent via the requested channel due to timing/rate restrictions. The response object containing this error should include session metadata that indicates when the next attempt is allowed.
* No session was found with the given ID.
* A new verification could could not be sent because the session has already been verified.