One offered type's source fields, with the standard source fields and, for a content type, the content properties.
const url = 'https://api.contentsurface.io/v1/admin/connections/cnx_01j9n4wzr0e008000000000001/offered-document-types/Account';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.contentsurface.io/v1/admin/connections/cnx_01j9n4wzr0e008000000000001/offered-document-types/Account \ --header 'Authorization: Bearer <token>'One offered type’s fields as the source lists them, the standard fields, and — for types with content — the content properties, each with the attribute it is mapped to; for an assigned type also the standard fields to assign, with suggestions. Field names are source configuration, shown to admins only. Repository admins.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The connection (cnx_…).
Example
cnx_01j9n4wzr0e008000000000001The offered type’s name.
Example
AccountResponses
Section titled “Responses”OK
An offered document type in full: its fields, and what else can be mapped.
object
The type.
object
The type’s name, such as Account or a table’s name.
Its display label.
True when the connector reports it the same way for every connection, such as File; it can be defined once for all.
True when its items can have children.
True when its items have content to open.
Its definition; null while it is undefined: its items are still found, with no attributes.
object
The definition (dty_…).
connection, or connectorType when it is shared by every connection of the connector type.
Its version.
native (the connector fills name, dates and the like itself) or assigned (the definition must say which fields supply them; the type is usable only once defined).
True when its items describe people, such as contacts or users: a reminder before defining or mounting it.
The fields the source lists for it.
A field the source lists for a document type, as the connector describes it.
object
The field’s name in the source.
Its display label.
The attribute data type it maps to; null when none fits and it cannot be mapped.
Its type in the source, for information.
True when it holds several values.
True when the source always fills it.
True when it holds another item’s identifier.
True when it can map only to an internal attribute, such as a link into the source: usable for relations, never returned.
A key for a new attribute filled from the field; another may be chosen.
True when the connector can list items by it: a hierarchy level may match on it.
True when it holds personal data, such as an email address, phone number or a person’s name: map it only knowingly.
True when it points to the item’s master in the source’s own master–detail relationship, or a standard detail object’s master: a proposal for an owned relation over it, which the Portal pre-ticks for the admin to confirm. Nothing is created from it.
The offered type the reference points to, where the source says so (a database foreign key, a Salesforce lookup): a proposal for a relation definition. Nothing is created from it.
The field of that type whose value the reference holds; null when it holds that type’s item identifier (a Salesforce lookup), so a relation matches it against sourceId.
The search roles proposed for mapping it, for the admin to confirm or change; null when none. Nothing is applied from it.
object
Proposed for keyword search.
Proposed for meaning-based search.
Proposed for the attribute preview.
Why: picklist (a choice list), place, date, amount, flag (yes or no), shortText or code (a business number, keyword only).
The standard fields every item has, which can be mapped to attributes too.
A standard field or content property that can be mapped to an attribute.
object
What a mapping names: $name-style for a standard field, such as $createdBy; the property’s name for a content property, such as pageCount.
Its data type.
For types with content: what is read from the document itself, such as its title or page count.
A standard field or content property that can be mapped to an attribute.
object
What a mapping names: $name-style for a standard field, such as $createdBy; the property’s name for a content property, such as pageCount.
Its data type.
For an assigned type: the standard fields to assign, with the connector’s suggestions; empty otherwise.
One standard field an assigned type’s definition may assign, with the connector’s suggestion.
object
The standard field: sourceId, name, createdAt, createdBy, modifiedAt, modifiedBy, content, changeMarker, excluded or parentId.
True when the type cannot be defined without it.
True when it takes several fields, such as a key of several columns.
The source fields the connector accepts for it.
The connector’s suggestion, to confirm or change; empty when it has none.
Why it suggests that: primaryKey, uniqueIndex, nameField, namedLike or selfReference; null without a suggestion.
For parentId: which type each candidate field points into; null for other slots.
The definition’s current assignments; null for a native or undefined type.
object
The fields that identify a row, such as the primary key; required.
The field holding when the row was created.
The field holding who created it.
The field holding when it was last changed.
The field holding who last changed it.
The field holding a document’s bytes, making the rows openable.
An ever-increasing field, such as a row version or modification time, from which changes are read between scans.
Fields never read, such as large or sensitive columns.
Arranges the type’s rows into a tree; null for a flat type.
object
The field holding a row’s parent’s identifier.
The type the parent is a row of: the type itself or another assigned type of the connection.
A value meaning “at the top level” besides null, such as "0".
Example
{ "type": { "name": "Contact", "label": "Contact", "isStatic": true, "isFolder": false, "isContent": false, "definition": null, "standardFields": "native", "holdsPersonalData": true }, "fields": [ { "name": "AccountId", "label": "Account ID", "dataType": "text", "sourceType": "reference", "isMultiValued": false, "isMandatory": false, "isReference": true, "isInternal": true, "suggestedKey": "salesforce.accountId", "mappedTo": null, "isFilterable": true, "isPersonal": false, "isMasterDetail": true, "referenceTo": "Account", "referenceField": "Id", "proposal": null }, { "name": "Title", "label": "Title", "dataType": "text", "sourceType": "string", "isMultiValued": false, "isMandatory": false, "isReference": false, "isInternal": false, "suggestedKey": "salesforce.title", "mappedTo": null, "isFilterable": false, "isPersonal": false, "isMasterDetail": false, "referenceTo": null, "referenceField": null, "proposal": null }, { "name": "LeadSource", "label": "Lead source", "dataType": "text", "sourceType": "picklist", "isMultiValued": false, "isMandatory": false, "isReference": false, "isInternal": false, "suggestedKey": "salesforce.leadSource", "mappedTo": null, "isFilterable": false, "isPersonal": false, "isMasterDetail": false, "referenceTo": null, "referenceField": null, "proposal": { "isKeyword": true, "isEmbedded": true, "isPreview": true, "reason": "picklist" } }, { "name": "Email", "label": "Email", "dataType": "text", "sourceType": "email", "isMultiValued": false, "isMandatory": false, "isReference": false, "isInternal": false, "suggestedKey": "salesforce.email", "mappedTo": null, "isFilterable": false, "isPersonal": true, "isMasterDetail": false, "referenceTo": null, "referenceField": null, "proposal": null } ], "standardFields": [ { "name": "$name", "dataType": "text", "mappedTo": null }, { "name": "$createdBy", "dataType": "text", "mappedTo": null } ], "contentProperties": [], "slots": null, "assigned": null}The request is not valid: a malformed ID, body, filter or parameter.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:validation-failed", "title": "The request is not valid.", "status": 400, "detail": "'id' must be an ID of the form cnx_… .", "code": "validation-failed", "field": "id"}No valid access token, or it no longer holds for the user (suspended, signed out, relation removed).
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:unauthorized", "title": "Not authenticated.", "status": 401, "detail": "A valid access token is required.", "code": "unauthorized"}Authenticated but not allowed: a missing scope or role, an impersonated token on an admin endpoint, or an inactive tenant.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:role-required", "title": "Not allowed.", "status": 403, "detail": "This endpoint requires one of the roles: repositoryAdmin.", "code": "role-required"}Absent: not existing, in another tenant, or not readable by the caller — never distinguished.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:not-found", "title": "Not found.", "status": 404, "detail": "The offered document type does not exist.", "code": "not-found"}Load protection: the tenant is making too many calls, or running too many searches or content streams, at once. Transient and never a quota; retry after Retry-After seconds.
RFC 9457 problem details. code is the stable reason; confirmation problems add impact and impactToken.
object
urn:contentsurface:problem:{code}.
A short summary for people; may change.
The HTTP status code.
What happened in this case, for people; may change.
The stable, machine-readable reason, such as version-mismatch; branch on this.
For validation-failed: the request field that is not valid.
For confirmation-required: repeat the call with ?confirm={impactToken} to go ahead.
For confirmation-required: what the change would affect, such as the users or folders losing access.
Example
{ "type": "urn:contentsurface:problem:too-many-requests", "title": "Too many requests.", "status": 429, "detail": "The tenant is making more API calls than one replica serves at once; retry shortly.", "code": "too-many-requests", "retryAfter": 1}