Riferimento API

ai

53 endpoint in quest'area. Ognuno ha la sua pagina con i suoi parametri, la sua risposta e una richiesta che puoi eseguire.

MetodoPercorsoFunzionalitàAutorizzazione
GET/v1/ai/credentialsThe organization's own AI provider keys.sites.view
POST/v1/ai/credentialsStore an AI provider key for this organization.billing.manage
DELETE/v1/ai/credentials/{credentialId}Stop using an AI provider key.billing.manage
POST/v1/ai/credentials/{credentialId}/testTest a stored AI provider key now.billing.payment.manage
GET/v1/ai/creditsZinn® credit balance, whether to offer more, and the packs for sale.sites.view
PUT/v1/ai/credits/settingsTurn automatic top-up on or off.billing.payment.manage
GET/v1/ai/images/credentialsThe organization's own image-provider keys.sites.view
POST/v1/ai/images/credentialsStore an image-provider key for this organization.billing.manage
DELETE/v1/ai/images/credentials/{credentialId}Stop using an image-provider key.billing.manage
POST/v1/ai/images/credentials/{credentialId}/testCheck an image key now, by generating a real image with it.billing.manage
GET/v1/ai/images/libraryThe images this organisation generated for its own use.sites.view
POST/v1/ai/images/libraryGenerate images from a prompt, with no post involved.links.edit
DELETE/v1/ai/images/library/{imageId}Throw one of your own generated images away.links.edit
GET/v1/ai/images/library/{imageId}/fileDownload the image bytes.sites.view
GET/v1/ai/images/modelsThe image models a recipe may be pointed at.sites.view
GET/v1/ai/images/posts/{postId}The images generated for one content post.sites.view
POST/v1/ai/images/posts/{postId}Generate a featured image and in-post images for a content post.links.edit
GET/v1/ai/images/posts/{postId}/preview/{imageId}The staged bytes of one generated image.sites.view
GET/v1/ai/images/providersWhich image providers this organisation can actually generate with.sites.view
GET/v1/ai/modelsThe live model catalogue.links.view
GET/v1/ai/proposalsWhat the AI agent wants done to this organization's resources.sites.view
POST/v1/ai/proposals/{proposalId}/decisionApprove or reject one proposal.
POST/v1/ai/proposals/{proposalId}/revertPut an applied change back.
GET/v1/ai/providersWhich AI vendors are available, and whether this organization can use each.links.view
GET/v1/ai/recipesThis organization's AI posting recipes.links.view
POST/v1/ai/recipesCreate an AI posting recipe.links.edit
DELETE/v1/ai/recipes/{recipeId}Delete an AI posting recipe.links.edit
GET/v1/ai/recipes/{recipeId}One AI posting recipe.links.view
PATCH/v1/ai/recipes/{recipeId}Edit an AI posting recipe.links.edit
POST/v1/ai/recipes/{recipeId}/runQueue an AI posting recipe to run now.links.edit
GET/v1/ai/recipes/{recipeId}/runsWhat an AI posting recipe has produced.links.view
GET/v1/ai/reportsThe AI reports this organization has bought.sites.view
GET/v1/ai/site-agent/allowanceHow many self-serve site checks are left this month.sites.view
GET/v1/ai/site-agent/preferencesWhat this customer lets the AI do to their sites without asking.sites.view
PUT/v1/ai/site-agent/preferencesChoose what the AI may do for one kind of fix.sites.view
POST/v1/ai/site-agent/sites/{site_id}/checkRead this site's server, diagnose it, and fix what the customer allows.sites.view
GET/v1/ai/site-buildsThe organization's AI-built sites, its trial state and its builder spend.sites.view
POST/v1/ai/site-buildsDescribe a site and the AI builds it.sites.create
GET/v1/ai/site-builds/targetsWhere a draft can be published, and what is already on each destination.hosting.deploy.manage
GET/v1/ai/site-builds/{siteBuildId}One AI-built site, with every generated file.sites.view
PUT/v1/ai/site-builds/{siteBuildId}/filesReplace one generated file's contents.sites.create
GET/v1/ai/site-builds/{siteBuildId}/imagesWhat generating this draft's images would cost. Spends nothing.sites.create
POST/v1/ai/site-builds/{siteBuildId}/imagesDraw the draft's images. Charges the content-images meter.sites.create
POST/v1/ai/site-builds/{siteBuildId}/plugin-planWhich plugins this generated site needs, and a custom one if it needs that.sites.create
POST/v1/ai/site-builds/{siteBuildId}/previewWhat publishing this draft would do to that site. Changes nothing.hosting.deploy.manage
GET/v1/ai/site-builds/{siteBuildId}/publicationsEvery attempt to publish this draft, newest first.sites.view
POST/v1/ai/site-builds/{siteBuildId}/publicationsPublish a draft to a destination, taking a backup first when it destroys.hosting.deploy.manage
POST/v1/ai/site-builds/{siteBuildId}/publishPut an AI-built site live on one of the organization's sites.hosting.deploy.manage
POST/v1/ai/site-builds/{siteBuildId}/rebuildBuild the site again from its brief, optionally tweaked.sites.create
DELETE/v1/ai/site-publications/{publicationId}Stop a publication that has not finished.hosting.deploy.manage
GET/v1/ai/site-publications/{publicationId}How far a publication has got.sites.view
GET/v1/ai/subscriptionsWhich sites hold a recurring AI product, and when it next runs.sites.view
GET/v1/ai/summaryThe organization's AI position — balance, funding route, usage.sites.view