Skip to content

Get Group Detail ​

GET /group/{groupId}

Get the details of one group you're in. groupId can be an ID from Get Groups, or a public group's username.

Endpoint Details ​

  • Base URL: https://api-zate.azickri.com
  • Headers: id and session-id
  • Requirement: the session must be connected (isConnected: true)

Parameters ​

ParameterInTypeRequiredDescription
idheaderstringYesid from Create Session.
session-idheaderstringYessessionId from Create Session.
groupIdpathstringYesGroup ID, like -1001234567890, or a public group's username.

Example Request ​

bash
curl "https://api-zate.azickri.com/group/-1001234567890" \
  -H "id: YOUR_ID" \
  -H "session-id: YOUR_SESSION_ID"
javascript
import axios from 'axios';

const groupId = '-1001234567890';

const response = await axios.get(`https://api-zate.azickri.com/group/${groupId}`, {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

console.log(response.data);
javascript
const groupId = '-1001234567890';

const response = await fetch(`https://api-zate.azickri.com/group/${groupId}`, {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "id": "-1001234567890",
  "name": "Zate Community",
  "username": "komunitaszate",
  "description": "A place for Zate users to hang out",
  "picture": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ...",
  "created": "2025-06-07T15:15:51.000Z"
}
json
// Not a group (a channel, for example), or one you haven't joined
{
  "statusCode": 400,
  "message": "group not found"
}

// Username or ID not found
{
  "statusCode": 400,
  "message": "chat not found"
}
json
{
  "statusCode": 404,
  "message": "session not found"
}
json
{
  "statusCode": 500,
  "message": "session not connected"
}
FieldTypeDescription
idstringGroup ID: -123... for basic groups, -100... for supergroups.
namestringGroup name.
usernamestringPublic group username without @. Empty for private and basic groups.
descriptionstringGroup description. Cached for 5 minutes.
picturestringSmall group photo as a data URI. May be empty.
createdstringThe date your account joined the group (ISO 8601).