Skip to main content
PUT

Authorizations

Authorization
string
header
required

For partners. Send your partner key as a bearer token: Authorization: Bearer <your partner key>. It starts with wgt_prt_ and you make it in your partner's home workspace, under Settings → API keys; any other key is refused with 403. See API keys and Partners.

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.