The endings of possessive articles are like those of the indefinite article ein and the negative article kein.
The endings depend on the noun that comes after the possessive article, i.e. the gender and number of that noun and the case it is in.
In the following table you see as an example the forms of mein in the nominative.