Portland generally does not require a building permit for a detached accessory structure 200 square feet or smaller and 15 feet or lower.
Zoning, setbacks, lot coverage, utilities, structural attachment, retaining walls, and historic or environmental review can still require approval.