Restricted API endpoint and task API created.