Leads_scan
POST
/api/leads/scan
const url = 'https://met.cards/api/leads/scan';const form = new FormData();form.append('image', 'file');form.append('sourceType', 'example');form.append('event', 'example');form.append('location', 'example');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
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://met.cards/api/leads/scan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form image=@file \ --form sourceType=example \ --form event=example \ --form location=exampleAuthorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
object
image
required
JPEG, PNG or WebP, up to 8 MB.
string format: binary
sourceType
string
event
string
location
string