Javascript
const url = 'https://api.gnosispay.com/api/v1/cards/{cardId}/lost'; const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}, body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "status": "Card marked as lost successfully" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Card marked as lost successfully
The response is of type object.
object