EN IT

Content Actions

Endpoints for executing custom actions and navigations on content items.

Base URL: https://api.contit.cloud

GET /actions/{contentTypeKey}/{contentId}/{actionId}/execute

Execute action

Execute a custom action defined on a content type for a specific content item.

Requires ReadAccess policy

Path Parameters

NameTypeRequiredDescription
contentTypeKey string The content type key
contentId string The content item ID (GUID)
actionId string The action identifier

Responses

200 Success — action executed
result object Action-specific result data
401 Unauthorized
404 Not Found — content or action does not exist

Code examples

curl -X GET "https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/execute" \
  -H "X-Api-Key: YOUR_API_KEY"
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "YOUR_API_KEY");

var response = await http.GetAsync("https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/execute");

response.EnsureSuccessStatusCode();
var json = await response.Content.ReadAsStringAsync();
const response = await fetch(
  "https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/execute",
  {
    method: "GET",
    headers: {
      "X-Api-Key": "YOUR_API_KEY",
    }
  }
);

const data = await response.json();
import requests

headers = {"X-Api-Key": "YOUR_API_KEY"}

response = requests.get(
    "https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/execute",
    headers=headers
)

data = response.json()
Example Request
GET /actions/Article/a1b2c3d4-e5f6-7890-abcd-ef1234567890/send-notification/execute
Example Response 200
{
  "result": {
    "status": "completed",
    "message": "Notification sent successfully"
  }
}
Try it Live
GET /actions/{contentTypeKey}/{contentId}/{actionId}/navigate

Get navigation URL

Get a navigation URL for a custom action, typically used to redirect users to an external page or detail view.

Requires ReadAccess policy

Path Parameters

NameTypeRequiredDescription
contentTypeKey string The content type key
contentId string The content item ID (GUID)
actionId string The action identifier

Responses

200 Success — returns a navigation URL
url string The navigation URL to redirect to
401 Unauthorized
404 Not Found

Code examples

curl -X GET "https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/navigate" \
  -H "X-Api-Key: YOUR_API_KEY"
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Api-Key", "YOUR_API_KEY");

var response = await http.GetAsync("https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/navigate");

response.EnsureSuccessStatusCode();
var json = await response.Content.ReadAsStringAsync();
const response = await fetch(
  "https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/navigate",
  {
    method: "GET",
    headers: {
      "X-Api-Key": "YOUR_API_KEY",
    }
  }
);

const data = await response.json();
import requests

headers = {"X-Api-Key": "YOUR_API_KEY"}

response = requests.get(
    "https://api.contit.cloud/actions/{contentTypeKey}/{contentId}/{actionId}/navigate",
    headers=headers
)

data = response.json()
Example Request
GET /actions/Product/b2c3d4e5-f6a7-8901-bcde-f12345678901/view-external/navigate
Example Response 200
{
  "url": "https://shop.example.com/products/b2c3d4e5-f6a7-8901-bcde-f12345678901"
}
Try it Live