POST
/
cowrite
/
organization
/
{organizationId}
/
team
/
{teamId}
/
generate
curl --request POST \
  --url https://enterprise-api.writer.com/cowrite/organization/{organizationId}/team/{teamId}/generate \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "templateId": "<string>",
  "inputs": [
    {
      "name": "<string>",
      "value": [
        "<string>"
      ]
    }
  ]
}'
{
  "id": 123,
  "organizationId": 123,
  "teamId": 123,
  "documentId": "<string>",
  "templateId": "<string>",
  "body": "<string>",
  "title": "<string>",
  "inputs": "<any>",
  "deleted": true,
  "createdUserId": 123,
  "creationTime": "2023-11-07T05:31:56Z"
}

We’re deprecating these API endpoints, so the AI Studio API key setup won’t work. [Contact support] (https://support.writer.com/) if you need them.

Headers

Authorization
string
required

Path Parameters

organizationId
integer
required
teamId
integer
required

Body

application/json

Response

200
application/json

The response is of type object.