Log into your account at https://www.bitstamp.net, then select "Account" in the upper part of the site. Click "Security" and then "API Access".
Click "New API Key".
The next form will appear:
1. If you want additional security, you can insert list of our IPs to the "IP Address Filter" field.
2. We don't require withdrawal permissions so skip withdrawal filter fields.
3. Check permissions boxes as shown in the image below.
4. Click "GENERATE KEY".
5. Click "Activate"
6. Log in to your email and confirm activation in a letter from Bitstamp.
7. API & Secret keys are ready for use.
If you need to delete the key for some reasons, click on "Delete".
You can find in "My Account" section.