47519843 Validate uniqueness of [api_key,type] in identities table on DB level. Use returned json in tests to check response status/message.