---
title: "Get subscription"
method: GET
path: "/hooks/{hookId}"
tags: ["RestHooks"]
---

# Get subscription

`GET /hooks/{hookId}`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/hooks/{hookId}`
- Auth: HTTP bearer

Get the subscription details for given an id.

## Path parameters

- `hookId` integer, required

## Response `200`

Ok

- RestHook: Object representing a rest hook subscription.
  - `id` integer: A unique ID. Use this to handle this subscription.
  - `event` string: The event being listened for.
  - `url` string: The event being listened for.
  - `receiver` string, nullable: An identifier to distinguish different receivers.
  - `active` 0 | 1: Whether or not the hook is enabled.
  - `created` string: Creation date of hook.
  - `lastactivity` string, nullable: Date of last time the hook got used.
  - `last_updated` string: The time the hook data was last updated

## Other responses

- `4XX`: Not found

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
