Read an app's code handler

The code that runs on every event this app receives, its secret names, and runs used this month.

get/api/v1/apps/{slug}/code

Request

  • Base URL: https://anyhook.net
  • URL: https://anyhook.net/api/v1/apps/{slug}/code
  • Auth: HTTP bearer

Path parameters

slugstring required

Response

The handler

appstring
plan_allowsboolean

False on Free: code handlers are on Pro and Scale.

codestring nullable

The handler's source; null when the app has none.

secret_namesstring[]

Names only; values never leave the server.

packagesobject

npm packages the code imports, name → version ("latest" unless pinned), installed when it was saved.

schedulestring nullable

The cron it also runs on, if any.

receivingboolean

Whether the app's events reach the code (its run destination is present and enabled).

destination'on' | 'off'

on: the app's run destination is there and events run the code. off: it is not, and the code runs only through POST .../code/test.

disabledboolean
runs_this_monthinteger
runs_per_monthinteger nullable

The plan's monthly run cap; null = unlimited.

Changes

No recorded changes to this operation across all 2 revisions of this API.