curl --request POST \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/credentials \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"data": {},
"type": "<string>",
"redactFields": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z"
}
'{
"id": "<string>",
"organisationID": "<unknown>",
"name": "<string>",
"data": {},
"type": "<string>",
"redactFields": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z"
}CreateCredential allows users to create new Credentials. Valid requests which return a credential marked as “invalid” is normal behaviour, but the credential won’t be usable until it’s updated to become valid.
curl --request POST \
--url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/credentials \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"data": {},
"type": "<string>",
"redactFields": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z"
}
'{
"id": "<string>",
"organisationID": "<unknown>",
"name": "<string>",
"data": {},
"type": "<string>",
"redactFields": [
"<string>"
],
"expiresAt": "2023-11-07T05:31:56Z"
}CreateCredentialRequest is the request definition for creating a new credential.
CreateCredentialRequestBody is the request body to create a new credential. The ID is automatically generated and the organisation ID is defined by the request's path parameter.
Name is the credential name.
Data is a map of string keys to string base64 encoded values for the actual credential data.
Type provides additional context to what data the credential contains. Certain types dictate that certain fields must be set in order for the credential to be considered valid:
RedactFields is a list of fields within data which once created should not be returned to the user. This property is only applicable for "Default" credential types. Credentials of other types have their own redaction list internally and this field will be ignored.
ExpiresAt allows the user to specify when Switchboard should automatically delete the credential.
CreateCredentialResponse is the response containing the new credential.
Credential holds sensitive data not owned by Versori. Users can create credentials so that Versori systems can authenticate to external services on behalf of the user.
ID is the identifier for the credential.
OrganisationID is the ID of the organisation which owns this credential.
Name is the credential name.
Data is a map of string keys to string base64 encoded values for the actual credential data.
Type provides additional context to what data the credential contains. Certain types dictate that certain fields must be set in order for the credential to be considered valid:
RedactFields is a list of fields within data which once created should not be returned to the user. This property is only applicable for "Default" credential types. Credentials of other types have their own redaction list internally and this field will be ignored.
ExpiresAt allows the user to specify when Switchboard should automatically delete the credential.