---
title: "GET /guilds/templates/{code}"
method: GET
path: "/guilds/templates/{code}"
---

# GET /guilds/templates/{code}

`GET /guilds/templates/{code}`

## Response `200`

200 response for get_guild_template

- GuildTemplateResponse
  - `code` string, required
  - `name` string, required
  - `description` string, nullable
  - `usage_count` integer, required
  - `creator_id` string, snowflake, required
  - `creator` UserResponse
    - `id` string, snowflake, required
    - `username` string, required
    - `avatar` string, nullable
    - `discriminator` string, required
    - `public_flags` integer, required
    - `flags` integer, required
    - `bot` boolean
    - `system` boolean
    - `banner` string, nullable
    - `accent_color` integer, nullable
    - `global_name` string, nullable
    - `avatar_decoration_data` UserAvatarDecorationResponse
      - `asset` string, required
      - `sku_id` string, snowflake
    - `collectibles` UserCollectiblesResponse
      - `nameplate` UserNameplateResponse — unresolved $ref
    - `primary_guild` UserPrimaryGuildResponse
      - `identity_guild_id` string, snowflake
      - `identity_enabled` boolean, nullable
      - `tag` string, nullable
      - `badge` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `source_guild_id` string, snowflake, required
  - `serialized_source_guild` GuildTemplateSnapshotResponse, required
    - `name` string, required
    - `description` string, nullable
    - `region` string, nullable
    - `verification_level` union, required
      - 0 — unrestricted
      - 1 — must have verified email on account
      - 2 — must be registered on Discord for longer than 5 minutes
      - 3 — must be a member of the server for longer than 10 minutes
      - 4 — must have a verified phone number
    - `default_message_notifications` union, required
      - 0 — members will receive notifications for all messages by default
      - 1 — members will receive notifications only for messages that @mention them by default
    - `explicit_content_filter` union, required
      - 0 — media content will not be scanned
      - 1 — media content sent by members without roles will be scanned
      - 2 — media content sent by all members will be scanned
    - `preferred_locale` union, required
      - 'ar' — The ar locale
      - 'bg' — The bg locale
      - 'cs' — The cs locale
      - 'da' — The da locale
      - 'de' — The de locale
      - 'el' — The el locale
      - 'en-GB' — The en-GB locale
      - 'en-US' — The en-US locale
      - 'es-419' — The es-419 locale
      - 'es-ES' — The es-ES locale
      - 'fi' — The fi locale
      - 'fr' — The fr locale
      - 'he' — The he locale
      - 'hi' — The hi locale
      - 'hr' — The hr locale
      - 'hu' — The hu locale
      - 'id' — The id locale
      - 'it' — The it locale
      - 'ja' — The ja locale
      - 'ko' — The ko locale
      - 'lt' — The lt locale
      - 'nl' — The nl locale
      - 'no' — The no locale
      - 'pl' — The pl locale
      - 'pt-BR' — The pt-BR locale
      - 'ro' — The ro locale
      - 'ru' — The ru locale
      - 'sv-SE' — The sv-SE locale
      - 'th' — The th locale
      - 'tr' — The tr locale
      - 'uk' — The uk locale
      - 'vi' — The vi locale
      - 'zh-CN' — The zh-CN locale
      - 'zh-TW' — The zh-TW locale
    - `afk_channel_id` string, snowflake
    - `afk_timeout` union, required
      - 60
      - 300
      - 900
      - 1800
      - 3600
    - `system_channel_id` string, snowflake
    - `system_channel_flags` integer, required
    - `roles` GuildTemplateRoleResponse[], required
      - `id` integer, required
      - `name` string, required
      - `permissions` string, required
      - `color` integer, required
      - `colors` GuildTemplateRoleColorsResponse
        - `primary_color` integer, required
        - `secondary_color` integer, nullable
        - `tertiary_color` integer, nullable
      - `hoist` boolean, required
      - `mentionable` boolean, required
      - `icon` string, nullable
      - `unicode_emoji` string, nullable
    - `channels` GuildTemplateChannelResponse[], required
      - `id` integer, nullable
      - `type` union, required
        - 1 — A direct message between users
        - 3 — A direct message between multiple users
        - 0 — A text channel within a server
        - 2 — A voice channel within a server
        - 4 — An organizational category that contains up to 50 channels
        - 5 — A channel that users can follow and crosspost into their own server (formerly news channels)
        - 10 — A temporary sub-channel within a GUILD_ANNOUNCEMENT channel
        - 11 — A temporary sub-channel within a GUILD_TEXT or GUILD_THREADS_ONLY channel type set
        - 12 — A temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission
        - 13 — A voice channel for hosting events with an audience
        - 14 — The channel in a hub containing the listed servers
        - 15 — Channel that can only contain threads
      - `name` string, nullable
      - `position` integer, nullable
      - `topic` string, nullable
      - `bitrate` integer, required
      - `user_limit` integer, required
      - `nsfw` boolean, required
      - `rate_limit_per_user` integer, required
      - `parent_id` string, snowflake
      - `default_auto_archive_duration` union
        - 60 — One hour
        - 1440 — One day
        - 4320 — Three days
        - 10080 — Seven days
      - `permission_overwrites` ChannelPermissionOverwriteResponse[], required
        - `id` string, snowflake, required
        - `type` union, required
          - 0
          - 1
        - `allow` string, required
        - `deny` string, required
      - `available_tags` GuildTemplateChannelTags[], nullable
        - `id` integer, nullable
        - `name` string, required
        - `emoji_id` string, snowflake
        - `emoji_name` string, nullable
        - `moderated` boolean, nullable
      - `template` string, required
      - `default_reaction_emoji` DefaultReactionEmojiResponse
        - `emoji_id` string, snowflake
        - `emoji_name` string, nullable
      - `default_thread_rate_limit_per_user` integer, nullable
      - `default_sort_order` union
        - 0 — Sort forum posts by activity
        - 1 — Sort forum posts by creation time (from most recent to oldest)
      - `default_forum_layout` union
        - 0 — No default has been set for forum channel
        - 1 — Display posts as a list
        - 2 — Display posts as a collection of tiles
      - `default_tag_setting` union
        - 'match_all' — The thread tags must contain all tags in the search query
        - 'match_some' — The thread tags must contain at least one of tags in the search query
      - `icon_emoji` IconEmojiResponse
      - `theme_color` integer, nullable
  - `is_dirty` boolean, nullable

## Other responses

- `429` — Client ratelimited response
- `4XX` — Client error response

---

[API](https://skmtc.dev/discord/apis/discord-http-api-preview.md) · [All operations](https://skmtc.dev/discord/apis/discord-http-api-preview/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/discord/discord-http-api-preview/revisions/e4fdf8b45809/schema)
