Public service
Humphreys was appointed to a commission to negotiate treaties of commerce with European nations. Other members of the commission included John Adams, Thomas Jefferson, and Benjamin Franklin. Humphreys became Franklin's secretary in 1784 in Paris, where he also served as a U.S. intelligence agent, and continued as a secretary to the legation under Thomas Jefferson.
In a letter of introduction to Franklin, Washington described Humphreys, writing: "This gentleman was several years in my family as aide-de-camp -- his zeal in the cause of his country -- his good sense, prudence and attachment to me, rendered him dear to me; and I persuade myself you will find no confidence which you may think proper to repose in him, misplaced. He possesses an excellent heart, good natural and acquired abilities and -- sterling integrity -- to which may be added sobriety and an obliging disposition."
In 1786, Humphreys was elected to the October session of the Connecticut General Assembly. He was appointed head of Connecticut's state militia and marched to West Springfield, Massachusetts to help deal with the civil strife and tumult of Shays' Rebellion, but by the time he had arrived, Massachusetts authorities had already subdued it.
Humphreys' mother died on July 27, 1787, and his father died a few weeks later, on September 2. At Washington's invitation, Humphreys stayed at Mount Vernon during the 1780s, acting as the general's private secretary and managing his correspondence. When Washington took the oath of office in New York City after being elected the nation's first president in 1789, Humphreys accompanied him on the trip from Mount Vernon and stood beside him during the ceremony. Humphreys served as Washington's speechwriter and helped add flourish to his speeches and correspondences before and during his presidency.
In 1791, Humphreys had the distinction of being the first minister appointed to a foreign country under the Constitution when he was appointed minister to Portugal. In that post, Humphreys negotiated the ransomed release of American prisoners from the Dey of Tripoli, Libya.
In 1797, he was appointed as minister to Spain, which then controlled the Mississippi River and all of Latin America except Brazil. William Loughton Smith succeeded him as U.S. minister in Lisbon. He remained minister to Spain until 1801, and during his stay there met and married Anne Frances Bulkeley, a cultured and wealthy English woman, whose father, John Bulkeley, was a banker, merchant, and trader. In 1804, Humphreys was elected as a member to the American Philosophical Society in Philadelphia.
He served again as a member of the Connecticut House of Representatives from 1812 to 1814, and was elected a Fellow of the Royal Society of London in June 1807. In 1813, Humphreys was also elected a member of the American Antiquarian Society.