bird contacts create
Usage
Code example
bird contacts create [email] [flags]Description
Create a contact by email address, phone number, or both
A contact needs at least one identifier: an email (the positional argument) or a phone number (--phone-number). Each is unique in the workspace; a duplicate email, phone-number, or external-id returns 409. --data keys must be contact properties you defined with "bird contact-properties create".
Build the request from the <email> argument and flags, a JSON ContactCreateRequest body via --body-file ("-" reads stdin), or both — an inline value overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.
Examples
Code example
# print the body shape (no credentials needed)
bird contacts create --example
# the body it prints:Code example
{
"email": "alice@acme.com",
"first_name": "Alice",
"last_name": "Anderson",
"phone_number": "+31612345678"
}Code example
# create a contact
bird contacts create jane@acme.com --first-name Jane
# create a phone-only contact
bird contacts create --phone-number +31612345678 --first-name Jane
# preview the request without creating
bird contacts create jane@acme.com --dry-runOptions
Contact
| Name | Description |
|---|---|
--phone-number | The contact's phone number in E.164 format, e.g. +31612345678; unique within the workspace |
--first-name | The contact's first name |
--last-name | The contact's last name |
--external-id | Your own identifier for this contact; unique within the workspace when set |
--data | Custom property values as a JSON object, e.g. --data '{"plan":"pro"}' |
Request
| Name | Description |
|---|---|
--body-file | Read the JSON request body from this file; "-" reads stdin |
--example | Print a complete example request body, then exit |
--dry-run | Print the resolved request without sending it, then exit |
--idempotency-key | Deduplication key; a retry with the same key won't act twice |
Options
| Name | Description |
|---|---|
--response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
bird contacts batch | Create or update many contacts in one request, matched by the identifiers each entry carries |
bird contacts delete | Delete a contact |
bird contacts get | Get a contact |
bird contacts list | List contacts |
bird contacts update | Update a contact's name, email, phone-number, external-id, or custom data |
Related resources
Continue with the documentation, guides and examples for this topic.