Ask
Type to search
Endpoints

Extension

Vrite Extensions have access to dedicated API endpoints, meant primarly for building backends for your custom extensions.

To use any of the following endpoints, make sure to provide a x-vrite-extension-id header or extensionId when creating an API client.

Vrite provides the extension ID to you via the x-vrite-extension-id header in a webhook callback, and you can always access it in the extension’s frontend for use with custom requests.

Retrieve Extension Details

Retrieves details of the extension — including its current configuration and custom access token.

GET
/extension
Response object
idstring

ID of the extension installation

namestring

Name of the extension

urlstring

URL of the extension

configobject

Configuration of the extension

tokenstring

API Token of the extension

Request
Response
{
  "id": "1bcb56b03f4d6f8371bf7712",
  "name": "string",
  "url": "string",
  "config": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "token": "string"
}

Utility endpoint for setting custom, extension-related JSON metadata of the content piece specified by ID. The data set will be available at [EXTENSION_NAME] on customData.__extensions__ property.

PUT
/extension/content-piece-data
Body Parameters
contentPieceIdstring
Required

ID of the content piece

extensionIdstring

ID of the extension

data

Custom data to set

Response 200
Request