Interactions (V1)¶
Service for managing interactions (meetings, calls, emails, chats).
V2 provides read-only metadata; V1 supports full CRUD.
Source code in affinity/services/v1_only.py
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 | |
create(data: InteractionCreate) -> Interaction
¶
Create a new interaction (manually logged).
Source code in affinity/services/v1_only.py
459 460 461 462 463 464 465 | |
delete(interaction_id: InteractionId, type: InteractionType) -> bool
¶
Delete an interaction.
Source code in affinity/services/v1_only.py
490 491 492 493 494 495 496 497 | |
get(interaction_id: InteractionId, type: InteractionType) -> Interaction
¶
Get a single interaction by ID and type.
Source code in affinity/services/v1_only.py
450 451 452 453 454 455 456 457 | |
list(*, type: InteractionType | None = None, start_time: datetime | None = None, end_time: datetime | None = None, person_id: PersonId | None = None, company_id: CompanyId | None = None, opportunity_id: OpportunityId | None = None, page_size: int | None = None, page_token: str | None = None) -> V1PaginatedResponse[Interaction]
¶
Get interactions with optional filtering.
The Affinity API requires: - type: Interaction type (meeting, call, email, chat) - start_time and end_time: Date range (max 1 year) - One entity ID: person_id, company_id, or opportunity_id
Returns V1 paginated response with data and next_page_token.
Source code in affinity/services/v1_only.py
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 | |
update(interaction_id: InteractionId, type: InteractionType, data: InteractionUpdate) -> Interaction
¶
Update an interaction.
Source code in affinity/services/v1_only.py
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 | |