# com.innovaphone.contacts (App API)

This API provides an interface for adding new contacts to the contacts app.

Write documentation

## API model

### Service info

The API doesn't define any service info.

### Provider model

The API doesn't define a provider model.

## API messages

All messages are JSON objects that have a mandatory attribute "mt" that specifies the message type.

### Requests

AddContact
  Opens the "New Contact" UI-dialog in the contacts app with the given phone number prefilled.
  prefixIntl
    International Prefix
  prefixNtl
    National Prefix
  prefixExt
    External Prefix
  area
    Area Code
  country
    Country Code
  subscriber
    Subscriber
  number
    The number to be prefilled
  Example: `{ mt: "AddContact", prefixIntl: "000", prefixNtl: "00", prefixExt:"0", area: "7031", country: "49","subscriber":"73009", number: "567" }`

### Response

AddContactResult
  Will be recieved only if the user actually created a new contact
  num
    Number of the created contact
  Example:

          {
              mt: "AddContactResult",
              num: "567"
          }