Skip to main content
PATCH
/
api
/
v1
/
byok
/
mode
Set model use mode
curl --request PATCH \
  --url https://neo.api.projectdiscovery.io/api/v1/byok/mode \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "mode": "neo"
}'
{
  "mode": "neo",
  "resource_id": "<string>",
  "resource_type": "user"
}

Documentation Index

Fetch the complete documentation index at: https://docs.neo.projectdiscovery.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT authentication token

Body

application/json
mode
enum<string>
required

Model use mode: 'neo' for platform-managed, 'byok' for bring your own key

Available options:
neo,
byok

Response

Mode updated successfully

mode
enum<string>
required

The new model use mode

Available options:
neo,
byok
resource_id
string
required

The user or team ID

resource_type
enum<string>
required

Whether the mode applies to a user or team

Available options:
user,
team