APIHub
Back to Explore

Google Mirror

The Google Mirror API provides programmatic access to a Glass user's data, allowing creation, retrieval, update, and deletion of timeline items and their attachments, as well as management of the user's contacts, locations, settings, subscriptions, and accounts.

Uncategorized
OAuth
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

97ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
DELETE

/timeline/{itemId}/attachments/{attachmentId}

Deletes an attachment from a timeline item.

  • itemId (path, required) — The ID of the timeline item the attachment belongs to.
  • attachmentId (path, required) — The ID of the attachment.
POST

/accounts/{userToken}/{accountType}/{accountName}

Inserts a new account for a user

  • userToken (path, required) — The ID for the user.
  • accountType (path, required) — Account type to be passed to Android Account Manager.
  • accountName (path, required) — The name of the account to be passed to the Android Account Manager.
GET

/contacts

Retrieves a list of contacts for the authenticated user.

POST

/contacts

Inserts a new contact.

DELETE

/contacts/{id}

Deletes a contact.

  • id (path, required) — The ID of the contact.
GET

/contacts/{id}

Gets a single contact by ID.

  • id (path, required) — The ID of the contact.
PATCH

/contacts/{id}

Updates a contact in place. This method supports patch semantics.

  • id (path, required) — The ID of the contact.
PUT

/contacts/{id}

Updates a contact in place.

  • id (path, required) — The ID of the contact.
GET

/locations

Retrieves a list of locations for the user.

GET

/locations/{id}

Gets a single location by ID.

  • id (path, required) — The ID of the location or latest for the last known location.
GET

/settings/{id}

Gets a single setting by ID.

  • id (path, required) — The ID of the setting. The following IDs are valid: - locale - The key to the user’s language/locale (BCP 47 identifier) that Glassware should use to render localized content. - timezone - The key to the user’s current time zone region as defined in the tz database. Example: America/Los_Angeles.
GET

/subscriptions

Retrieves a list of subscriptions for the authenticated user and service.

POST

/subscriptions

Creates a new subscription.

DELETE

/subscriptions/{id}

Deletes a subscription.

  • id (path, required) — The ID of the subscription.
PUT

/subscriptions/{id}

Updates an existing subscription in place.

  • id (path, required) — The ID of the subscription.
GET

/timeline

Retrieves a list of timeline items for the authenticated user.

  • bundleId (query) — If provided, only items with the given bundleId will be returned.
  • includeDeleted (query) — If true, tombstone records for deleted items will be returned.
  • maxResults (query, limit) — The maximum number of items to include in the response, used for paging.
  • orderBy (query) — Controls the order in which timeline items are returned.
  • pageToken (query) — Token for the page of results to return.
  • pinnedOnly (query) — If true, only pinned items will be returned.
  • sourceItemId (query) — If provided, only items with the given sourceItemId will be returned.
POST

/timeline

Inserts a new item into the timeline.

DELETE

/timeline/{id}

Deletes a timeline item.

  • id (path, required) — The ID of the timeline item.
GET

/timeline/{id}

Gets a single timeline item by ID.

  • id (path, required) — The ID of the timeline item.
PATCH

/timeline/{id}

Updates a timeline item in place. This method supports patch semantics.

  • id (path, required) — The ID of the timeline item.
PUT

/timeline/{id}

Updates a timeline item in place.

  • id (path, required) — The ID of the timeline item.
GET

/timeline/{itemId}/attachments

Returns a list of attachments for a timeline item.

  • itemId (path, required) — The ID of the timeline item whose attachments should be listed.
POST

/timeline/{itemId}/attachments

Adds a new attachment to a timeline item.

  • itemId (path, required) — The ID of the timeline item the attachment belongs to.
GET

/timeline/{itemId}/attachments/{attachmentId}

Retrieves an attachment on a timeline item by item ID and attachment ID.

  • itemId (path, required) — The ID of the timeline item the attachment belongs to.
  • attachmentId (path, required) — The ID of the attachment.

24 endpoints auto-detected

Authentication

This API requires authentication: OAuth.

curl -X DELETE \
  "https://www.googleapis.com/mirror/v1/timeline/{itemId}/attachments/{attachmentId}"

www.googleapis.com · HTTPS only