Skip to main content

Dnd5e

GET /dnd5e/get-actor-details

Get detailed information for a specific D&D 5e actor

Retrieves comprehensive details about an actor including stats, inventory, spells, features, and other character information based on the requested details array.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
detailsarraybody, queryArray of detail types to retrieve (e.g., ["resources", "items", "spells", "features"])
clientIdstringqueryClient ID for the Foundry world
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Actor details object containing requested information

Try It Out


POST /dnd5e/modify-item-charges

Modify the charges for a specific item owned by an actor

Increases or decreases the charges/uses of an item in an actor's inventory. Useful for consumable items like potions, scrolls, or charged magic items.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
amountnumberbody, queryThe amount to modify charges by (positive or negative)
clientIdstringqueryClient ID for the Foundry world
itemUuidstringbody, queryThe UUID of the specific item (optional if itemName provided)
itemNamestringbody, queryThe name of the item if UUID not provided (optional if itemUuid provided)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the charge modification operation

Try It Out


POST /dnd5e/short-rest

Perform a short rest for an actor

Triggers the D&D 5e short rest workflow including hit dice recovery, class feature resets, and HP recovery.

Parameters

NameTypeRequiredSourceDescription
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
selectedbooleanquery, bodyWhether to get the selected entity
autoHDbooleanbody, queryAutomatically spend hit dice during short rest
autoHDThresholdnumberbody, queryHP threshold below which to auto-spend hit dice (0-1 as fraction of max HP)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the short rest operation

Try It Out


POST /dnd5e/long-rest

Perform a long rest for an actor

Triggers the D&D 5e long rest workflow including full HP recovery, spell slot restoration, hit dice recovery, and feature resets.

Parameters

NameTypeRequiredSourceDescription
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
selectedbooleanquery, bodyWhether to get the selected entity
newDaybooleanbody, queryWhether the long rest marks a new day (default: true)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the long rest operation

Try It Out


POST /dnd5e/skill-check

Roll a skill check for an actor

Rolls a D&D 5e skill check with all applicable modifiers including proficiency, expertise, Jack of All Trades, and conditional bonuses.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
skillstringbody, querySkill abbreviation (e.g., "acr", "ath", "ste", "prc")
clientIdstringqueryClient ID for the Foundry world
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)
advantagebooleanbody, queryRoll with advantage
disadvantagebooleanbody, queryRoll with disadvantage
bonusstringbody, queryExtra bonus formula to add (e.g., "1d4", "+2")
createChatMessagebooleanbody, queryWhether to post the roll to chat (default: true)

Returns

object - Result of the skill check roll

Try It Out


POST /dnd5e/ability-save

Roll an ability saving throw for an actor

Rolls a D&D 5e ability saving throw with all applicable modifiers.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
abilitystringbody, queryAbility abbreviation (e.g., "str", "dex", "con", "int", "wis", "cha")
clientIdstringqueryClient ID for the Foundry world
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)
advantagebooleanbody, queryRoll with advantage
disadvantagebooleanbody, queryRoll with disadvantage
bonusstringbody, queryExtra bonus formula to add (e.g., "1d4", "+2")
createChatMessagebooleanbody, queryWhether to post the roll to chat (default: true)

Returns

object - Result of the saving throw roll

Try It Out


POST /dnd5e/ability-check

Roll an ability check for an actor

Rolls a D&D 5e ability check (raw ability test, not a skill check) with all applicable modifiers.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
abilitystringbody, queryAbility abbreviation (e.g., "str", "dex", "con", "int", "wis", "cha")
clientIdstringqueryClient ID for the Foundry world
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)
advantagebooleanbody, queryRoll with advantage
disadvantagebooleanbody, queryRoll with disadvantage
bonusstringbody, queryExtra bonus formula to add (e.g., "1d4", "+2")
createChatMessagebooleanbody, queryWhether to post the roll to chat (default: true)

Returns

object - Result of the ability check roll

Try It Out


POST /dnd5e/death-save

Roll a death saving throw for an actor

Rolls a D&D 5e death saving throw, handling DC 10 CON save, three successes/failures tracking, nat 20 healing, and nat 1 double failure.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
clientIdstringqueryClient ID for the Foundry world
advantagebooleanbody, queryRoll with advantage
createChatMessagebooleanbody, queryWhether to post the roll to chat (default: true)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the death saving throw

Try It Out


POST /dnd5e/modify-experience

Modify the experience points for a specific actor

Adds or removes experience points from an actor.

Parameters

NameTypeRequiredSourceDescription
amountnumberbody, queryThe amount of experience to add (can be negative)
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
selectedbooleanquery, bodyWhether to get the selected entity
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the experience modification operation

Try It Out


GET /dnd5e/concentration

Check if an actor is concentrating on a spell

Returns whether the actor currently has a concentration effect active, and if so, what spell they are concentrating on.

Parameters

NameTypeRequiredSourceDescription
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
actorNamestringbody, queryName of the actor (optional if actorUuid provided)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Concentration status with effect details and spell name

Try It Out


POST /dnd5e/break-concentration

Break an actor's concentration

Removes the concentration effect from the actor, ending any spell that requires concentration.

Parameters

NameTypeRequiredSourceDescription
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
actorNamestringbody, queryName of the actor (optional if actorUuid provided)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Confirmation that concentration was broken

Try It Out


POST /dnd5e/concentration-save

Roll a concentration saving throw

Rolls a Constitution saving throw to maintain concentration after taking damage. The DC is calculated as max(10, floor(damage/2)). Returns the roll result and whether concentration was maintained or broken.

Parameters

