{"openapi":"3.1.0","info":{"title":"Nilo Public API","description":"The machine-readable contract for Nilo tenant integrations. This documentation site cannot send requests; use it to inspect the API only.","version":"1.3.0"},"servers":[{"url":"https://app.nilo-assistant.com","description":"Production"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Prospecting people","description":"Import durable LinkedIn prospecting people from visible profile facts."},{"name":"Connection","description":"Verify a tenant application bearer key."},{"name":"Invoices","description":"Create draft invoices for the authenticated tenant."},{"name":"Content","description":"Read immutable released content from the project assigned to a content-delivery key."},{"name":"Marketing","description":"External visit and interaction events for personalized marketing links."},{"name":"Sales accounts","description":"Import tenant-scoped prospecting accounts from external sources."},{"name":"Contacts","description":"Tenant-scoped contact records and plain-text contact mail."},{"name":"Customer provisioning","description":"Partner-only customer account provisioning and tenant API application issuance."}],"paths":{"/api/v1/tenant-provisioning/tenants":{"post":{"tags":["Customer provisioning"],"summary":"Provision a customer tenant","description":"Available only to eligible partner tenants.","operationId":"provisionTenant","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantProvisioningRequest"}}},"required":true},"responses":{"201":{"description":"Customer tenant provisioned","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProvisionedTenant"}}}}}}},"/api/v1/tenant-provisioning/tenant-api-applications":{"post":{"tags":["Customer provisioning"],"summary":"Create an API application for a provisioned tenant","description":"Available only to a partner that has tenant-admin access to the target tenant.","operationId":"createTenantApiApplication","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantApiApplicationRequest"}}},"required":true},"responses":{"201":{"description":"Tenant API application created; the bearer key is returned once","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TenantApiApplication"}}}}}}},"/api/v1/sales-accounts":{"post":{"tags":["Sales accounts"],"summary":"Import a sales account","operationId":"importSalesAccount","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesAccountImportRequest"}}},"required":true},"responses":{"201":{"description":"Sales account created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SalesAccount"}}}},"200":{"description":"Previously imported account updated","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SalesAccount"}}}}}}},"/api/v1/prospecting-people":{"post":{"tags":["Prospecting people"],"summary":"Import a LinkedIn prospecting person","operationId":"importProspectingPerson","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectingPersonImportRequest"}}},"required":true},"responses":{"201":{"description":"Prospecting person created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProspectingPerson"}}}},"200":{"description":"Previously imported person updated","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ProspectingPerson"}}}}}}},"/api/v1/invoices":{"post":{"tags":["Invoices"],"summary":"Create a draft invoice","operationId":"createInvoice","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceApiCreateInvoiceRequest"}}},"required":true},"responses":{"201":{"description":"Draft invoice created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Invoice"}}}}}}},"/api/v1/content-items/{contentItemUrn}/publications":{"post":{"tags":["Content"],"summary":"Report a published website URL","description":"Requires the project export key plus the private X-Nilo-Publication-Receipt credential delivered to the configured receiver. The public export key alone grants no write access. Only the current receiver origin and exact current released language revision are accepted.","operationId":"reportPublication","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"X-Nilo-Publication-Receipt","in":"header","description":"Private receiver credential delivered only in the configured webhook header.","required":true,"schema":{"type":"string"}},{"name":"contentItemUrn","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationReceipt"}}},"required":true},"responses":{"204":{"description":"Publication recorded or identical receipt already retained","content":{"*/*":{"schema":{"type":"object"}}}},"400":{"description":"Invalid receipt","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Invalid content-delivery credential","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"CMS unavailable or receiver origin not authorized","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Project or item not found in the credential scope","content":{"*/*":{"schema":{"type":"object"}}}},"409":{"description":"Release changed or publication receipt is stale","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/content-items/receiver/verify":{"post":{"tags":["Content"],"summary":"Verify a webhook receiver credential","description":"Checks the private X-Nilo-Publication-Receipt header against the current configured receiver. The public export key alone is insufficient. No data is changed.","operationId":"verifyReceiver","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"X-Nilo-Publication-Receipt","in":"header","description":"Private receiver credential delivered only in the configured webhook header.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Current receiver credential verified","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Invalid export key","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"Receiver credential unavailable or invalid","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/content-collections/languages/{language}/{collectionUrn}/publications":{"post":{"tags":["Content"],"summary":"Report a published collection website URL","description":"Requires the project content key and private X-Nilo-Publication-Receipt receiver credential. Records the exact current language revision after website activation; never publishes content.","operationId":"reportPublication_1","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"X-Nilo-Publication-Receipt","in":"header","required":false,"schema":{"type":"string"}},{"name":"language","in":"path","required":true,"schema":{"type":"string"}},{"name":"collectionUrn","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionPublicationReceipt"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/contacts":{"get":{"tags":["Contacts"],"summary":"List contacts","operationId":"listContacts","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Contacts in the authenticated tenant","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContactList"}}}}}},"post":{"tags":["Contacts"],"summary":"Create a contact","operationId":"createContact","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactApiCreateRequest"}}},"required":true},"responses":{"201":{"description":"Contact created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Contact"}}}}}}},"/api/v1/contacts/{contactUrn}/mail":{"post":{"tags":["Contacts"],"summary":"Send plain-text mail to a contact","operationId":"sendMail","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"contactUrn","in":"path","required":true,"schema":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactApiSendMailRequest"}}},"required":true},"responses":{"202":{"description":"Mail sent","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SentMail"}}}}}}},"/api/public/marketing/v1/link-engagement-events":{"post":{"tags":["Marketing"],"summary":"Record a personalized marketing-link engagement event","description":"Report the initial VISITED request and every later interaction as separate events. The optional details field is retained but is not interpreted or exposed by Nilo.","operationId":"recordEngagement","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementRequest"}}},"required":true},"responses":{"201":{"description":"Engagement event recorded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementResponse"}}}},"200":{"description":"Idempotent replay accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementResponse"}}}},"400":{"description":"Malformed or incomplete event payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementErrorResponse"}}}},"401":{"description":"Missing or invalid marketing callback credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementErrorResponse"}}}},"404":{"description":"Personalized code is unavailable to this target system","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementErrorResponse"}}}},"409":{"description":"External event identifier is assigned to another event","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementErrorResponse"}}}},"500":{"description":"The engagement event could not be persisted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingEngagementErrorResponse"}}}}},"security":[{"marketingCallbackAuth":[]}]}},"/api/public/marketing/v1/contact-reference":{"post":{"tags":["Marketing"],"summary":"Resolve a personalized code to its contact URN","description":"Returns only the contact URN for a code owned by the authenticated marketing target system. Use the tenant Contacts API for contact reads and updates.","operationId":"resolveContactReference","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingContactReferenceRequest"}}},"required":true},"responses":{"200":{"description":"Contact reference resolved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingContactReferenceResponse"}}}},"400":{"description":"Malformed or incomplete lookup payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingContactReferenceErrorResponse"}}}},"401":{"description":"Missing or invalid marketing callback credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingContactReferenceErrorResponse"}}}},"404":{"description":"Personalized code is unavailable to this target system","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingContactReferenceErrorResponse"}}}},"500":{"description":"The contact reference could not be resolved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingContactReferenceErrorResponse"}}}}},"security":[{"marketingCallbackAuth":[]}]}},"/api/v1/contacts/{contactUrn}":{"get":{"tags":["Contacts"],"summary":"Get a contact","operationId":"getContact","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"contactUrn","in":"path","required":true,"schema":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Contact","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Contact"}}}}}},"delete":{"tags":["Contacts"],"summary":"Delete a contact","operationId":"deleteContact","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"contactUrn","in":"path","required":true,"schema":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"204":{"description":"Contact deleted","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}},"409":{"description":"Contact is linked to a prospecting person","content":{"*/*":{"schema":{"type":"object","additionalProperties":{}}}}}}},"patch":{"tags":["Contacts"],"summary":"Update a contact","operationId":"updateContact","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"contactUrn","in":"path","required":true,"schema":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactApiUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Updated contact","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Contact"}}}}}}},"/api/v1/hello":{"get":{"tags":["Connection"],"summary":"Verify API credentials","description":"Returns the authenticated application identity.","operationId":"hello","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Authenticated application identity","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ApplicationIdentity"}}}}}}},"/api/v1/content-items":{"get":{"tags":["Content"],"summary":"List released content","operationId":"listContent","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":50}},{"name":"after","in":"query","required":false,"schema":{"type":"string"}},{"name":"language","in":"query","description":"Optional BCP 47 content language, for example en, de, or pt-BR. When omitted, English is selected when available; otherwise one available language is selected.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Released project content","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContentItemList"}}}}}}},"/api/v1/content-items/{contentItemUrn}":{"get":{"tags":["Content"],"summary":"Get released content","operationId":"getContent","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"contentItemUrn","in":"path","required":true,"schema":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"language","in":"query","description":"Optional BCP 47 content language, for example en, de, or pt-BR.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Released content item","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContentItem"}}}}}}},"/api/v1/content-items/{contentItemUrn}/revisions/{revisionId}/media/{mediaUrn}":{"get":{"tags":["Content"],"summary":"Download released content media","description":"Follow mediaAttachments.downloadUrl from the export with the same project content-delivery Bearer key. Returns the preserved image, video or file bytes from that exact revision. The media URN uses the existing project-media or project-attachment resource type.","operationId":"getMedia","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"contentItemUrn","in":"path","required":true,"schema":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},{"name":"revisionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"mediaUrn","in":"path","required":true,"schema":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}}],"responses":{"200":{"description":"Binary media with its stored Content-Type and filename","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing, invalid, revoked or wrong-purpose content key","content":{"*/*":{"schema":{"type":"object"}}}},"403":{"description":"CMS is unavailable for this tenant","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"Item, revision or media is outside released project content","content":{"*/*":{"schema":{"type":"object"}}}},"503":{"description":"Required stored media or resource registration is unavailable","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/content-collections/languages/{language}":{"get":{"tags":["Content"],"summary":"List released collection descriptions","description":"Returns the requested language's released display names, explicit URL slugs and Markdown. Shared grouping paths are not localized website URLs. Draft-only or untranslated collections are excluded without language substitution.","operationId":"list","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"language","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContentCollectionList"}}}}}}},"/api/v1/content-collections/languages/{language}/{collectionUrn}":{"get":{"tags":["Content"],"summary":"Get a released collection description","description":"Retrieves one immutable language release including its display name, independent URL slug and description. The same collection URN identifies every language; later display-text edits do not change this release or its URL.","operationId":"get","parameters":[{"name":"Authorization","in":"header","required":false,"schema":{"type":"string"}},{"name":"language","in":"path","required":true,"schema":{"type":"string"}},{"name":"collectionUrn","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContentCollection"}}}}}}}},"components":{"schemas":{"TenantProvisioningRequest":{"type":"object","properties":{"ownerEmail":{"type":"string"},"ownerFirstName":{"type":"string"},"ownerLastName":{"type":"string"},"preferredUiLanguageTag":{"type":"string"},"organizationName":{"type":"string"},"doingBusinessAs":{"type":"string"},"taxId":{"type":"string"},"vatId":{"type":"string"},"organizationCurrency":{"type":"string"},"countryCodeIso2":{"type":"string"},"addressStreet":{"type":"string"},"addressStreet2":{"type":"string"},"addressCity":{"type":"string"},"addressRegion":{"type":"string"},"addressPostalCode":{"type":"string"},"organizationWebsite":{"type":"string"},"organizationDescription":{"type":"string"},"businessRegistrationNumber":{"type":"string"},"representativeFirstName":{"type":"string"},"representativeLastName":{"type":"string"},"representativeEmail":{"type":"string"}}},"ProvisionedTenant":{"type":"object","properties":{"tenantUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"identityUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"claimUrl":{"type":"string"},"expiresAt":{"type":"string"},"onboardingRequired":{"type":"boolean"},"missingProfileFields":{"type":"array","items":{"type":"string"}}},"required":["identityUrn","tenantUrn"]},"TenantApiApplicationRequest":{"type":"object","properties":{"tenantUrn":{"type":"string"},"applicationName":{"type":"string"}}},"TenantApiApplication":{"type":"object","properties":{"tenantUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"applicationUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"applicationName":{"type":"string"},"bearerKey":{"type":"string"}},"required":["applicationUrn","tenantUrn"]},"SalesAccountImportRequest":{"type":"object","properties":{"externalSource":{"type":"string"},"externalRecordId":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"website":{"type":"string"},"phone":{"type":"string"},"industry":{"type":"string"},"description":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"},"researchFindings":{"type":"array","items":{"type":"string"}},"researchSources":{"type":"array","items":{"type":"string"}}}},"SalesAccount":{"type":"object","properties":{"urn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string"},"domain":{"type":"string"},"website":{"type":"string"},"phone":{"type":"string"},"industry":{"type":"string"},"description":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"},"externalReferences":{"type":"array","items":{"$ref":"#/components/schemas/SalesAccountExternalReference"}},"importResolution":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["urn"]},"SalesAccountExternalReference":{"type":"object","properties":{"source":{"type":"string"},"recordId":{"type":"string"}}},"ProspectingPersonImportRequest":{"type":"object","properties":{"linkedInProfileUrl":{"type":"string"},"linkedInProfileUrn":{"type":"string"},"fullName":{"type":"string"},"headline":{"type":"string"},"location":{"type":"string"},"currentCompany":{"type":"string"},"relationshipState":{"type":"string"},"relationshipDate":{"type":"string"},"relationshipNote":{"type":"string"}}},"ProspectingPerson":{"type":"object","properties":{"urn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"fullName":{"type":"string"},"headline":{"type":"string"},"location":{"type":"string"},"currentCompany":{"type":"string"},"linkedInProfileUrl":{"type":"string"},"linkedInProfileUrn":{"type":"string"},"relationshipState":{"type":"string"},"relationshipDate":{"type":"string"},"relationshipHistory":{"type":"array","items":{"$ref":"#/components/schemas/ProspectingRelationshipObservation"}},"importResolution":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["urn"]},"ProspectingRelationshipObservation":{"type":"object","properties":{"state":{"type":"string"},"occurredOn":{"type":"string"},"observedAt":{"type":"string"},"source":{"type":"string"},"note":{"type":"string"}}},"InvoiceApiCreateInvoiceItemRequest":{"type":"object","properties":{"description":{"type":"string"},"quantity":{"type":"number"},"price":{"type":"number"},"taxRate":{"type":"number"}}},"InvoiceApiCreateInvoiceRequest":{"type":"object","properties":{"customer":{"type":"string"},"customerContactUrn":{"type":"string","format":"uri","pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"customerCompany":{"type":"string"},"customerAddress":{"type":"string"},"customerVatId":{"type":"string"},"reference":{"type":"string"},"paymentInstructions":{"type":"string"},"note":{"type":"string"},"issuedDate":{"type":"string","format":"date"},"paymentTermsDays":{"type":"integer","format":"int32"},"items":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceApiCreateInvoiceItemRequest"}}}},"Invoice":{"type":"object","properties":{"urn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"invoiceNumber":{"type":"string"},"status":{"type":"string"},"applicationUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"applicationName":{"type":"string"}},"required":["applicationUrn","urn"]},"PublicationReceipt":{"type":"object","properties":{"language":{"type":"string","description":"Exact BCP 47 language of the exported release."},"revisionId":{"type":"string","format":"uuid","description":"Exact current exported revision ID."},"url":{"type":"string","format":"uri","description":"Actual HTTP(S) publication URL on the configured receiver origin, including its fragment."},"publishedAt":{"type":"string","format":"date-time","description":"Original page activation time retained across retries."}},"required":["language","publishedAt","revisionId","url"]},"CollectionPublicationReceipt":{"type":"object","properties":{"revisionId":{"type":"string","format":"uuid"},"url":{"type":"string"},"publishedAt":{"type":"string","format":"date-time"}}},"ContactApiCreateRequest":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"company":{"type":"string"},"tag":{"type":"string"},"preferredLanguage":{"type":"string"},"formality":{"type":"string"},"preferredTone":{"type":"string"},"salutation":{"type":"string"},"addressingNotes":{"type":"string"},"note":{"type":"string"},"streetAddress":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"},"customData":{"type":"object","additionalProperties":{}},"xmppAddress":{"type":"string"}}},"Contact":{"type":"object","properties":{"urn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"email":{"type":"string"},"fullName":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"company":{"type":"string"},"tag":{"type":"string"},"preferredLanguage":{"type":"string"},"formality":{"type":"string"},"preferredTone":{"type":"string"},"salutation":{"type":"string"},"addressingNotes":{"type":"string"},"note":{"type":"string"},"streetAddress":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"},"customData":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["urn"]},"ContactApiSendMailRequest":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"}}},"SentMail":{"type":"object","properties":{"status":{"type":"string"},"to":{"type":"string"},"contactUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"}},"required":["contactUrn"]},"MarketingEngagementRequest":{"type":"object","properties":{"personalizedCode":{"type":"string","description":"Opaque personalized code appended to the campaign URL."},"externalEventId":{"type":"string","description":"Stable target-system identifier for this exact event. Reuse it only for retries."},"eventType":{"type":"string","description":"The reported visit or interaction kind.","enum":["VISITED","SCROLLED","CLICKED","FORM_STARTED","FORM_COMPLETED","DWELL_TIME_REACHED"]},"occurredAt":{"type":"string","format":"date-time","description":"ISO-8601 offset timestamp when the event occurred."},"details":{"type":"string","description":"Optional opaque target-system text retained without interpretation or display.","maxLength":10000}},"required":["eventType","externalEventId","personalizedCode"]},"MarketingEngagementResponse":{"type":"object","properties":{"status":{"type":"string"},"engagementUrn":{"type":"string"},"eventType":{"type":"string","enum":["VISITED","SCROLLED","CLICKED","FORM_STARTED","FORM_COMPLETED","DWELL_TIME_REACHED"]},"occurredAt":{"type":"string"},"duplicate":{"type":"boolean"}}},"MarketingEngagementErrorResponse":{"type":"object","properties":{"error":{"type":"string","description":"Machine-readable failure reason.","enum":["invalid_request","invalid_credentials","personalized_code_not_found","external_event_id_conflict","persistence_failed"]}}},"MarketingContactReferenceRequest":{"type":"object","properties":{"personalizedCode":{"type":"string","description":"Opaque personalized code appended to the campaign URL."}},"required":["personalizedCode"]},"MarketingContactReferenceResponse":{"type":"object","properties":{"contactUrn":{"type":"string"}}},"MarketingContactReferenceErrorResponse":{"type":"object","properties":{"error":{"type":"string","description":"Machine-readable failure reason.","enum":["invalid_request","invalid_credentials","personalized_code_not_found","reference_unavailable"]}}},"ContactApiUpdateRequest":{"type":"object","properties":{"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"phone":{"type":"string"},"company":{"type":"string"},"tag":{"type":"string"},"preferredLanguage":{"type":"string"},"formality":{"type":"string"},"preferredTone":{"type":"string"},"salutation":{"type":"string"},"addressingNotes":{"type":"string"},"note":{"type":"string"},"streetAddress":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"},"customData":{"type":"object","additionalProperties":{}},"xmppAddress":{"type":"string"}}},"ApplicationIdentity":{"type":"object","properties":{"status":{"type":"string"},"applicationUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"applicationName":{"type":"string"}},"required":["applicationUrn"]},"ContentBody":{"type":"object","properties":{"format":{"type":"string"},"value":{"type":"string"}}},"ContentItem":{"type":"object","properties":{"urn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"projectUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"type":"string"},"slug":{"type":"string"},"language":{"type":"string"},"title":{"type":"string"},"content":{"$ref":"#/components/schemas/ContentBody"},"mediaAttachments":{"type":"array","items":{"$ref":"#/components/schemas/ContentMedia"}},"status":{"type":"string"},"revisionId":{"type":"string","format":"uuid"},"revision":{"type":"integer","format":"int32"},"collectionPath":{"type":"array","description":"Ordered root-to-leaf collection slug segments. An empty array means the item is not assigned to a collection.","items":{"type":"string","example":"comparisons"}},"tags":{"type":"array","items":{"type":"string"},"uniqueItems":true},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"releasedAt":{"type":"string"},"publishedAt":{"type":["string","null"],"format":"date-time","description":"Earliest recorded content-publication time for this language across channels; null when none is recorded. Excludes replies and is independent of releasedAt."},"publicationHistory":{"type":"array","description":"Current publication history for this language, newest postedAt first, including older releases. Empty when absent; records with unknown release IDs or external URLs remain included.","items":{"$ref":"#/components/schemas/ContentPublication"}}},"required":["projectUrn","publicationHistory","publishedAt","urn"]},"ContentItemList":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/ContentProject"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ContentItem"}},"page":{"$ref":"#/components/schemas/ContentPage"},"sequences":{"type":"array","items":{"$ref":"#/components/schemas/ContentSequence"}}}},"ContentMedia":{"type":"object","properties":{"urn":{"type":"string","format":"uri","description":"Existing project-media URN for an image/video or project-attachment URN for a file.","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"type":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"downloadUrl":{"type":"string","format":"uri-reference","description":"Relative binary endpoint pinned to this item and release. Send the content-delivery Bearer key in Authorization."}},"required":["urn"]},"ContentPage":{"type":"object","properties":{"limit":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int64"},"nextCursor":{"type":"string"}}},"ContentProject":{"type":"object","properties":{"urn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string"}},"required":["urn"]},"ContentPublication":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Stable Nilo-local publication occurrence ID."},"releaseId":{"type":["string","null"],"format":"uuid","description":"Recorded Nilo release ID, or null when unknown."},"transport":{"type":"string","description":"Recorded channel identifier, for example WEBSITE or X."},"externalPostId":{"type":["string","null"],"description":"Opaque provider post identifier, or null when unknown."},"externalPostUrl":{"type":["string","null"],"format":"uri","description":"Recorded HTTP(S) permalink, or null when unknown."},"postedAt":{"type":"string","format":"date-time","description":"Original recorded channel publication time, independent of other channels and releasedAt."},"contentPublication":{"type":"boolean","description":"True for content publications; false for ordinary and navigation replies."}},"required":["contentPublication","externalPostId","externalPostUrl","id","postedAt","releaseId","transport"]},"ContentSequence":{"type":"object","properties":{"collectionPath":{"type":"array","items":{"type":"string"}},"items":{"type":"array","items":{"type":"string"}},"version":{"type":"integer","format":"int64"}}},"ContentCollection":{"type":"object","properties":{"urn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"projectUrn":{"type":"string","format":"uri","minLength":1,"pattern":"^urn:nilo:[a-z][a-z0-9-]*:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"name":{"type":"string","description":"Reader-facing display name in the requested language, frozen in this release.","minLength":1},"slug":{"type":"string","description":"Explicit URL segment for this language. Independent of display text and the shared grouping path; unchanged unless authored explicitly.","maxLength":200,"minLength":1,"pattern":"[a-z0-9]+(?:-[a-z0-9]+)*"},"path":{"type":"array","description":"Shared root-to-leaf grouping path for collection/item assignment. This is not the localized website URL.","items":{"type":"string"}},"language":{"type":"string"},"description":{"$ref":"#/components/schemas/ContentBody"},"revisionId":{"type":"string","format":"uuid"},"revision":{"type":"integer","format":"int32"},"releasedAt":{"type":"string"}},"required":["name","projectUrn","slug","urn"]},"ContentCollectionList":{"type":"object","properties":{"project":{"$ref":"#/components/schemas/ContentProject"},"language":{"type":"string"},"collections":{"type":"array","items":{"$ref":"#/components/schemas/ContentCollection"}}}},"ContactList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}}}}},"securitySchemes":{"bearerAuth":{"type":"http","description":"Tenant application bearer key. Keep it out of browser code and use it only from your integration.","scheme":"bearer","bearerFormat":"Nilo API key"},"delegatedOAuth":{"type":"http","description":"OAuth access token delegated by a Nilo user to an agent connection.","scheme":"bearer","bearerFormat":"OAuth 2.0 access token"},"marketingCallbackAuth":{"type":"http","description":"Dedicated callback bearer key for one configured marketing target system.","scheme":"bearer","bearerFormat":"Marketing callback key"}}}}