Skip to main content

content_sources

7 operation(s). All run through POST /syteops/v1/manage/dispatch (reads may use the documented GET form).

approve_mapping

Approve a field mapping for a source, activating it for live ingest.

Capability: manage_options

Parameters

ParameterTypeRequiredDescription
idstringyes
mappingobjectyes

Returns

data: {id, status, mapping_status, mapping}

Request

{
"resource": "content_sources",
"action": "approve_mapping",
"params": {
"id": "string",
"mapping": {}
}
}

create

Create a content source; generates its id and slug, and (unless a secret is provided or auth_mode is none) a webhook secret.

Capability: manage_options

Parameters

ParameterTypeRequiredDescription
namestringyes
auth_modestringno
secretstringno
default_author_idintegerno
pin_authorbooleanno
target_post_typestringno
new_cptobjectno
meta_fieldsobjectno
fm_variablesobjectno
forward_enabledbooleanno
forward_urlurlno
forward_auth_modestringno
forward_secretstringno
sig_header_modestringno
sig_header_namestringno
ai_taxonomy_enabledbooleanno
author_match_modestringno
target_tag_slugstringno
taxonomy_apply_modestringno
strip_uncategorizedbooleanno
content_cleanupbooleanno

Returns

data: {id, name, slug, secret, secret_source, ...} — secret is plaintext and NON-EMPTY only when secret_source is "generated" (empty for "provided"/"none"), returned only this once (forward_secret is never returned)

Request

{
"resource": "content_sources",
"action": "create",
"params": {
"name": "string",
"auth_mode": "string",
"secret": "string",
"default_author_id": 0,
"pin_author": true,
"target_post_type": "string",
"new_cpt": {},
"meta_fields": {},
"fm_variables": {},
"forward_enabled": true,
"forward_url": "https://example.com",
"forward_auth_mode": "string",
"forward_secret": "string",
"sig_header_mode": "string",
"sig_header_name": "string",
"ai_taxonomy_enabled": true,
"author_match_mode": "string",
"target_tag_slug": "string",
"taxonomy_apply_mode": "string",
"strip_uncategorized": true,
"content_cleanup": true
}
}

delete

Permanently delete a content source.

🔴 Destructive — requires confirm: true.
Capability: manage_options

Parameters

ParameterTypeRequiredDescription
idstringyes
confirmbooleanno

Returns

data: {id, deleted: true}

Request

{
"resource": "content_sources",
"action": "delete",
"params": {
"id": "string",
"confirm": true
},
"confirm": true
}

get

Get a single content source by id (never includes the secret).

Capability: manage_options

Parameters

ParameterTypeRequiredDescription
idstringyes

Returns

data: {id, name, slug, enabled, status, auth_mode, mapping, mapping_status, ...}

Request

{
"resource": "content_sources",
"action": "get",
"params": {
"id": "string"
}
}

list

List all configured content sources (never includes the secret).

Capability: manage_options

Parameters

No parameters.

Returns

data.sources[]: array of {id, name, slug, enabled, status, auth_mode, target_post_type, cpt_post_type, shape_fingerprint, mapping, mapping_status, sample, default_author_id, pin_author, default_reviewers, default_ccs, default_post_status, meta_fields, fm_variables, forward_enabled, forward_url, forward_auth_mode, created_at, updated_at} (secret and forward_secret are never included)

Request

{
"resource": "content_sources",
"action": "list",
"params": {}
}

rotate_secret

Generate a new webhook secret for a content source, invalidating the old one.

Capability: manage_options

Parameters

ParameterTypeRequiredDescription
idstringyes

Returns

data: {id, secret} — secret is plaintext, returned only this once

Request

{
"resource": "content_sources",
"action": "rotate_secret",
"params": {
"id": "string"
}
}

update

Update editable fields on an existing content source (slug is not editable; secret is write-only).

Capability: manage_options

Parameters

ParameterTypeRequiredDescription
idstringyes
namestringno
default_author_idintegerno
pin_authorbooleanno
default_reviewersobjectno
default_ccsobjectno
default_post_statusstringno
auth_modestringno
secretstringno
enabledbooleanno
reingest_modestringno
target_post_typestringno
meta_fieldsobjectno
fm_variablesobjectno
forward_enabledbooleanno
forward_urlurlno
forward_auth_modestringno
forward_secretstringno
sig_header_modestringno
sig_header_namestringno
ai_taxonomy_enabledbooleanno
author_match_modestringno
target_tag_slugstringno
taxonomy_apply_modestringno
strip_uncategorizedbooleanno
content_cleanupbooleanno

Returns

data: {id, name, slug, ...} (no secret, no forward_secret)

Request

{
"resource": "content_sources",
"action": "update",
"params": {
"id": "string",
"name": "string",
"default_author_id": 0,
"pin_author": true,
"default_reviewers": {},
"default_ccs": {},
"default_post_status": "string",
"auth_mode": "string",
"secret": "string",
"enabled": true,
"reingest_mode": "string",
"target_post_type": "string",
"meta_fields": {},
"fm_variables": {},
"forward_enabled": true,
"forward_url": "https://example.com",
"forward_auth_mode": "string",
"forward_secret": "string",
"sig_header_mode": "string",
"sig_header_name": "string",
"ai_taxonomy_enabled": true,
"author_match_mode": "string",
"target_tag_slug": "string",
"taxonomy_apply_mode": "string",
"strip_uncategorized": true,
"content_cleanup": true
}
}