Create and manage API scripts
Follow the steps below to create a new Script:
- Go to the Admin Menu and select “Scripts”.
- Create a new Script using the “+ Script” button.
Grab the value from the Application Key. You’ll need this to initiate a connection to ShotGrid.
Note: API keys are treated like passwords, and once created cannot be viewed again via the ShotGrid web app or API. Make sure you copy the key before proceeding.
- Now you can use your Script key to connect to ShotGrid. See “ShotGrid Methods” in our API documentation to learn more about how to connect to ShotGrid with your Script.
Tip: If for some reason you need to reset the Application Key of your Script, you’ll need to create a new ShotGrid Script entity to do so. First rename your existing Script to something like “[My Script]—OLD”, then delete it. Create a new Script. The reason you need to rename the old one is that ShotGrid requires unique names for each Script.
When to set up a new Script
Script actions can be logged. The more fine-grained the use of individual Script keys, the easier it will be for you to track which Script is making changes for debugging. Having separate Scripts is also a good way to track which Scripts will be impacted by changes on your ShotGrid site and who maintains the Script.