Skip to main content
DELETE
/
sessionmanager
Delete a session
curl --request DELETE \
  --url https://app.npcbuilder.com/api/sessionmanager \
  --header 'Authorization: Bearer <token>'
{
  "message": "Session for key: campaign_nightfall with id: ABC123 has been deleted",
  "session_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

session_key
string
required

The session key identifying the session.

Maximum length: 50
game_id
string
required

The unique identifier for the game.

Maximum length: 50
player_id
string<uuidv4>
required

The unique identifier for the player.

Response

Session deleted successfully.

message
string

Confirmation message after deletion.

Example:

"Session for key: campaign_nightfall with id: ABC123 has been deleted"

session_id
string
I