Get identifier from body or query params.