---
title: "Fetch Group Invite Code"
method: GET
path: "/group/inviteCode/{instance}"
tags: ["Group Controller"]
---

# Fetch Group Invite Code

`GET /group/inviteCode/{instance}`

## Request

- Base URL: `https://evolution-example`
- URL: `https://evolution-example/group/inviteCode/{instance}`
- Auth: API key in header `apikey`

Fetch group invite code

## Path parameters

- `instance` string, required

## Query parameters

- `groupJid` string, required

## Response `200`

Ok

- object
  - `inviteUrl` string: The URL for the WhatsApp group invite.
  - `inviteCode` string: The code for the WhatsApp group invite.

## Changes

- **2024-11-25** (v2) `c153448703e5`: 1 breaking, 4 info
  - the `query` request parameter `groupJid` became required
  - api operation id `fetchInviteCode` was added
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - api tag `Group Controller` added
  - …1 more
- **2024-09-09** (v2) `0c4620ca5ed5`: 5 info
  - api operation id `fetchInviteCode` removed and replaced with ``
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
  - api tag `Group` added
  - api tag `Group Controller` removed
  - …1 more

[Operation history](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/changes/group/inviteCode/:instance/get.md)

---

[API](https://skmtc.dev/evolution-foundation/apis/evolution-api-3.md) - [All operations](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/llms.txt) - [OpenAPI document](https://skmtc.dev/evolution-foundation/apis/evolution-api-3/revisions/153363ee7f38?raw)
