TwinSources_create
POST
/api/twin/sources
const url = 'https://met.cards/api/twin/sources';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"url":"https://example.com","name":"example","useFor":"example","authKind":"none","token":"example","headerName":"example","headerValue":"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://met.cards/api/twin/sources \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "url": "https://example.com", "name": "example", "useFor": "example", "authKind": "none", "token": "example", "headerName": "example", "headerValue": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
url
required
string format: uri
name
required
string
useFor
required
string
authKind
required
string
token
string
headerName
string
headerValue
string
Responses
Section titled “Responses”Media typeapplication/json
object
Examplegenerated
{}