Skip to main content
PUT
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

partnerId
string<uuid>
required

The partner that keeps the key

adapterId
string
required

The adapter the key is for

Maximum string length: 40
credentialKey
string
required

The key's name within the adapter

Maximum string length: 40

Body

application/json
credential
string<password>
required
write-only

The key exactly as its provider gave it: one line of text, at most 2048 characters. It is stored encrypted and is never returned or logged. For a credential that is an email address (confirmation: email_code), write that one address, with nothing else

Maximum string length: 2048
Example:

"YOUR_PROVIDER_KEY"

Response

The key was saved

success
boolean
required
data
object
required

A key an adapter can take from an account, and whether the account has connected it. The key itself is never part of this: it is given once, when it is connected, and Widgetic keeps it encrypted.

Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.