POST
/
organisations
/
{organisationId}
/
credentials
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": "<any>",
  "name": "<string>",
  "data": {},
  "type": "<string>",
  "redactFields": [
    "<string>"
  ],
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

organisationId
string
required

Body

application/json

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.

Response

201
application/json

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.