workflows: moves API to new structure

Move the API file over.