Welcome to Albato Help

Method for getting metadata of a connection to your own system


IN THIS ARTICLE

This method lets you pull your system's connection fields and use them to set up user authentication on your platform.

Authorization: This method should be called either with the user token or the master account token.

Request:

GET|POST https://api.albato.com/wl/partner-name/get-own-credential-metadata

Where partner-name is your company name (partner name) in Albato.

Response parameters:

  • success — Request success indicator. Available values: true or false
  • data — Connection metadata (the same as the Credentials section of the response to the Method for getting metadata of available integrations)

Request example via curl:

curl --header "Content-type: application/json" --header "Accept: application/json" --header "Authorization: Basic cEFJjGffUSkV6WFFyWUhBM1RzS2hRHg7iKgReghUiijBfrdTY6" --request POST "https://api.albato.com/wl/partner-name/get-own-credential-metadata"

Response example:

{ "success": true, "data": { "fields": [ { "id": "userId", "type": 0, "label": "User ID" }, { "id": "secretKey", "type": 3, "label": "Secret key" }, { "id": "domain", "type": 10, "label": "Domain", "allowedValues": { "zone1.partner.com": "East-1", "zone2.partner.com": "West-1" } } ] } }

Did this answer your question?