Content Generation

Submit a content-generation sample job

Submits an asynchronous sample-generation job for a single prompt and content type, and returns the job id plus its initial status. Poll GET /org/content-generation/sample-jobs/{sample_job_id} to retrieve the result. Requires the GEO product.

post/org/content-generation/sample

Request

  • Base URL
    https://apiv2.senso.ai/api/v1
  • Auth
    API key in header X-API-Key

Request body

geo_question_idstring uuid required

The prompt (geo question) to generate a sample for.

content_type_idstring uuid required

The content type to generate.

publish_destinationstring

Optional destination key to target for the sample.

Response

The sample job was accepted.

messagestring required

Human-readable acceptance message.

sample_job_idstring uuid required

The id of the submitted sample job (poll it for status).

org_idstring uuid required

The organization the job belongs to.

status'queued' | 'running' | 'completed' | 'failed' | 'expired' required

The job's lifecycle status. A newly submitted job starts as queued.

Changes

No recorded changes to this operation across all 1 revision of this API.