/api/v1/account/push (POST)
POST
/api/v1/account/push
const url = 'https://example.com/api/v1/account/push';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"endpoint":"example","p256dh":"example","auth":"example","device":"example","kinds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/account/push \ --header 'Content-Type: application/json' \ --data '{ "endpoint": "example", "p256dh": "example", "auth": "example", "device": "example", "kinds": [ "example" ] }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
endpoint
required
string
p256dh
required
string
auth
required
string
device
required
null | string
kinds
required
Array<string> | null
Example generated
{ "endpoint": "example", "p256dh": "example", "auth": "example", "device": "example", "kinds": [ "example" ]}Responses
Section titled “Responses”OK