Skip to main content
POST
/
v1
/
deepresearch
/
tasks
/
{id}
/
public
curl --request POST \
  --url https://api.valyu.ai/v1/deepresearch/tasks/{id}/public \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "public": true
}'
{
"success": true,
"message": "Public flag updated",
"deepresearch_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"public": true
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours at platform.valyu.ai.

Path Parameters

id
string
required

DeepResearch task ID.

Body

application/json

Request to toggle the public visibility of a DeepResearch task.

public
boolean
required

Set to true to make the task publicly accessible, or false to make it private.

Example:

true

Response

Public flag updated.

success
boolean
required

Whether the operation succeeded.

Example:

true

message
string
required

Human-readable status message.

Example:

"Public flag updated"

deepresearch_id
string
required

ID of the affected task.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

public
boolean
required

The updated public visibility status.

Example:

true