Add a store credential
POST
/v1/credentials
const url = 'https://api.extport.dev/api/v1/credentials';const options = { method: 'POST', headers: { cookie: 'extport_session=<extport_session>', 'Content-Type': 'application/json' }, body: '{"store":"chrome","label":"example","expiresAt":"example","credentials":"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://api.extport.dev/api/v1/credentials \ --header 'Content-Type: application/json' \ --cookie extport_session=<extport_session> \ --data '{ "store": "chrome", "label": "example", "expiresAt": "example", "credentials": "example" }'Verified against the live store API before saving, then envelope-encrypted — only the last four characters are ever shown again.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
store
required
string
label
string
expiresAt
string
credentials
required
Responses
Section titled “Responses”Created
Media typeapplication/json
The store rejected the credentials