PeumeAPI

Social publishing & inbox · Discord

Create a Discord guild role

Creates a new role in the guild.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/create-a-discord-guild-role \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "guildId": "your guildId",
    "name": "your name"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: create-a-discord-guild-role.

Parameters

accountIdRequiredstring

SocialAccount _id of the Discord account bound to this guild

guildIdRequiredstring

Discord guild snowflake ID

nameRequiredstring
colorinteger

Decimal color (0 = no color). 0xFF0000 red is 16711680.

hoistboolean

Display members with this role separately in the member list

mentionableboolean

Allow anyone to @mention this role

permissionsstring

Permissions bitfield as a stringified integer

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.