client.attributes.postAttribute({ ...params }) -> Sayari.AttributeResponse
-
-
-
Adds a new attribute to an entity in the project
-
-
-
await client.attributes.postAttribute({ entity: "zq04axX2dLn9tE6W6Q8Qhg", type: "address", value: { street1: "1600 Pennsylvania Avenue NW", city: "Washington DC", state: "Washington DC", postalCode: "20500", country: "US", }, toDate: "2024-04-30", fromDate: "2024-01-01", date: "2024-02-15", });
-
-
-
request:
Sayari.AddAttribute
-
requestOptions:
Attributes.RequestOptions
-
-
client.attributes.patchAttribute(attributeId, { ...params }) -> Sayari.AttributeResponse
-
-
-
This endpoint is in beta and is subject to change. It is provided for early access and testing purposes only. Updates an existing Attribute
-
-
-
await client.attributes.patchAttribute( "enEwNGF4WDJkTG45dEU2VzZROFFoZ3xhZGRyZXNzfDBwbEVCMHxVNzhzN21yOUVFTThIZ3pwREM3UDFB", { value: { street1: "1600 Pennsylvania Avenue NW", city: "Washington DC", state: "Washington DC", postalCode: "20500", country: "US", }, toDate: "2024-04-30", fromDate: "2024-01-01", date: "2024-02-15", }, );
-
-
-
attributeId:
string
-
request:
Sayari.UpdateAttribute
-
requestOptions:
Attributes.RequestOptions
-
-
client.attributes.deleteAttribute(attributeId) -> Sayari.AttributeResponse
-
-
-
This endpoint is in beta and is subject to change. It is provided for early access and testing purposes only. Delete an existing Attribute
-
-
-
await client.attributes.deleteAttribute( "enEwNGF4WDJkTG45dEU2VzZROFFoZ3xhZGRyZXNzfDBwbEVCMHxVNzhzN21yOUVFTThIZ3pwREM3UDFB", );
-
-
-
attributeId:
string
-
requestOptions:
Attributes.RequestOptions
-
-
client.auth.getToken({ ...params }) -> Sayari.AuthResponse
-
-
-
Hit the auth endpoint to get a bearer token
-
-
-
await client.auth.getToken({ clientId: "your client_id here", clientSecret: "your client_secret here", });
-
-
-
request:
Sayari.GetToken
-
requestOptions:
Auth.RequestOptions
-
-
client.entity.getEntity(id, { ...params }) -> Sayari.GetEntityResponse
-
-
-
To retrieve a L1 Due Dilligence PDF Report. Include 'Accept: application/pdf' in request headers. Retrieve an entity profile from the database based on the entity ID. This endpoint returns the full profile, entity_summary returns the same payload minus relationships.
-
-
-
await client.entity.getEntity("mGq1lpuqKssNWTjIokuPeA", { attributesNameLimit: 1, attributesAddressLimit: 1, attributesCountryLimit: 1, attributesAdditionalInformationLimit: 1, attributesBusinessPurposeLimit: 1, attributesCompanyTypeLimit: 1, attributesIdentifierLimit: 1, attributesStatusLimit: 1, relationshipsLimit: 1, possiblySameAsLimit: 1, referencedByLimit: 1, });
-
-
-
id:
string— Unique identifier of the entity
-
request:
Sayari.GetEntity
-
requestOptions:
Entity.RequestOptions
-
-
client.entity.entitySummary(id) -> Sayari.EntitySummaryResponse
-
-
-
The Entity Summary endpoint returns a similar payload, minus relationships.
-
-
-
await client.entity.entitySummary("mGq1lpuqKssNWTjIokuPeA");
-
-
-
id:
string— Unique identifier of the entity
-
requestOptions:
Entity.RequestOptions
-
-
client.info.getUsage({ ...params }) -> Sayari.UsageResponse
-
-
-
The usage endpoint provides a simple interface to retrieve information on usage made by your API account. This includes both views per API path and credits consumed. The time period for the usage query is also specified in the response and whether or not this includes total usage.
-
-
-
await client.info.getUsage();
-
-
-
request:
Sayari.GetUsage
-
requestOptions:
Info.RequestOptions
-
-
client.info.getHistory({ ...params }) -> Sayari.HistoryResponse
-
-
-
The history endpoint return a user's event history.
-
-
-
await client.info.getHistory();
-
-
-
request:
Sayari.GetHistory
-
requestOptions:
Info.RequestOptions
-
-
client.metadata.metadata() -> Sayari.MetadataResponse
-
-
-
Get metadta about the api, both its versions, which releases are present, and the identity of the authenticated user.
-
-
-
await client.metadata.metadata();
-
-
-
requestOptions:
Metadata.RequestOptions
-
-
client.negativeNews.negativeNews({ ...params }) -> Sayari.NegativeNewsResponse
-
-
-
This endpoint is in beta and subject to change Screens entities against news articles and public records to identify risk-relevant content. Leverages machine learning to detect and classify risks across various domains. Provides detailed article metadata with risk assessments and direct source references.
-
-
-
await client.negativeNews.negativeNews({ name: "Gazprom", topic: "sanctions_and_regulatory", until: "2024-10-01", });
-
-
-
request:
Sayari.NegativeNews
-
requestOptions:
NegativeNews.RequestOptions
-
-
client.notifications.projectNotifications(id, { ...params }) -> Sayari.ProjectNotificationsResponse
-
-
-
Legacy endpoint. New integrations should contact Sayari for best practices. The Project Notifications endpoint returns a list of notifications on all entities saved to a project.
-
-
-
await client.notifications.projectNotifications("0dLeO0", { limit: 20, });
-
-
-
id:
string— Unique identifier of the project
-
request:
Sayari.ProjectNotifications
-
requestOptions:
Notifications.RequestOptions
-
-
client.notifications.resourceNotifications(id, { ...params }) -> Sayari.ResourceNotificationsResponse
-
-
-
Legacy endpoint. New integrations should contact Sayari for best practices. The Resource Notifications endpoint returns a list of notifications for a saved entity.
-
-
-
await client.notifications.resourceNotifications("03ePyj", { limit: 20, });
-
-
-
id:
string— Unique identifier of the resource
-
request:
Sayari.ResourceNotifications
-
requestOptions:
Notifications.RequestOptions
-
-
client.notifications.deleteProjectNotifications(projectId) -> void
-
-
-
Legacy endpoint. New integrations should contact Sayari for best practices. Deletes all notifications from a project.
-
-
-
await client.notifications.deleteProjectNotifications("YWmNKV");
-
-
-
projectId:
string
-
requestOptions:
Notifications.RequestOptions
-
-
client.notifications.deleteEntityNotifications(entityId) -> void
-
-
-
Legacy endpoint. New integrations should contact Sayari for best practices. Deletes notifications for saved resources of an entity.
-
-
-
await client.notifications.deleteEntityNotifications("N0xLDy4wcud-M1ZtwdsvRA");
-
-
-
entityId:
string
-
requestOptions:
Notifications.RequestOptions
-
-
client.notifications.deleteResourceNotifications(resourceId) -> void
-
-
-
Legacy endpoint. New integrations should contact Sayari for best practices. Deletes notifications for a saved resource.
-
-
-
await client.notifications.deleteResourceNotifications("oGxxqG");
-
-
-
resourceId:
string
-
requestOptions:
Notifications.RequestOptions
-
-
client.ontology.getOntology() -> Sayari.GetOntologyResponse
-
-
-
Get ontology data for all resource types.
-
-
-
await client.ontology.getOntology();
-
-
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getAttributes({ ...params }) -> Sayari.GetOntologyAttributesResponse
-
-
-
Get attributes from ontology data.
-
-
-
await client.ontology.getAttributes({ id: ["additional_information"], });
-
-
-
request:
Sayari.GetOntologyAttributesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getCountries({ ...params }) -> Sayari.GetOntologyCountriesResponse
-
-
-
Get countries from ontology data.
-
-
-
await client.ontology.getCountries({ id: ["USA"], });
-
-
-
request:
Sayari.GetOntologyCountriesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getCurrencies({ ...params }) -> Sayari.GetOntologyCurrenciesResponse
-
-
-
Get currencies from ontology data.
-
-
-
await client.ontology.getCurrencies({ id: ["USD"], });
-
-
-
request:
Sayari.GetOntologyCurrenciesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getEntityTypes({ ...params }) -> Sayari.GetOntologyEntityTypesResponse
-
-
-
Get entity types from ontology data.
-
-
-
await client.ontology.getEntityTypes({ id: ["aircraft"], });
-
-
-
request:
Sayari.GetOntologyEntityTypesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getEnums({ ...params }) -> Sayari.GetOntologyEnumsResponse
-
-
-
Get enums from ontology data.
-
-
-
await client.ontology.getEnums({ id: ["address_type"], });
-
-
-
request:
Sayari.GetOntologyEnumsRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getHsCodes({ ...params }) -> Sayari.GetOntologyHsCodesResponse
-
-
-
Get HS codes from ontology data.
-
-
-
await client.ontology.getHsCodes({ code: ["1503"], });
-
-
-
request:
Sayari.GetOntologyHsCodesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getIdentifiers({ ...params }) -> Sayari.GetOntologyIdentifiersResponse
-
-
-
Get identifiers from ontology data.
-
-
-
await client.ontology.getIdentifiers({ id: ["aer_free_zone_license"], });
-
-
-
request:
Sayari.GetOntologyIdentifiersRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getLanguages({ ...params }) -> Sayari.GetOntologyLanguagesResponse
-
-
-
Get languages from ontology data.
-
-
-
await client.ontology.getLanguages({ id: ["en"], });
-
-
-
request:
Sayari.GetOntologyLanguagesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getRegions({ ...params }) -> Sayari.GetOntologyRegionsResponse
-
-
-
Get regions from ontology data.
-
-
-
await client.ontology.getRegions({ id: ["usa_&_canada"], });
-
-
-
request:
Sayari.GetOntologyRegionsRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getRelationships({ ...params }) -> Sayari.GetOntologyRelationshipsResponse
-
-
-
Get relationships from ontology data.
-
-
-
await client.ontology.getRelationships({ id: ["auditor_of"], });
-
-
-
request:
Sayari.GetOntologyRelationshipsRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getRiskFactors({ ...params }) -> Sayari.GetOntologyRiskFactorsResponse
-
-
-
Get risk factors from ontology data.
-
-
-
await client.ontology.getRiskFactors({ id: ["psa_owner_of_ofac_fto_sanctioned"], riskCategory: ["sanctions"], level: ["high"], riskType: ["network"], enabled: true, visible: true, });
-
-
-
request:
Sayari.GetOntologyRiskFactorsRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getSources({ ...params }) -> Sayari.GetOntologySourcesResponse
-
-
-
Get sources from ontology data.
-
-
-
await client.ontology.getSources({ id: ["e85d865943ee6d8369307569d2ad9de0"], country: ["XXX"], sourceType: ["adverse_media_/_negative_news_data"], });
-
-
-
request:
Sayari.GetOntologySourcesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.ontology.getSourceTypes({ ...params }) -> Sayari.GetOntologySourceTypesResponse
-
-
-
Get source types from ontology data.
-
-
-
await client.ontology.getSourceTypes({ id: ["adverse_media_/_negative_news_data"], });
-
-
-
request:
Sayari.GetOntologySourceTypesRequest
-
requestOptions:
Ontology.RequestOptions
-
-
client.projectEntityAttributes.getProjectEntityAttributes(projectId, projectEntityId) -> Sayari.ProjectEntityAttributesResponse
-
-
-
Retrieves all attributes for a project entity.
-
-
-
await client.projectEntityAttributes.getProjectEntityAttributes("V03eYM", "BG72YW");
-
-
-
projectId:
string
-
projectEntityId:
string
-
requestOptions:
ProjectEntityAttributes.RequestOptions
-
-
client.projectEntityAttributes.createProjectEntityAttribute(projectId, projectEntityId, { ...params }) -> Sayari.CreateProjectEntityAttributeResponse
-
-
-
Creates a new attribute for a project entity.
-
-
-
await client.projectEntityAttributes.createProjectEntityAttribute("V03eYM", "BG72YW", { field: "custom_phone", value: "+1-555-123-4567", matchResolution: false, });
-
-
-
projectId:
string
-
projectEntityId:
string
-
request:
Sayari.CreateProjectEntityAttributeRequest
-
requestOptions:
ProjectEntityAttributes.RequestOptions
-
-
client.projectEntityAttributes.updateProjectEntityAttribute(projectId, projectEntityId, attributeId, { ...params }) -> Sayari.UpdateProjectEntityAttributeResponse
-
-
-
Updates a specific attribute for a project entity.
-
-
-
await client.projectEntityAttributes.updateProjectEntityAttribute("V03eYM", "BG72YW", "xG8wYP", { field: "name", value: "updated name", matchResolution: true, });
-
-
-
projectId:
string
-
projectEntityId:
string
-
attributeId:
string
-
request:
Sayari.UpdateProjectEntityAttributeRequest
-
requestOptions:
ProjectEntityAttributes.RequestOptions
-
-
client.projectEntityAttributes.deleteProjectEntityAttribute(projectId, projectEntityId, attributeId) -> void
-
-
-
Deletes a specific attribute for a project entity.
-
-
-
await client.projectEntityAttributes.deleteProjectEntityAttribute("project_id", "project_entity_id", "attribute_id");
-
-
-
projectId:
string
-
projectEntityId:
string
-
attributeId:
string
-
requestOptions:
ProjectEntityAttributes.RequestOptions
-
-
client.projectEntitySupplyChainSnapshots.getProjectEntitySupplyChainSnapshots(projectId, projectEntityId) -> Sayari.ProjectEntitySupplyChainSnapshotsResponse
-
-
-
Retrieves all supply chain snapshots for a project entity.
-
-
-
await client.projectEntitySupplyChainSnapshots.getProjectEntitySupplyChainSnapshots("V03eYM", "BG72YW");
-
-
-
projectId:
string
-
projectEntityId:
string
-
requestOptions:
ProjectEntitySupplyChainSnapshots.RequestOptions
-
-
client.projectEntitySupplyChainSnapshots.getProjectEntitySupplyChainSnapshotById(projectId, projectEntityId, snapshotId) -> Sayari.ProjectEntitySupplyChainSnapshotByIdResponse
-
-
-
Retrieves a specific supply chain snapshot by ID for a project entity.
-
-
-
await client.projectEntitySupplyChainSnapshots.getProjectEntitySupplyChainSnapshotById("V03eYM", "BG72YW", "sN4p2K");
-
-
-
projectId:
string
-
projectEntityId:
string
-
snapshotId:
string
-
requestOptions:
ProjectEntitySupplyChainSnapshots.RequestOptions
-
-
client.projectEntitySupplyChainSnapshots.createProjectEntitySupplyChainSnapshot(projectId, projectEntityId, { ...params }) -> Sayari.CreateProjectEntitySupplyChainSnapshotResponse
-
-
-
Creates a new supply chain snapshot for a project entity.
-
-
-
await client.projectEntitySupplyChainSnapshots.createProjectEntitySupplyChainSnapshot("V03eYM", "BG72YW", { label: "Q1 2024 Supply Chain Analysis", });
-
-
-
projectId:
string
-
projectEntityId:
string
-
request:
Sayari.CreateProjectEntitySupplyChainSnapshotRequest
-
requestOptions:
ProjectEntitySupplyChainSnapshots.RequestOptions
-
-
client.projectEntitySupplyChainSnapshots.deleteProjectEntitySupplyChainSnapshotById(projectId, projectEntityId, snapshotId) -> void
-
-
-
Deletes a specific supply chain snapshot by ID for a project entity.
-
-
-
await client.projectEntitySupplyChainSnapshots.deleteProjectEntitySupplyChainSnapshotById( "project_id", "project_entity_id", "snapshot_id", );
-
-
-
projectId:
string
-
projectEntityId:
string
-
snapshotId:
string
-
requestOptions:
ProjectEntitySupplyChainSnapshots.RequestOptions
-
-
client.projectEntity.createProjectEntity(projectId, { ...params }) -> Sayari.SingleProjectEntityResponse
-
-
-
The resolution endpoints allow users to search for matching entities against a provided list of attributes. The endpoint is similar to the search endpoint, except it's tuned to only return the best match so the client doesn't need to do as much or any post-processing work to filter down results.
-
-
-
await client.projectEntity.createProjectEntity("YVB88Y", { body: { name: ["VTB Bank"], country: ["RUS"], address: ["Moscow"], identifier: ["253400V1H6ART1UQ0N98"], profile: "corporate", }, });
-
-
-
projectId:
string
-
request:
Sayari.CreateResolvedProjectEntityRequestWrapper
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.getProjectEntities(projectId, { ...params }) -> Sayari.ProjectEntitiesResponse
-
-
-
Retrieves a list of entities for a specific project with pagination support.
Response Formats:
- JSON (default): Returns structured data with nested objects
- CSV: Returns tabular data with dynamic columns for attributes and risk categories
CSV Format: The CSV response includes dynamic columns based on the data:
attribute_{field_name}: Dynamic columns for each attribute field found in the datarisk_category_{category_id}: Dynamic columns for each risk category found in the data- Standard columns: project_id, project_entity_id, label, project_entity_url, upload_ids, strength, countries, tags, case_status, created_at, match_count, upstream_products, upstream_risk_factors, upstream_countries
Use the
Accept: text/csvheader to request CSV format.
-
-
-
await client.projectEntity.getProjectEntities("YVB88Y");
-
-
-
projectId:
string
-
request:
Sayari.GetProjectEntitiesRequest
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.getProjectEntity(projectId, projectEntityId) -> Sayari.SingleProjectEntityResponse
-
-
-
Retrieves a specific entity in a project.
-
-
-
await client.projectEntity.getProjectEntity("project_id", "project_entity_id");
-
-
-
projectId:
string
-
projectEntityId:
string
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.deleteProjectEntity(projectId, projectEntityId) -> void
-
-
-
Deletes a project entity.
-
-
-
await client.projectEntity.deleteProjectEntity("project_id", "project_entity_id");
-
-
-
projectId:
string
-
projectEntityId:
string
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.deleteProjectEntityMatch(projectId, projectEntityId, matchId) -> void
-
-
-
Deletes a specific project entity match.
-
-
-
await client.projectEntity.deleteProjectEntityMatch("project_id", "project_entity_id", "match_id");
-
-
-
projectId:
string
-
projectEntityId:
string
-
matchId:
string
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.projectEntityExists(projectId, { ...params }) -> Sayari.ProjectEntityIdResponse
-
-
-
Checks if a project entity with the given attributes already exists.
-
-
-
await client.projectEntity.projectEntityExists("YVB88Y", { name: ["Example Company"], country: ["USA"], });
-
-
-
projectId:
string
-
request:
Sayari.ResolutionAttributes
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.saveProjectEntity(projectId, { ...params }) -> Sayari.ProjectEntityIdResponse
-
-
-
Stores a project entity given entity IDs and a list of attributes.
-
-
-
await client.projectEntity.saveProjectEntity("YVB88Y", { entityIds: ["entity_id_1", "entity_id_2"], attributes: { name: ["Example Company"], country: ["USA"], }, profile: "corporate", });
-
-
-
projectId:
string
-
request:
Sayari.SaveProjectEntityBody
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.getProjectRiskChanges(projectId, { ...params }) -> Sayari.ProjectRiskChangesResponse
-
-
-
Retrieves the risk changes for all project entities in a project.
-
-
-
await client.projectEntity.getProjectRiskChanges("YVB88Y");
-
-
-
projectId:
string
-
request:
Sayari.GetProjectRiskChangesRequest
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.getProjectEntityRiskChanges(projectId, projectEntityId, { ...params }) -> Sayari.ProjectEntityRiskChangesResponse
-
-
-
Retrieves the risk changes for a single project entity.
-
-
-
await client.projectEntity.getProjectEntityRiskChanges("YVB88Y", "52z4Wa");
-
-
-
projectId:
string
-
projectEntityId:
string
-
request:
Sayari.GetProjectEntityRiskChangesRequest
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.deleteProjectRiskChanges(projectId) -> void
-
-
-
Dismiss risk changes for all project entities in a project.
-
-
-
await client.projectEntity.deleteProjectRiskChanges("project_id");
-
-
-
projectId:
string
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.deleteProjectEntityRiskChanges(projectId, projectEntityId) -> void
-
-
-
Dismiss risk changes for a single project entity.
-
-
-
await client.projectEntity.deleteProjectEntityRiskChanges("project_id", "project_entity_id");
-
-
-
projectId:
string
-
projectEntityId:
string
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.projectEntitySupplyChain(projectId, projectEntityId, { ...params }) -> Sayari.UpstreamTradeTraversalResponse
-
-
-
Execute a traversal of the upstream trade network (supply chain) for all matched entities of a project entity, returning a set of entities and edges between them.
-
-
-
await client.projectEntity.projectEntitySupplyChain("0n4473", "yebNPJ", { product: ["6004"], limit: 1, });
-
-
-
projectId:
string— The project Identifier
-
projectEntityId:
string— The project entity Identifier
-
request:
Sayari.ProjectEntitySupplyChainRequest
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.getProjectEntityRiskSummary(projectId, projectEntityId, { ...params }) -> Sayari.ProjectEntityRiskSummaryResponse
-
-
-
Retrieves a risk summary for a specific project entity, including risk factors with network paths and risk intelligence data.
Response includes:
- Risk factors with their levels (elevated, high, critical)
- Network paths showing relationships between entities
- Risk intelligence scores and metadata
- Risk categories and source entity information
-
-
-
await client.projectEntity.getProjectEntityRiskSummary("YVB88Y", "52z4Wa", { filter: { riskFactor: ["sanctioned", "regulatory_action"], riskCategory: ["sanctions", "export_controls"], }, });
-
-
-
projectId:
string
-
projectEntityId:
string
-
request:
Sayari.GetProjectEntityRiskSummaryRequest
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.projectEntity.projectEntitySupplyChainSummary(projectId, projectEntityId, { ...params }) -> Sayari.ProjectEntitySupplyChainSummaryResponse
-
-
-
Execute a traversal of the upstream trade network (supply chain) for all matched entities of a project entity, returning a summary of countries, risks, and components.
-
-
-
await client.projectEntity.projectEntitySupplyChainSummary("0n4473", "yebNPJ", { maxDepth: 4, });
-
-
-
projectId:
string— The project Identifier
-
projectEntityId:
string— The project entity Identifier
-
request:
Sayari.ProjectEntitySupplyChainSummaryRequest
-
requestOptions:
ProjectEntity.RequestOptions
-
-
client.project.createProject({ ...params }) -> Sayari.CreateProjectResponse
-
-
-
Create a new project.
-
-
-
await client.project.createProject({ label: "My First Project", share: { org: "admin", }, });
-
-
-
request:
Sayari.CreateProjectRequest
-
requestOptions:
Project.RequestOptions
-
-
client.project.getProjects({ ...params }) -> Sayari.GetProjectsResponse
-
-
-
Retrieve a list of projects including upload progress info.
-
-
-
await client.project.getProjects({ archived: false, limit: 8, });
-
-
-
request:
Sayari.GetProjects
-
requestOptions:
Project.RequestOptions
-
-
client.project.deleteProject(projectId) -> Sayari.DeleteProjectResponse
-
-
-
Deletes an existing project.
-
-
-
await client.project.deleteProject("Gam5qG");
-
-
-
projectId:
string
-
requestOptions:
Project.RequestOptions
-
-
client.record.getRecord(id, { ...params }) -> Sayari.GetRecordResponse
-
-
-
Retrieve a record from the database based on the ID
-
-
-
await client.record.getRecord("74cf0fc2a62f9c8f4e88f8a0b3ffcca4%2FF0000110%2F1682970471254");
-
-
-
id:
string— The unique identifier for a record in the database
-
request:
Sayari.GetRecord
-
requestOptions:
Record_.RequestOptions
-
-
client.resolution.resolution({ ...params }) -> Sayari.ResolutionResponse
-
-
-
The resolution endpoints allow users to search for matching entities against a provided list of attributes. The endpoint is similar to the search endpoint, except it's tuned to only return the best match so the client doesn't need to do as much or any post-processing work to filter down results.
-
-
-
await client.resolution.resolution({ name: "Thomas Bangalter", address: "8 AVENUE RACHEL", country: "FRA", });
-
-
-
request:
Sayari.Resolution
-
requestOptions:
Resolution.RequestOptions
-
-
client.resolution.resolutionPost({ ...params }) -> Sayari.ResolutionResponse
-
-
-
The resolution endpoints allow users to search for matching entities against a provided list of attributes. The endpoint is similar to the search endpoint, except it's tuned to only return the best match so the client doesn't need to do as much or any post-processing work to filter down results.
-
-
-
await client.resolution.resolutionPost({ limit: 1, body: { name: ["Thomas Bangalter"], address: ["8 AVENUE RACHEL"], country: ["FRA"], }, });
-
-
-
request:
Sayari.ResolutionPost
-
requestOptions:
Resolution.RequestOptions
-
-
client.resolution.resolutionPersisted(projectId, { ...params }) -> Sayari.ResolutionPersistedResponse
-
-
-
This endpoint is deprecated. The persisted resolution endpoints allow users to search for matching entities against a provided list of attributes. The endpoint is similar to the resolution endpoint, except it also stores matched entities into user's project.
-
-
-
await client.resolution.resolutionPersisted("V03eYM", { limit: 1, body: { name: ["victoria beckham limited"], }, });
-
-
-
projectId:
string— Unique identifier of the project
-
request:
Sayari.ResolutionPersisted
-
requestOptions:
Resolution.RequestOptions
-
-
client.resolution.resolutionUpload(projectId, { ...params }) -> Sayari.ResolutionUploadResponse
-
-
-
This endpoint is deprecated. This endpoint allows you to upload entities in bulk.
-
-
-
await client.resolution.resolutionUpload("V03eYM", { filename: "vbeck.json", data: [ { name: ["victoria beckham limited"], tags: ["spice girls"], }, ], });
-
-
-
projectId:
string— Unique identifier of the project
-
request:
Sayari.ResolutionUploadBody
-
requestOptions:
Resolution.RequestOptions
-
-
client.resource.saveEntity({ ...params }) -> Sayari.SaveEntityResponse
-
-
-
Save an entity to a project.
-
-
-
await client.resource.saveEntity({ type: "entity", project: "GNJbkG", entityId: "Zk0qOaM2SSYg_ZhsljykMQ", customFields: { properties: { custom_name: "Victoria Beckham", }, }, });
-
-
-
request:
Sayari.SaveEntityRequest
-
requestOptions:
Resource.RequestOptions
-
-
client.resource.deleteResource(type_, resourceId) -> Sayari.DeleteResourceResponse
-
-
-
Deletes an existing saved resource from a project.
-
-
-
await client.resource.deleteResource("entity", "YWmNKV");
-
-
-
type_:
Sayari.ResourceType
-
resourceId:
string
-
requestOptions:
Resource.RequestOptions
-
-
client.search.searchEntity({ ...params }) -> Sayari.EntitySearchResponse
-
-
-
Search for an entity. Please note, searches are limited to a maximum of 10,000 results.
-
-
-
await client.search.searchEntity({ limit: 1, q: "victoria beckham limited", });
-
-
-
request:
Sayari.SearchEntity
-
requestOptions:
Search.RequestOptions
-
-
client.search.searchEntityGet({ ...params }) -> Sayari.EntitySearchResponse
-
-
-
Search for an entity. Please note, searches are limited to a maximum of 10,000 results.
-
-
-
await client.search.searchEntityGet({ limit: 1, q: "victoria beckham limited", });
-
-
-
request:
Sayari.SearchEntityGet
-
requestOptions:
Search.RequestOptions
-
-
client.search.searchRecord({ ...params }) -> Sayari.RecordSearchResponse
-
-
-
Search for a record. Please note, searches are limited to a maximum of 10,000 results.
-
-
-
await client.search.searchRecord({ limit: 1, q: "victoria beckham limited", });
-
-
-
request:
Sayari.SearchRecord
-
requestOptions:
Search.RequestOptions
-
-
client.search.searchRecordGet({ ...params }) -> Sayari.RecordSearchResponse
-
-
-
Search for a record. Please note, searches are limited to a maximum of 10,000 results.
-
-
-
await client.search.searchRecordGet({ q: "victoria beckham limited", limit: 1, });
-
-
-
request:
Sayari.SearchRecordGet
-
requestOptions:
Search.RequestOptions
-
-
client.supplyChain.upstreamTradeTraversal(id, { ...params }) -> Sayari.UpstreamTradeTraversalResponse
-
-
-
Execute a traversal of the upstream trade network (supply chain) of an entity, returning a set of entities and edges between them.
-
-
-
await client.supplyChain.upstreamTradeTraversal("ESkH7J-UCRfY5t0_JXIH3w", { minDate: "2023-03-15", product: ["3204"], risk: ["forced_labor_xinjiang_origin_subtier"], });
-
-
-
id:
string— The root entity identifier.
-
request:
Sayari.UpstreamTradeTraversalRequest
-
requestOptions:
SupplyChain.RequestOptions
-
-
client.trade.searchShipments({ ...params }) -> Sayari.ShipmentSearchResponse
-
-
-
Search for a shipment. Please note, searches are limited to a maximum of 10,000 results.
-
-
-
await client.trade.searchShipments({ limit: 1, filter: { departureCountry: ["DEU"], arrivalCountry: ["RUS"], hsCode: ["854231"], arrivalDate: "2024-01|2024-10", }, });
-
-
-
request:
Sayari.SearchShipments
-
requestOptions:
Trade.RequestOptions
-
-
client.trade.searchSuppliers({ ...params }) -> Sayari.SupplierSearchResponse
-
-
-
Search for a supplier. Please note, searches are limited to a maximum of 10,000 results.
-
-
-
await client.trade.searchSuppliers({ limit: 1, filter: { departureCountry: ["DEU"], arrivalCountry: ["RUS"], hsCode: ["854231"], arrivalDate: "2024-01|2024-10", }, });
-
-
-
request:
Sayari.SearchSuppliers
-
requestOptions:
Trade.RequestOptions
-
-
client.trade.searchBuyers({ ...params }) -> Sayari.BuyerSearchResponse
-
-
-
Search for a buyer. Please note, searches are limited to a maximum of 10,000 results.
-
-
-
await client.trade.searchBuyers({ limit: 1, filter: { departureCountry: ["DEU"], arrivalCountry: ["RUS"], hsCode: ["854231"], arrivalDate: "2024-01|2024-10", }, });
-
-
-
request:
Sayari.SearchBuyers
-
requestOptions:
Trade.RequestOptions
-
-
client.traversal.traversal(id, { ...params }) -> Sayari.TraversalResponse
-
-
-
The Traversal endpoint returns paths from a single target entity to up to 50 directly or indirectly-related entities. Each path includes information on the 0 to 10 intermediary entities, as well as their connecting relationships. The response's explored_count field indicates the size of the graph subset the application searched. Running a traversal on a highly connected entity with a restrictive set of argument filters and a high max depth will require the application to explore a higher number of traversal paths, which may affect performance. In cases where a traversal searches over a very large, highly-connected subgraph, a partial result set may be returned containing only the most relevant results. This will be indicated in the response by the partial_results field.
-
-
-
await client.traversal.traversal("mGq1lpuqKssNWTjIokuPeA", { limit: 1, });
-
-
-
id:
string— Unique identifier of the entity
-
request:
Sayari.Traversal
-
requestOptions:
Traversal.RequestOptions
-
-
client.traversal.ubo(id, { ...params }) -> Sayari.TraversalResponse
-
-
-
The UBO endpoint returns paths from a single target entity to up to 50 beneficial owners. The endpoint is a shorthand for the equivalent traversal query.
-
-
-
await client.traversal.ubo("mGq1lpuqKssNWTjIokuPeA", { limit: 1, });
-
-
-
id:
string— Unique identifier of the entity
-
request:
Sayari.Ubo
-
requestOptions:
Traversal.RequestOptions
-
-
client.traversal.ownership(id, { ...params }) -> Sayari.TraversalResponse
-
-
-
The Ownership endpoint returns paths from a single target entity to up to 50 entities directly or indirectly owned by that entity. The endpoint is a shorthand for the equivalent traversal query.
-
-
-
await client.traversal.ownership("mGq1lpuqKssNWTjIokuPeA", { limit: 1, });
-
-
-
id:
string— Unique identifier of the entity
-
request:
Sayari.Ownership
-
requestOptions:
Traversal.RequestOptions
-
-
client.traversal.watchlist(id, { ...params }) -> Sayari.TraversalResponse
-
-
-
The Watchlist endpoint returns paths from a single target entity to up to 50 other entities that appear on a watchlist. The endpoint is a shorthand for the equivalent traversal query.
-
-
-
await client.traversal.watchlist("mGq1lpuqKssNWTjIokuPeA", { limit: 1, });
-
-
-
id:
string— Unique identifier of the entity
-
request:
Sayari.Watchlist
-
requestOptions:
Traversal.RequestOptions
-
-
client.traversal.shortestPath({ ...params }) -> Sayari.ShortestPathResponse
-
-
-
The Shortest Path endpoint returns a response identifying the shortest traversal path connecting each pair of entities.
-
-
-
await client.traversal.shortestPath({ entities: "H1y25N5ymnFyZ-q9Lpwm_g&entities=xthsA_jQuKn3GW8-9ILQqg", });
-
-
-
request:
Sayari.ShortestPath
-
requestOptions:
Traversal.RequestOptions
-
-