{"id":50397001,"url":"https://github.com/labd/terraform-provider-voyado","last_synced_at":"2026-05-30T21:30:36.529Z","repository":{"id":351799512,"uuid":"1212349220","full_name":"labd/terraform-provider-voyado","owner":"labd","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-08T12:31:07.000Z","size":6419,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-08T14:28:11.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["labd"]}},"created_at":"2026-04-16T09:38:37.000Z","updated_at":"2026-05-08T12:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/labd/terraform-provider-voyado","commit_stats":null,"previous_names":["labd/terraform-provider-voyado"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/labd/terraform-provider-voyado","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fterraform-provider-voyado","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fterraform-provider-voyado/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fterraform-provider-voyado/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fterraform-provider-voyado/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labd","download_url":"https://codeload.github.com/labd/terraform-provider-voyado/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labd%2Fterraform-provider-voyado/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33711018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-30T21:30:35.889Z","updated_at":"2026-05-30T21:30:36.509Z","avatar_url":"https://github.com/labd.png","language":"Go","funding_links":["https://github.com/sponsors/labd"],"categories":[],"sub_categories":[],"readme":"# terraform-provider-voyado\n\nTerraform provider for [Voyado Engage](https://developer.voyado.com/docs/api/the-engage-api) — currently the [`voyado_interaction_schema`](https://developer.voyado.com/docs/loyalty/interactions#the-interactionschemas-endpoint) resource, which maps to Engage API v3:\n\n- `POST /api/v3/interactionschemas`\n- `GET /api/v3/interactionschemas/{interactionSchemaId}`\n- `DELETE /api/v3/interactionschemas/{interactionSchemaId}`\n\n## Requirements\n\n- [Go](https://go.dev/dl/) 1.26 or newer (see `go.mod`)\n\n## Provider configuration\n\n| Argument     | Description |\n|-------------|-------------|\n| `api_url`   | Base URL of the Engage API (for example `https://mytenant.voyado.com` or `https://mytenant.staging.voyado.com`). |\n| `api_key`   | Engage API key (sent as the `apikey` header). |\n| `user_agent`| Optional. Override the default `User-Agent` (Voyado recommends a descriptive value). |\n\n## Resource: `voyado_interaction_schema`\n\n| Attribute       | Description |\n|----------------|-------------|\n| `schema_id`    | Unique schema id (`id` in the API). |\n| `display_name` | `displayName` in the API. |\n| `json_schema`  | JSON object as a string, sent as `jsonSchema` (see Voyado’s interaction schema rules). |\n| `id`           | Computed; same as `schema_id`. |\n\nEngage does not support updating a schema in place. Changing `schema_id`, `display_name`, or `json_schema` forces replacement (delete then create). Deleting a schema removes all interactions for that schema.\n\n### Example\n\n```hcl\nterraform {\n  required_providers {\n    voyado = {\n      source = \"labd/voyado\"\n    }\n  }\n}\n\nprovider \"voyado\" {\n  api_url = \"https://mytenant.staging.voyado.com\"\n  api_key = var.engage_api_key\n}\n\nresource \"voyado_interaction_schema\" \"reuse\" {\n  schema_id    = \"Reuse-Spring-2023\"\n  display_name = \"Reuse Spring Sale\"\n  json_schema = jsonencode({\n    \"$schema\" = \"https://json-schema.org/draft/2020-12/schema\"\n    type      = \"object\"\n    properties = {\n      name = {\n        type              = \"string\"\n        displayName       = \"Name\"\n        showInContactCard = \"true\"\n        sortOrder         = \"0\"\n      }\n    }\n    required = [\"name\"]\n  })\n}\n```\n\nImport an existing schema by id:\n\n```bash\nterraform import voyado_interaction_schema.reuse Reuse-Spring-2023\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fterraform-provider-voyado","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabd%2Fterraform-provider-voyado","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabd%2Fterraform-provider-voyado/lists"}