Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Datagalaxy Search API
version: 2.40.0
license:
name: DataGalaxy©
x-logo:
url: /v2/public/datagalaxy-developers-vertical.svg
backgroundColor: '#fafafa'
altText: DataGalaxy logo
x-nullable: true
description: 'Operations tagged Search across 2 of this provider''s published API definitions: datagalaxy-developer-api.json, datagalaxy-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /
- url: https://api.datagalaxy.com
description: Production. The published spec carries a relative server "/" with /v2-prefixed paths; it is served from https://api.datagalaxy.com/v2/documentation
tags:
- name: Search
paths:
/v2/search:
post:
operationId: Search
responses:
'200':
description: Ok
content:
application/json:
schema:
$ref: '#/components/schemas/SearchResponse'
description: 'Search DataGalaxy objects with queries and filters.
### Exact matches
An exact match occurs when your `query` perfectly matches an object''s text attribute value.
#### Exact match requirements
Attributes have to be indexed for exact match.
#### Finding exact matches in the search result
Exact matches can be determined using the `isExactMatch` boolean (`result.entities[n].isExactMatch`).
Each search result returned carries this flag.
### Filters
Filters help you refine your search. They are applied to objects attributes'' values.
Different attribute types support different search operators:
| Attribute type | Compatible filter operators |
|:--------------:|:---------------------------:|
| Text, FormattedText, MultiLineText, HtmlLink | `contains`, `equals`, `startsWith`, `endsWith`, `isEmpty`, `isNotEmpty` |
| Boolean | `equals` |
| Number, TimeSeriesLastEntry | `equals`, `greaterThan`, `lowerThan`, `greaterOrEqualTo`, `lowerOrEqualTo`, `range`, `isEmpty`, `isNotEmpty` |
| Date, DateTime | `range`, `pastHour`, `today`, `yesterday`, `currentWeek`, `pastWeek`, `beforeCurrentWeek`, `beforePastWeek`, `currentMonth`, `pastMonth`, `beforeCurrentMonth`, `beforePastMonth`, `beforeToday`, `currentYear`, `last365days`, `isEmpty`, `isNotEmpty` |
| ValueList | `contains`, `excludes`, `equals` |
| Reference | `contains`, `equals`, `isEmpty`, `isNotEmpty` |
| ReferenceList, ClientTag, MultiValueList, Hierarchy, PersonReference, UserReference, StewardUserReference, EntityReference, ObjectLink, AllLinkedData, UserGuid, ManagedTag | `contains`, `isEmpty`, `isNotEmpty`, `matchAll`, `excludes` |
| Technology | `contains`, `excludes` |
#### Combining filters
Values inside a single filter are combined with **OR**: an object matches if it matches any of the values.
Filters are combined with **AND**: an object is returned only if it matches every filter.
For example, the following filters return MySQL objects whose status is either *Proposed* or *Obsolete*:
```json
"filters": [
{ "attributeKey": "TechnologyCode", "operator": "contains", "values": ["mysql"] },
{ "attributeKey": "EntityStatus", "operator": "contains", "values": ["Proposed", "Obsolete"] }
]
```
#### Date filters
Date operators other than `range`, such as `currentWeek` or `today`, take an empty `values` array.
For example, the following filter returns objects modified during the current week:
```json
{ "attributeKey": "LastModificationTime", "operator": "currentWeek", "values": [] }
```
#### User filters
Filters on user attributes, such as `DataOwners` or `DataStewards`, expect user IDs.
Get them with the `GET /v2/users` endpoint, then filter on them:
```json
{ "attributeKey": "DataOwners", "operator": "contains", "values": ["{userId}"] }
```
#### Link filters
To find objects linked to another object, use the `ObjectLinks_{linkType}` attribute key with the linked object''s ID as the value.
For example, the following filter returns objects linked to a given domain with the `HasForDomain` link type:
```json
{ "attributeKey": "ObjectLinks_HasForDomain", "operator": "contains", "values": ["{objectId}"] }
```
### Performance
Set `versionId` whenever you know it, and set `limit` to the number of objects you need.
Both reduce the load of the request and its response time.
This endpoint is not paginated: `total_sum` gives the total number of matching objects.
To get more results, increase `limit` or refine your filters.'
summary: Search DataGalaxy objects
tags:
- Search
security:
- Personal Access Token: []
- Integration token: []
parameters:
- in: header
name: Accept-Language
required: false
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SearchBody'
servers:
- url: /
components:
schemas:
AccessData:
properties:
hasOfficialRoleAttributesWriteAccess:
type: boolean
hasEntityStatusWriteAccess:
type: boolean
hasTaskWriteAccess:
type: boolean
hasReadAccess:
type: boolean
hasWriteAccess:
type: boolean
hasAdministratorAccess:
type: boolean
hasImportAccess:
type: boolean
hasExportAccess:
type: boolean
hasDeleteAccess:
type: boolean
hasCreateAccess:
type: boolean
hasManagementAccess:
type: boolean
required:
- hasOfficialRoleAttributesWriteAccess
- hasEntityStatusWriteAccess
- hasTaskWriteAccess
- hasReadAccess
- hasWriteAccess
- hasAdministratorAccess
- hasImportAccess
- hasExportAccess
- hasDeleteAccess
- hasCreateAccess
- hasManagementAccess
type: object
additionalProperties: false
SearchResponse:
properties:
total:
type: number
format: double
description: Number of objects returned in the response payload
total_sum:
type: number
format: double
description: Sum of all existing objets
result:
properties:
filteredViews:
items:
$ref: '#/components/schemas/FilteredViewSummary'
type: array
entities:
items:
$ref: '#/components/schemas/EntitySearchResult'
type: array
required:
- filteredViews
- entities
type: object
quickFilters:
items:
$ref: '#/components/schemas/QuickFilter'
type: array
description: These filtered are a suggestion to help refine your search
required:
- total
- total_sum
- result
- quickFilters
type: object
additionalProperties: false
ExactMatch:
description: List of attributes that are exact matches
properties:
attributeKey:
type: string
example: TechnicalName
value:
type: string
example: Foo
required:
- attributeKey
- value
type: object
additionalProperties: false
TimeSeriesEntry:
description: All TimeSeries entries can be removed by setting your TimeSeries attribute value to null.<br>
properties:
date:
$ref: '#/components/schemas/IDate'
value:
type: number
format: double
required:
- date
- value
type: object
additionalProperties: false
EntityBase:
properties:
id:
$ref: '#/components/schemas/DoubleUuid'
description: Entity id
name:
type: string
description: Entity functional name
example: foo
technicalName:
type: string
description: Entity technical name
example: bar
type:
type: string
description: Entity type
dataType:
type: string
description: Entity dataType
required:
- id
- name
- type
- dataType
type: object
additionalProperties: false
SearchQuery:
type: string
description: 'This term will be searched in the following attributes of an object: <i>name, technicalName, description, summary and local synonym names</i>'
SearchFilterOperator:
enum:
- contains
- startsWith
- endsWith
- equals
- excludes
- matchAll
- range
- notEquals
- lowerThan
- lowerOrEqualTo
- greaterThan
- greaterOrEqualTo
- pastHour
- today
- yesterday
- currentWeek
- pastWeek
- beforeCurrentWeek
- beforePastWeek
- currentMonth
- pastMonth
- beforeCurrentMonth
- beforePastMonth
- beforeToday
- currentYear
- last365days
- isEmpty
- isNotEmpty
type: string
EntityAttributes:
properties:
status:
$ref: '#/components/schemas/EntityLifecycleStatusEnum'
tags:
items:
type: string
type: array
summary:
type: string
description:
type: string
owners:
items:
$ref: '#/components/schemas/Email'
type: array
stewards:
items:
$ref: '#/components/schemas/Email'
type: array
creationTime:
type: string
lastModificationTime:
type: string
required:
- status
- tags
- summary
- description
- owners
- stewards
- creationTime
- lastModificationTime
type: object
additionalProperties:
$ref: '#/components/schemas/AdditionalCustomAttribute'
DoubleUuid:
type: string
example: 2e21697d-e630-4459-b56a-4f4bcb996e4a:c9b33d6a-3f51-4aa7-9ff3-e64aad2d56c2
description: 'Composed of 2 colon-separated stringified UUIDv4.
Represents a Workspace or an Entity in DataGalaxy''s context.'
VersionId:
type: string
example: c9b33d6a-3f51-4aa7-9ff3-e64aad2d56c2
description: 'This id determines the scope of the request.\
<code>versionId</code> relates to a <b>workspace''s version</b>.\
It can be found in the <code>GET /v2/workspaces</code> and <code>GET /v2/workspaces/{workspaceId}/versions</code> endpoint''s response.'
Email:
type: string
example: john.smith@email.com
description: DataGalaxy user email.
SearchBody:
properties:
query:
$ref: '#/components/schemas/SearchQuery'
versionId:
type: string
description: 'Version to search in. <br>
If `versionId` is not provided, the search scope will be extended to all the workspaces you have access to.
Set it whenever you know it to make the search faster.'
limit:
type: number
format: double
description: Maximum number of objects returned, between 1 and 5000
default: 50
includedAttributes:
items:
type: string
type: array
description: 'List of attributes identified by their <code>attributeKey</code> or <code>attributePath</code> to be
returned in the search result.<br>
<br>
Use the <code>attributePath</code> if an attribute is a custom attribute or is linked to a dataType. A custom
attribute''s path is its key name preceded by a single period. For example, a custom attribute with the
<code>attributeKey</code> value "allCustomProp42" has the <code>attributePath</code> value ".allCustomProp42".'
example:
- CreationTime
- LastModificationTime
- DataOwners
- DataStewards
- ClientTags
- .allCustomProp42
includeAccessData:
type: boolean
description: If set to <code>true</code>, returns access rights the current token has on each item
filters:
items:
$ref: '#/components/schemas/SearchFilter'
type: array
description: Use filters to refines your search result
saveSearchPayload:
type: boolean
description: 'If set to <code>true</code>, the search payload will be saved in the <b>queries history</b>.\
Request the <code>GET /v2/history/search/queries</code> to retrieve it.'
default: false
type: object
additionalProperties: false
FilteredViewSummary:
properties:
name:
type: string
id:
type: string
versionId:
$ref: '#/components/schemas/VersionId'
isPrivate:
type: boolean
required:
- name
- id
- versionId
- isPrivate
type: object
additionalProperties: false
IDate:
type: string
description: 'Format: YYYY-MM-DD'
HyperLink:
description: Hyperlink
properties:
name:
type: string
url:
type: string
required:
- name
- url
type: object
additionalProperties: false
example:
name: link to google
url: https://google.com
AdditionalCustomAttribute:
anyOf:
- type: string
- type: number
format: double
- type: boolean
- items:
type: string
type: array
- items:
$ref: '#/components/schemas/Email'
type: array
- $ref: '#/components/schemas/HyperLink'
- type: string
format: date-time
- {}
- items:
$ref: '#/components/schemas/TimeSeriesEntry'
type: array
description: Additional attribute. This property's type depends on the attribute's format.
EntitySearchResult:
properties:
id:
type: string
description: Entity id
name:
type: string
description: Entity functional name
example: foo
versionId:
type: string
description: <code>id</code> pointing to the Workspace's version where the object is located
path:
type: string
description: Path to entity. Composed of entity's parents technical names
example: \parentName\entityName
typePath:
type: string
description: Path to entity. Composed of entity's parents types
example: \parentType\entityType
functionalPath:
type: string
location:
type: string
objectUrl:
type: string
deprecated: true
childrenCount:
type: number
format: double
description: Total number of descendants the current entity has
accessData:
$ref: '#/components/schemas/AccessData'
description: Access your integrationToken has on this entity
attributes:
$ref: '#/components/schemas/EntityAttributes'
parent:
$ref: '#/components/schemas/EntityBase'
description: Short summary of the parent object. If <code>parentId</code> is null, it means it is located at the workspace's root and therefore does not have any parent.
isWatched:
type: boolean
description: Entity watch status
technicalName:
type: string
description: Entity technical name
example: bar
type:
type: string
description: Entity type
dataType:
type: string
description: Entity dataType
isExactMatch:
type: boolean
exactMatchAttributes:
items:
$ref: '#/components/schemas/ExactMatch'
type: array
required:
- id
- name
- versionId
- path
- typePath
- functionalPath
- location
- objectUrl
- type
- dataType
- isExactMatch
type: object
additionalProperties: false
SearchFilter:
description: Use filters to refines your search result
properties:
attributeKey:
type: string
description: AttributeKey you want your filter to be applied on. AttributeKeys can be found with the `GET /v2/attributes` endpoint
example: Type
operator:
$ref: '#/components/schemas/SearchFilterOperator'
description: Filter operator. Attribute - Operator compatibility is described in the route description
example: contains
values:
anyOf:
- items:
type: string
type: array
- items:
type: number
format: double
type: array
- items:
type: boolean
type: array
description: 'Values to be filtered. An object matches the filter if it matches any of the values.<br>
Date operators other than `range` take an empty array.<br>
Filters on attributes referencing users (User, Person) or tags (ManagedTags, ClientTags) expect their values to be arrays of ids (stringified Uuid)<br>
User ids can be found with `GET /v2/users`, and other attribute ids with `GET /v2/attributes/values`'
example:
- DataProcessing
- DataFlow
- DataProcessingItem
required:
- attributeKey
- operator
- values
type: object
additionalProperties: false
QuickFilter:
properties:
filter:
$ref: '#/components/schemas/SearchFilter'
description: Can be used in the request payload's `filters` property
matches:
type: number
format: double
description: Number of search matches this filter will return
required:
- filter
type: object
additionalProperties: false
EntityLifecycleStatusEnum:
enum:
- Proposed
- InRevision
- Validated
- InValidation
- Obsolete
type: string
securitySchemes:
Integration_token:
description: Authenticate with an Integration Access Token (IAT)
type: http
scheme: Bearer
bearerFormat: JWT
Personal_Access_Token:
description: Authenticate with a Personal Access Token (PAT)
type: http
scheme: Bearer
bearerFormat: JWT
x-refined-from:
- datagalaxy-developer-api.json
- datagalaxy-openapi.yml
x-tagGroups:
- name: API References
tags:
- Authentication
- Workspaces
- Links
- Technologies
- Search
- FilteredViews
- History
- Image
- Objects
- Campaigns
- Workflows
- Data Quality
- URN
- name: Attributes
tags:
- Attributes
- Screens
- name: Glossary
tags:
- Glossary
- name: Dictionary
tags:
- Sources
- Containers
- Structures
- Fields
- name: Processing
tags:
- DataProcessing
- DataProcessingItem
- name: Usage
tags:
- Usage
- name: Social
tags:
- Tasks
- Comments
- name: User Management
tags:
- Users
- Teams
- Licenses
- SCIM
- name: Access Control
tags:
- Feature Rules
- Object Rules
- Rule Attributes
- User Access
- Workspace Access
x-generator: NSwag v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))