Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

add pk_ prefix infront of phone API key

Acho Arnold06f5f300bf58
diff --git a/api/pkg/services/phone_api_key_service.go b/api/pkg/services/phone_api_key_service.go
index 172f5476..f718bd12 100644
--- a/api/pkg/services/phone_api_key_service.go
+++ b/api/pkg/services/phone_api_key_service.go
@@ -70,7 +70,7 @@ func (service *PhoneAPIKeyService) Create(ctx context.Context, authContext entit
UserEmail: authContext.Email,
PhoneNumbers: nil,
PhoneIDs: nil,
- APIKey: apiKey,
+ APIKey: "pk_" + apiKey,
CreatedAt: time.Now().UTC(),
UpdatedAt: time.Now().UTC(),
}