NameTypeRequiredSourceDescription
damagenumberbody, queryAmount of damage taken (used to calculate DC = max(10, floor(damage/2)))
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
actorNamestringbody, queryName of the actor (optional if actorUuid provided)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)
advantagebooleanbody, queryRoll with advantage
disadvantagebooleanbody, queryRoll with disadvantage
bonusstringbody, queryExtra bonus formula to add (e.g., "1d4", "+2")
createChatMessagebooleanbody, queryWhether to post the roll to chat (default: true)

Returns

object - Roll result and concentration maintained status

Try It Out


POST /dnd5e/equip-item

Equip or unequip an item

Changes the equipped status of an item in an actor's inventory.

Parameters

NameTypeRequiredSourceDescription
equippedbooleanbody, queryWhether the item should be equipped (true) or unequipped (false)
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
actorNamestringbody, queryName of the actor (optional if actorUuid provided)
itemUuidstringbody, queryUUID of the item (optional if itemName provided)
itemNamestringbody, queryName of the item (optional if itemUuid provided)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Updated equipment status

Try It Out


POST /dnd5e/attune-item

Attune or unattune an item

Changes the attunement status of a magic item in an actor's inventory.

Parameters

NameTypeRequiredSourceDescription
attunedbooleanbody, queryWhether the item should be attuned (true) or unattuned (false)
clientIdstringqueryClient ID for the Foundry world
actorUuidstringbody, queryUUID of the actor (optional if selected is true)
actorNamestringbody, queryName of the actor (optional if actorUuid provided)
itemUuidstringbody, queryUUID of the item (optional if itemName provided)
itemNamestringbody, queryName of the item (optional if itemUuid provided)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Updated attunement status

Try It Out


POST /dnd5e/transfer-currency

Transfer currency between actors

Moves currency from one actor to another. Validates that the source actor has sufficient funds before transferring.

Parameters

NameTypeRequiredSourceDescription
currencyobjectbody, queryCurrency amounts to transfer, e.g. pp, gp, ep, sp, cp denomination keys with numeric values
clientIdstringqueryClient ID for the Foundry world
sourceActorUuidstringbody, queryUUID of the source actor (optional if sourceActorName provided)
sourceActorNamestringbody, queryName of the source actor
targetActorUuidstringbody, queryUUID of the target actor (optional if targetActorName provided)
targetActorNamestringbody, queryName of the target actor
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Transfer result with updated balances

Try It Out


POST /dnd5e/modify-currency

Modify currency balance for a single actor (delta-based, not a transfer between actors)

Adds or removes currency from an actor's wallet. Use a negative amount to remove currency.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
currencystringbody, queryCurrency denomination to modify (pp, gp, ep, sp, cp)
amountnumberbody, queryAmount to add (positive) or remove (negative)
clientIdstringqueryClient ID for the Foundry world
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the currency modification

Try It Out


POST /dnd5e/prepare-spell

Prepare or unprepare a spell for an actor

Toggles a spell's prepared state. Only applicable to spellcaster classes that prepare spells.

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
spellNamestringbody, queryName of the spell to prepare or unprepare
preparedbooleanbody, queryTrue to prepare the spell, false to unprepare it
clientIdstringqueryClient ID for the Foundry world
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the prepare spell operation

Try It Out


POST /dnd5e/use-ability

Use an ability

Activates a specific ability for an actor, optionally targeting another entity

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
clientIdstringqueryClient ID for the Foundry world
abilityUuidstringbody, queryThe UUID of the specific ability (optional if abilityName provided)
abilityNamestringbody, queryThe name of the ability if UUID not provided (optional if abilityUuid provided)
targetUuidstringbody, queryThe UUID of the target for the ability (optional)
targetNamestringbody, queryThe name of the target if UUID not provided (optional)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the use ability operation

Try It Out


POST /dnd5e/use-feature

Use a feature

Activates a specific feature for an actor, optionally targeting another entity

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
clientIdstringqueryClient ID for the Foundry world
abilityUuidstringbody, queryThe UUID of the specific ability (optional if abilityName provided)
abilityNamestringbody, queryThe name of the ability if UUID not provided (optional if abilityUuid provided)
targetUuidstringbody, queryThe UUID of the target for the ability (optional)
targetNamestringbody, queryThe name of the target if UUID not provided (optional)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the use feature operation

Try It Out


POST /dnd5e/use-spell

Use a spell

Casts a specific spell for an actor, optionally targeting another entity

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
clientIdstringqueryClient ID for the Foundry world
abilityUuidstringbody, queryThe UUID of the specific ability (optional if abilityName provided)
abilityNamestringbody, queryThe name of the ability if UUID not provided (optional if abilityUuid provided)
targetUuidstringbody, queryThe UUID of the target for the ability (optional)
targetNamestringbody, queryThe name of the target if UUID not provided (optional)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the use spell operation

Try It Out


POST /dnd5e/use-item

Use an item

Uses a specific item for an actor, optionally targeting another entity

Parameters

NameTypeRequiredSourceDescription
actorUuidstringbody, queryUUID of the actor
clientIdstringqueryClient ID for the Foundry world
abilityUuidstringbody, queryThe UUID of the specific ability (optional if abilityName provided)
abilityNamestringbody, queryThe name of the ability if UUID not provided (optional if abilityUuid provided)
targetUuidstringbody, queryThe UUID of the target for the ability (optional)
targetNamestringbody, queryThe name of the target if UUID not provided (optional)
userIdstringquery, bodyFoundry user ID or username to scope permissions (omit for GM-level access)

Returns

object - Result of the use item operation

Try It Out