You can reference a credential in a story using CREDENTIAL.your_ccredential_name in the builder, as shown below.
You can also use the credentials List API to retrieve a list of credentials.
To learn more about the Credentials API including examples, see here.