Discord

Get Discord template

Get a Discord guild template by code: its name, usage count, creator id and serialized channel and role layout.

GET/v1/discord/templates/{code}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
codestringrequiredpath

Guild template code, 1 to 64 letters, digits, underscores or hyphens.

min 1 chars · max 64 chars · pattern: ^[A-Za-z0-9_-]+$

Response fields
56

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when no template has the code.

one of: found, not_found, restricted

The template when found; otherwise null.

datatemplatecode
string

Template code.

datatemplatename
string

Template name.

datatemplatedescription
stringnullable

Template description.

datatemplateusageCount
integernullable

How many times it was used.

datatemplatecreatorId
stringnullable

Template creator id.

datatemplatecreatedAt
stringnullable

When it was created.

datatemplateupdatedAt
stringnullable

When it was updated.

datatemplateisDirty
booleannullable

The template's dirty flag, when present.

datatemplatesourceServerId
stringnullable

The server it was made from.

The template's serialized server layout.

datatemplateserializedSourceServername
stringnullable

Server name.

datatemplateserializedSourceServerdescription
stringnullable

Server description.

datatemplateserializedSourceServerregion
stringnullable

Server region.

datatemplateserializedSourceSerververificationLevel
integernullable

Verification level.

datatemplateserializedSourceServerdefaultMessageNotifications
integernullable

Default notification setting.

datatemplateserializedSourceServerexplicitContentFilter
integernullable

Explicit content filter.

datatemplateserializedSourceServerpreferredLocale
stringnullable

Preferred locale.

datatemplateserializedSourceServerafkChannelId
integernullable

AFK channel id.

datatemplateserializedSourceServerafkTimeout
integernullable

AFK timeout.

datatemplateserializedSourceServersystemChannelId
integernullable

System channel id.

datatemplateserializedSourceServersystemChannelFlags
integernullable

System channel flags.

Roles.

datatemplateserializedSourceServerroles[]id
integernullable

Role id in the template.

datatemplateserializedSourceServerroles[]name
stringnullable

Role name.

datatemplateserializedSourceServerroles[]permissions
stringnullable

Permission bitfield.

datatemplateserializedSourceServerroles[]color
integernullable

Role colour.

datatemplateserializedSourceServerroles[]colors
objectnullable

Role colours by gradient stop, passed through.

datatemplateserializedSourceServerroles[]hoist
booleannullable

Whether the role is hoisted.

datatemplateserializedSourceServerroles[]mentionable
booleannullable

Whether it is mentionable.

datatemplateserializedSourceServerroles[]icon
stringnullable

Role icon hash.

datatemplateserializedSourceServerroles[]unicodeEmoji
stringnullable

Role unicode emoji.

Channels.

datatemplateserializedSourceServerchannels[]id
integernullable

Channel id in the template.

datatemplateserializedSourceServerchannels[]type
integernullable

Channel type.

datatemplateserializedSourceServerchannels[]name
stringnullable

Channel name.

datatemplateserializedSourceServerchannels[]position
integernullable

Channel position.

datatemplateserializedSourceServerchannels[]topic
stringnullable

Channel topic.

datatemplateserializedSourceServerchannels[]nsfw
booleannullable

Whether the channel is NSFW.

datatemplateserializedSourceServerchannels[]parentId
integernullable

Parent category id.

datatemplateserializedSourceServerchannels[]bitrate
integernullable

Voice bitrate.

datatemplateserializedSourceServerchannels[]userLimit
integernullable

Voice user limit.

datatemplateserializedSourceServerchannels[]rateLimitPerUser
integernullable

Slowmode seconds.

Permission overwrites, passed through.

datatemplateserializedSourceServerchannels[]permissionOverwrites[]
objectoptional

Forum tags, passed through.

datatemplateserializedSourceServerchannels[]availableTags[]
objectoptional
datatemplateserializedSourceServerchannels[]defaultAutoArchiveDuration
integernullable

Default thread auto-archive duration.

datatemplateserializedSourceServerchannels[]iconEmoji
objectnullable

Channel icon emoji, passed through.

datatemplateserializedSourceServerchannels[]themeColor
integernullable

Channel theme colour.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/discord/templates/hgM48av5Q69A" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Template.