Skip to main content
All CollectionsEmbedded API Documentation
Method for getting a connection to your own system
Method for getting a connection to your own system
Manuel Bernal avatar
Written by Manuel Bernal
Updated over a week ago

This method lets you request a connection to your system, validate the connection credentials, or receive a webhook.

Authorization: This method should be called with the user token.

Request: POST https://api.albato.com/wl/partner-name/get-own-credential

Response parameters:

  • success — Request success indicator. Available values: true or false

  • data — Parameters of the created/updated connection in a key-value format, where the keys depend on the particular connection and match those transferred in this method. Note that sensitive data (e.g., passwords, access tokens, etc.) cannot be returned by this method in a readable format, as they will be partially masked for security.

Example request via curl:

curl --header "Content-type: application/json" --header "Accept: application/json" --header "Authorization: Bearer eyJ0eXAiOiJKV.eyJpZGVudGl0eSI6OTczMzAsInRydWVJZGVudGl0eS..._GT8jc8Xby-3sidRPk" "https://api.albato.com/wl/partner-name/upsert-own-credential"

Response example:

    {
"success": true,
"data": {
"title": "Default credential",
"accessToken": "••570f",
"userId": 87123,
"webhookUrl": "https://h.albato.com/wh/17600/1lfrdco/POoHj252FUkB7c8K252FeofTqNzAaoK34ClaUUnrz6vx1Q5pJE/"
}
}
Did this answer your question?