posts api fix and added scopes