Getting error while creating certificate in Venafi Platform using Terraform

I am trying to create Certificate in Venafi Platform using Terraform. Every time new Authorization key is generated by Venafi Platform to Create Resources via Terraform but Terraform is giving me error that Key is not valid,but the same key i have tested from API endpoint that is working properly.