action namsor_phone_code { label: "[USES 11 UNITS PER NAME] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number." provider: namsor method: GET path: "/api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber}" encoding: json input: { type: "object" properties: { firstName: { type: "string" } lastName: { type: "string" } phoneNumber: { type: "string" } } required: ["firstName", "lastName", "phoneNumber"] additionalProperties: false } output: { type: "object" description: "Represents the output of inferring the LIKELY country and phone code from a personal name and phone number." properties: { countryIso2: { type: "string" } firstName: { type: "string" description: "The first name (also known as given name)" } id: { type: "string" } internationalPhoneNumberVerified: { type: "string" description: "The normalized phone number, verified using libphonenumber." } lastName: { type: "string" description: "The last name (also known as family name, or surname)" } originCountryIso2: { type: "string" description: "The likely country of origin of the name." } originCountryIso2Alt: { type: "string" description: "The best alternative country of origin of the name." } phoneCountryCode: { type: "integer" format: "int32" description: "The phone country code of the phone number, verified using libphonenumber." } phoneCountryCodeAlt: { type: "integer" format: "int32" description: "The best alternative phone country code of the phone number." } phoneCountryIso2: { type: "string" description: "The likely country of the phone number." } phoneCountryIso2Alt: { type: "string" description: "The best alternative country of the phone number." } phoneCountryIso2Verified: { type: "string" description: "The phone ISO2 country code, verified using libphonenumber." } phoneNumber: { type: "string" description: "The input phone number." } score: { type: "number" format: "double" description: "Higher score is better, but score is not normalized. Use calibratedProbability if available. " } script: { type: "string" } verified: { type: "boolean" description: "Indicates if the phone number could be positively verified using libphonenumber." } } } }