OverviewPlatformsAPI ReferenceResources

Create a Discord scheduled event

POSThttps://zernio.com/api/v1/discord/guilds/{guildId}/events

Create a guild scheduled event. Three event types, selected via the discriminator on entity.type:

  • external: off-platform (Zoom, in-person, livestream). Requires both location and endsAt. Most common type for scheduler integrations.
    • voice: hosted in a Discord voice channel. Requires channelId.
    • stage: hosted in a Discord stage channel. Requires channelId.

Bot needs MANAGE_EVENTS in the guild. Existing installs (pre-events PR) need a re-invite OR a server admin manually granting the permission. See route header for details.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

guildIdstringRequired

Body

application/json

What every request needs

accountIdstringRequired
namestring, max 100Required
startsAtstring (date-time)Required

ISO 8601 start time. Must be in the future.

entityone of 3 objectsRequired
Optional parameters2 fields
descriptionstring, max 1000
imageDataUristring

Optional cover image as a base64 data URI.

Responses

Success· the request worked

Errors· the request failed

POST/v1/discord/guilds/{guildId}/events
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.discord.createDiscordScheduledEvent({  path: {    guildId: 'guild_abc123',  },  body: {    accountId: '65a1b2c3d4e5f60718293a4b',    name: 'Weekly AMA',    description: 'Bring your questions about the roadmap.',    startsAt: '2026-06-15T18:00:00Z',    entity: {      type: 'external',      location: 'https://zoom.us/j/123',      endsAt: '2026-06-15T19:00:00Z',    },  },});console.log(data);
{  "data": {    "id": "string",    "guild_id": "string",    "channel_id": "string",    "creator_id": "string",    "name": "string",    "description": "string",    "scheduled_start_time": "2019-08-24T14:15:22Z",    "scheduled_end_time": "2019-08-24T14:15:22Z",    "privacy_level": 2,    "status": 1,    "entity_type": 1,    "entity_id": "string",    "entity_metadata": {      "location": "string"    },    "user_count": 0,    "image": "string"  }}
OpenAPI specification
Was this page helpful?