Document API authentication