latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

Customer Management

Block User

[BETA] Reject calls with this end-user id

Parameters:

  • user_ids (List[str], required): The unique user_ids for the users to block

    (any /chat/completion call with this user={end-user-id} param, will be rejected.)

    curl -X POST "http://0.0.0.0:8000/user/block"
    -H "Authorization: Bearer sk-1234"
    -d '{
    "user_ids": [<user_id>, ...]
    }'
    
post/customer/block

Request body

user_idsstring[] required

Response

Successful Response

{"stackTrail":"paths:/customer/block:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}