---
updatedAt: 2026-07-08T10:28:02.000Z
agentTools:
  projectIndex: https://developer.optimove.com/llms.txt
---

# Target Group ID

Returns the target group ID associated with a particular target group name.

### Rate Limit

This endpoint is subject to the general API rate limit of 50 requests per 10 seconds. [Learn more about handling rate limits](https://developer.optimove.com/v2.4/reference/understanding-api-rate-limits).

**Sample Request**

<https://apiX.optimove.net/current/groups/GetTargetGroupID?TargetGroupName=UK%20VIPs>

**Sample Response**

```json
{"TargetGroupID":26}
```

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Optimove API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api4.optimove.net",
      "description": "US Environment"
    },
    {
      "url": "https://api5.optimove.net",
      "description": "EU Environment"
    }
  ],
  "paths": {
    "/Groups/GetTargetGroupID": {
      "get": {
        "tags": [
          "Target Groups"
        ],
        "summary": "Target Group ID",
        "description": "Returns the target group ID associated with a particular target group name.",
        "parameters": [
          {
            "name": "targetGroupName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Optimove.API.Models.OptimoveTargetGroup"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Optimove.API.Models.OptimoveTargetGroup": {
        "type": "object",
        "properties": {
          "TargetGroupID": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "API KEY",
        "name": "X-API-KEY",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}
```