---
title: "Retrieve a specific geofence by PlaceID."
url: "https://developers.vzconnect.com/apis/geofence-api-1/versions/97ac0c29-6cea-4076-8841-35f03eedbd6c/operations/getGeofenceById"
---

> Full API specification: https://developers.vzconnect.com/apis/geofence-api-1/versions/97ac0c29-6cea-4076-8841-35f03eedbd6c.md

# Retrieve a specific geofence by PlaceID.

`GET` `/geo/v1/geofences/{placeid}`

Operation ID: `getGeofenceById`

Retrieve details regarding a specific Geofence identified by its PlaceID.

## Path parameters

- `placeid` (string, required) - The PlaceID that uniquely identifies the Geofence within the REVEAL account.

## Responses

- `200` - Successfully retrieved the geofence details.
- `400` - Bad request.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `404` - Geofence not found with the specified PlaceID.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Geofence API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /geo/v1/geofences/{placeid}:
    get:
      summary: Retrieve a specific geofence by PlaceID.
      description: Retrieve details regarding a specific Geofence identified by its PlaceID.
      operationId: getGeofenceById
      tags:
        - Geofence API
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/geo/v1/geofences/[^/]+/?$
      parameters:
        - name: placeid
          in: path
          required: true
          description: The PlaceID that uniquely identifies the Geofence within the REVEAL
            account.
          schema:
            type: string
            example: "369852"
      responses:
        "200":
          description: Successfully retrieved the geofence details.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/GeofenceByIdResponse"
              example:
                geofence:
                  GeoShapeType: GeoRectangle
                  PlaceId: "369852"
                  GeoFenceName: Restaurant
                  CategoryName: UnCategorized
                  Address: {}
                  IsShownOnMap: true
                  IsShownOnReport: true
                  Latitude: 53.389422
                  Longitude: -2.925248
        "400":
          description: Bad request.
          content:
            application/json: {}
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
        "404":
          description: Geofence not found with the specified PlaceID.
          content:
            application/json: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
components:
  schemas:
    GeofenceByIdResponse:
      type: object
      description: The details of a specific Geofence retrieved by Place ID.
      properties:
        geofence:
          type: object
          properties:
            GeoShapeType:
              type: string
              description: Circle, Rectangle, or Polygon.
              enum:
                - GeoRectangle
                - GeoCircle
                - GeoPolygon
              example: GeoRectangle
            PlaceId:
              type: string
              nullable: true
              description: A unique value within a REVEAL account used to identify a Geofence.
                The Place ID is a mandatory field to use the Geospatial API, but
                can be NULL for a returned Geofence.
              example: "369852"
            GeoFenceName:
              type: string
              description: The name of the Geofence.
              example: Restaurant
            CategoryName:
              type: string
              description: The name of the Category.
              example: UnCategorized
            Address:
              $ref: "#/components/schemas/Address"
            IsShownOnMap:
              type: boolean
              default: true
              example: true
            IsShownOnReport:
              type: boolean
              default: true
              example: true
            EmailAddress:
              type: string
              description: An email address that can be associated with the saved Geofence.
              example: depot@example.com
            Note:
              type: string
              description: A free form text space for users to provide additional details
                about the Geofence location.
              example: Main depot
            PhoneNumber:
              type: string
              description: A Phone Number that can be associated with the saved Geofence.
              example: 216-522-2855
            Latitude:
              type: number
              format: double
              example: 53.389422
            Longitude:
              type: number
              format: double
              example: -2.925248
        _links:
          type: object
          properties:
            self:
              $ref: "#/components/schemas/Link"
            spatialdata:
              $ref: "#/components/schemas/Link"
    Address:
      type: object
      description: Address contains the global standards for address components.
      properties:
        AddressLine1:
          type: string
          description: Location specific identification such as a house number.
          example: 2510 E Ridgewood Dr
        AddressLine2:
          type: string
          description: Additional information to identify location such as an apartment
            number.
          example: ""
        Locality:
          type: string
          description: City, town, etc.
          example: Seven Hills
        AdministrativeArea:
          type: string
          description: State, province, etc.
          example: OH
        PostalCode:
          type: string
          description: Postal code.
          example: "44131"
        Country:
          type: string
          description: Country.
          example: USA
    Link:
      type: object
      properties:
        href:
          type: string
```
