ContactGroups
Add members to a contact group
Adds one or more contacts to a contact group, returning counts of added and skipped members. One request carries at most 1000 ids.
POST
Adds one or more contacts to a contact group, returning counts of added and skipped members. One request carries at most 1000 ids.
apiKeyheader
x-api-key<token>id*stringMatch
^cgrp_[0-9a-hjkmnp-tv-z]{16,24}$application/json- body
contactIds*array<>Items
1 <= items <= 1000role?|nullSuccess
application/json- response
added*integerRange
0 <= value <= 9007199254740991skipped*integerRange
0 <= value <= 9007199254740991import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contactGroups.addMembers({ "id": "example", "contactIds": [ "example" ]});Example Response
{ "added": 0, "skipped": 0}Related documentation
Update an agent (Preview)
Preview · Available to selected organizations. Renames an agent or sets its monthly spend cap. Both take effect at once, without publishing.
Create a contact group
Creates a new contact group and returns it with a 201 status. Use this endpoint to create a contact group through the Samva email API.