Türkçe dil desteğimiz henüz tamamlandı. Eksik sayfalar veya bölümlerle karşılaşmanız durumunda İngilizce dilini seçerek sayfanın orjinalini görebilirsiniz.

Create Hook

Scopes
write:hook

Request Body

content
string
REQUIRED

Your hook code written in javascript.

description
string

Additional information for the hook

enabled
boolean

Whether the hook is enabled or not.

name
string
REQUIRED

Hook name

order
integer
min0
max
20000

Execution order of the hook. It applies to hook types. Lower ordered hooks executed first.

type
string
REQUIRED

Defines hook's area of usage

Available Values:pre_registerpost_registerpre_loginpost_loginpre_mfapre_access_tokenpre_id_tokenpre_fc_importpost_fc_importpre_fc_exportciba_auth_promptciba_validate_r_cciba_validate_u_c

POST
/hooks
1
2
3
4
5
Loading...
Response:
201
Loading...

Response Body Schema

content
string
REQUIRED

Your hook code written in javascript.

description
string

Additional information for the hook

enabled
boolean
REQUIRED

Whether the hook is enabled or not.

id
string
REQUIRED

Unique identifier of entity

name
string
REQUIRED

Hook name

order
integer
REQUIRED
min0
max
20000

Execution order of the hook. It applies to hook types. Lower ordered hooks executed first.

type
string
REQUIRED

Defines hook's area of usage

Available Values:pre_registerpost_registerpre_loginpost_loginpre_mfapre_access_tokenpre_id_tokenpre_fc_importpost_fc_importpre_fc_exportciba_auth_promptciba_validate_r_cciba_validate_u_c