Before you file a bankruptcy case you must complete credit counseling provided by a government-approved agency. You must obtain from the agency a certificate describing the counseling services you received. This certificate then must be filed with the bankruptcy court as an attachment to your statement of compliance with the credit counseling requirement.