Mosseri says Threads is working on an API.