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
clientIdstring✓body, queryClient ID for the Foundry world
actorUuidstring✓body, queryUUID of the actor
detailsarray✓body, queryArray of detail types to retrieve (e.g., ["resources", "items", "spells", "features"])

Returns​

object - Actor details object containing requested information

Example Request​

GET /dnd5e/get-actor-details


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
clientIdstring✓body, queryClient ID for the Foundry world
actorUuidstring✓body, queryUUID of the actor who owns the item
amountnumber✓body, queryThe amount to modify charges by (positive or negative)
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)

Returns​

object - Result of the charge modification operation

Example Request​

POST /dnd5e/modify-item-charges
Content-Type: application/json

{
"clientId": "example-value",
"actorUuid": "example-value",
"amount": 123,
"itemUuid": "example-value",
"itemName": "example-value"
}

POST /dnd5e/use-ability​

Use a general ability for an actor. Triggers the use of any ability, feature, spell, or item for an actor. This is a generic endpoint that can handle various types of abilities.

Parameters​

NameTypeRequiredSourceDescription
clientIdstring✓body, queryClient ID for the Foundry world
actorUuidstring✓body, queryUUID of the actor using the ability
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)

Returns​

object - Result of the ability use operation

Example Request​

POST /dnd5e/use-ability
Content-Type: application/json

{
"clientId": "example-value",
"actorUuid": "example-value",
"abilityUuid": "example-value",
"abilityName": "example-value"
}

POST /dnd5e/use-feature​

Use a class or racial feature for an actor. Activates class features (like Action Surge, Rage) or racial features (like Dragonborn Breath Weapon) for a character.

Parameters​

NameTypeRequiredSourceDescription
clientIdstring✓body, queryClient ID for the Foundry world
actorUuidstring✓body, queryUUID of the actor using the feature
abilityUuidstringbody, queryThe UUID of the specific feature (optional if abilityName provided)
abilityNamestringbody, queryThe name of the feature if UUID not provided (optional if abilityUuid provided)
targetUuidstringbody, queryThe UUID of the target for the feature (optional)
targetNamestringbody, queryThe name of the target if UUID not provided (optional)

Returns​

object - Result of the feature use operation

Example Request​

POST /dnd5e/use-feature
Content-Type: application/json

{
"clientId": "example-value",
"actorUuid": "example-value",
"abilityUuid": "example-value",
"abilityName": "example-value"
}

POST /dnd5e/use-spell​

Cast a spell for an actor. Casts a spell from the actor's spell list, consuming spell slots as appropriate. Handles cantrips, leveled spells, and spell-like abilities.

Parameters​

NameTypeRequiredSourceDescription
clientIdstring✓body, queryClient ID for the Foundry world
actorUuidstring✓body, queryUUID of the actor casting the spell
abilityUuidstringbody, queryThe UUID of the specific spell (optional if abilityName provided)
abilityNamestringbody, queryThe name of the spell if UUID not provided (optional if abilityUuid provided)
targetUuidstringbody, queryThe UUID of the target for the spell (optional)
targetNamestringbody, queryThe name of the target if UUID not provided (optional)

Returns​

object - Result of the spell casting operation

Example Request​

POST /dnd5e/use-spell
Content-Type: application/json

{
"clientId": "example-value",
"actorUuid": "example-value",
"abilityUuid": "example-value",
"abilityName": "example-value"
}

POST /dnd5e/use-item​

Use an item for an actor. Activates an item from the actor's inventory, such as drinking a potion, using a magic item, or activating equipment with special properties.

Parameters​

NameTypeRequiredSourceDescription
clientIdstring✓body, queryClient ID for the Foundry world
actorUuidstring✓body, queryUUID of the actor using the item
abilityUuidstringbody, queryThe UUID of the specific item (optional if abilityName provided)
abilityNamestringbody, queryThe name of the item if UUID not provided (optional if abilityUuid provided)
targetUuidstringbody, queryThe UUID of the target for the item (optional)
targetNamestringbody, queryThe name of the target if UUID not provided (optional)

Returns​

object - Result of the item use operation

Example Request​

POST /dnd5e/use-item
Content-Type: application/json

{
"clientId": "example-value",
"actorUuid": "example-value",
"abilityUuid": "example-value",
"abilityName": "example-value"
}

POST /dnd5e/modify-experience​

Modify the experience points for a specific actor. Adds or removes experience points from an actor.

Parameters​

NameTypeRequiredSourceDescription
clientIdstring✓body, queryClient ID for the Foundry world
amountnumber✓body, queryThe amount of experience to add (can be negative)
actorUuidstringbody, queryUUID of the actor to modify
selectedbooleanbody, queryModify the selected token's actor

Returns​

object - Result of the experience modification operation

Example Request​

POST /dnd5e/modify-experience
Content-Type: application/json

{
"clientId": "example-value",
"amount": 123,
"actorUuid": "example-value",
"selected": true
}