---
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, required
  - `usage_count` integer, required
  - `creator_id` string, snowflake, required
  - `creator` UserResponse, required
    - `id` string, snowflake, required
    - `username` string, required — the user's username, not unique across the platform
    - `avatar` string, nullable, required — the user's avatar hash
    - `discriminator` string, required — the user's Discord-tag
    - `public_flags` integer, required — the public flags on a user's account
    - `flags` integer, required
    - `bot` boolean — whether the user belongs to an OAuth2 application
    - `system` boolean — whether the user is an Official Discord System user (part of the urgent message system)
    - `banner` string, nullable — the user's banner hash
    - `accent_color` integer, nullable — the user's banner color encoded as an integer representation of hexadecimal color code
    - `global_name` string, nullable, required — the user's display name, if it is set
    - `avatar_decoration_data` UserAvatarDecorationResponse
      - `asset` string, required — the avatar decoration hash
      - `sku_id` string, snowflake, required
    - `collectibles` UserCollectiblesResponse
      - `nameplate` UserNameplateResponse, required
        - `sku_id` string, snowflake, required
        - `asset` string, required — Path to the nameplate asset
        - `label` string, required — The label of this nameplate. Currently unused
        - `palette` union, required
          - 'crimson' — Crimson color palette
          - 'berry' — Berry color palette
          - 'sky' — Sky color palette
          - 'teal' — Teal color palette
          - 'forest' — Forest color palette
          - 'bubble_gum' — Bubble gum color palette
          - 'violet' — Violet color palette
          - 'cobalt' — Cobalt color palette
          - 'clover' — Clover color palette
          - 'lemon' — Lemon color palette
          - 'white' — White color palette
          - 'black' — Black color palette
    - `primary_guild` UserPrimaryGuildResponse, required
      - `identity_guild_id` string, snowflake, required
      - `identity_enabled` boolean, nullable, required — whether the user is displaying the primary guild's server tag
      - `tag` string, nullable, required — the text of the user's server tag, limited to 4 characters
      - `badge` string, nullable, required — the server tag badge hash
  - `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, required
    - `region` string, nullable, required
    - `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, required
    - `afk_timeout` union, required
      - 60
      - 300
      - 900
      - 1800
      - 3600
    - `system_channel_id` string, snowflake, required
    - `system_channel_flags` integer, required
    - `roles` GuildTemplateRoleResponse[], required
      - `id` integer, required
      - `name` string, required
      - `permissions` string, required
      - `color` integer, required
      - `colors` GuildTemplateRoleColorsResponse, required
        - `primary_color` integer, required
        - `secondary_color` integer, nullable, required
        - `tertiary_color` integer, nullable, required
      - `hoist` boolean, required
      - `mentionable` boolean, required
      - `icon` string, nullable, required
      - `unicode_emoji` string, nullable, required
    - `channels` GuildTemplateChannelResponse[], required
      - `id` integer, nullable, required
      - `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, required
      - `position` integer, nullable, required
      - `topic` string, nullable, required
      - `bitrate` integer, required
      - `user_limit` integer, required
      - `nsfw` boolean, required
      - `rate_limit_per_user` integer, required
      - `parent_id` string, snowflake, required
      - `default_auto_archive_duration` union, required
        - 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, required
        - `id` integer, nullable, required
        - `name` string, required
        - `emoji_id` string, snowflake, required
        - `emoji_name` string, nullable, required
        - `moderated` boolean, nullable, required
      - `template` string, required
      - `default_reaction_emoji` DefaultReactionEmojiResponse, required
        - `emoji_id` string, snowflake, required
        - `emoji_name` string, nullable, required
      - `default_thread_rate_limit_per_user` integer, nullable, required
      - `default_sort_order` union, required
        - 0 — Sort forum posts by activity
        - 1 — Sort forum posts by creation time (from most recent to oldest)
      - `default_forum_layout` union, required
        - 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, required
        - '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
      - `theme_color` integer, nullable, required
  - `is_dirty` boolean, nullable, required

## Other responses

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

---

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